FreeRDP
server/rdpei.h
1 
23 #ifndef FREERDP_CHANNEL_RDPEI_SERVER_H
24 #define FREERDP_CHANNEL_RDPEI_SERVER_H
25 
26 #include <freerdp/channels/wtsvc.h>
27 #include <freerdp/channels/rdpei.h>
28 
29 #ifdef __cplusplus
30 extern "C"
31 {
32 #endif
33 
34  typedef struct s_rdpei_server_context RdpeiServerContext;
35  typedef struct s_rdpei_server_private RdpeiServerPrivate;
36 
38  {
39  HANDLE vcm;
40 
41  RdpeiServerPrivate* priv;
42 
43  UINT32 clientVersion;
44  UINT16 maxTouchPoints;
45  UINT32 protocolFlags;
46 
48  UINT (*onClientReady)(RdpeiServerContext* context);
49  UINT (*onTouchEvent)(RdpeiServerContext* context, const RDPINPUT_TOUCH_EVENT* touchEvent);
50  UINT (*onPenEvent)(RdpeiServerContext* context, const RDPINPUT_PEN_EVENT* penEvent);
51  UINT (*onTouchReleased)(RdpeiServerContext* context, BYTE contactId);
52 
53  void* user_data; /* user data, useful for callbacks */
54 
58  BOOL (*onChannelIdAssigned)(RdpeiServerContext* context, UINT32 channelId);
59  };
60 
61  FREERDP_API void rdpei_server_context_free(RdpeiServerContext* context);
62 
63  WINPR_ATTR_MALLOC(rdpei_server_context_free, 1)
64  FREERDP_API RdpeiServerContext* rdpei_server_context_new(HANDLE vcm);
65 
66  FREERDP_API void rdpei_server_context_reset(RdpeiServerContext* context);
67 
68  FREERDP_API HANDLE rdpei_server_get_event_handle(RdpeiServerContext* context);
69  FREERDP_API UINT rdpei_server_init(RdpeiServerContext* context);
70  FREERDP_API UINT rdpei_server_handle_messages(RdpeiServerContext* context);
71 
72  FREERDP_API UINT rdpei_server_send_sc_ready(RdpeiServerContext* context, UINT32 version,
73  UINT32 features);
74  FREERDP_API UINT rdpei_server_suspend(RdpeiServerContext* context);
75  FREERDP_API UINT rdpei_server_resume(RdpeiServerContext* context);
76 
77 #ifdef __cplusplus
78 }
79 #endif
80 
81 #endif /* FREERDP_CHANNEL_RDPEI_SERVER_H */
a touch event with some frames
a touch event with some frames
BOOL(* onChannelIdAssigned)(RdpeiServerContext *context, UINT32 channelId)
Definition: server/rdpei.h:58
UINT(* onClientReady)(RdpeiServerContext *context)
Definition: server/rdpei.h:48