forked from Niap/node-freerdp2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontext.h
72 lines (58 loc) · 1.3 KB
/
context.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#ifndef NODE_FREERDP_CONTEXT_H
#define NODE_FREERDP_CONTEXT_H
#pragma comment(lib, "DbgHelp.lib")
#include <winsock2.h>
#include <Windows.h>
#include <ws2tcpip.h>
#include <stdio.h>
#include <freerdp/freerdp.h>
#include <freerdp/constants.h>
#include <freerdp/log.h>
#include <freerdp/gdi/gdi.h>
#include <freerdp/client/cmdline.h>
#include <freerdp/client/channels.h>
#include <freerdp/channels/channels.h>
#include <freerdp/client/rail.h>
#include <freerdp/client/cliprdr.h>
#include <winpr/crt.h>
#include <winpr/synch.h>
#include "generator.h"
#include <nan.h>
using Nan::Callback;
using v8::Object;
using v8::Array;
using v8::Number;
using v8::Value;
using v8::Local;
using v8::String;
using Nan::New;
using Nan::Null;
typedef struct _SessionData
{
freerdp* instance;
bool stopping;
}SessionData;
typedef struct _NodePointer
{
rdpPointer pointer;
byte * buffer;
int width;
int height;
}NodePointer;
typedef struct _NodeClipboard {
byte* buffer;
int length;
} NodeClipboard;
struct node_context
{
rdpContext context;
DEFINE_RDP_CLIENT_COMMON();
SessionData * session;
GeneratorContext *generatorContext;
RailClientContext* rail;
NodeClipboard * clipboard;
CliprdrClientContext* clipboardContext;
bool keyframe;
};
typedef struct node_context nodeContext;
#endif // NODE_FREERDP_CONTEXT_H