FreeRDP
server/remdesk.h
1 
22 #ifndef FREERDP_CHANNEL_REMDESK_SERVER_REMDESK_H
23 #define FREERDP_CHANNEL_REMDESK_SERVER_REMDESK_H
24 
25 #include <freerdp/api.h>
26 #include <freerdp/types.h>
27 #include <freerdp/channels/wtsvc.h>
28 
29 #include <freerdp/client/remdesk.h>
30 
31 #ifdef __cplusplus
32 extern "C"
33 {
34 #endif
35 
40  typedef struct s_remdesk_server_context RemdeskServerContext;
41  typedef struct s_remdesk_server_private RemdeskServerPrivate;
42 
43  typedef UINT (*psRemdeskStart)(RemdeskServerContext* context);
44  typedef UINT (*psRemdeskStop)(RemdeskServerContext* context);
45 
47  {
48  HANDLE vcm;
49  void* custom;
50 
51  psRemdeskStart Start;
52  psRemdeskStop Stop;
53 
54  RemdeskServerPrivate* priv;
55  rdpContext* rdpcontext;
56  };
57 
58  FREERDP_API void remdesk_server_context_free(RemdeskServerContext* context);
59 
60  WINPR_ATTR_MALLOC(remdesk_server_context_free, 1)
61  FREERDP_API RemdeskServerContext* remdesk_server_context_new(HANDLE vcm);
62 
63 #ifdef __cplusplus
64 }
65 #endif
66 
67 #endif /* FREERDP_CHANNEL_REMDESK_SERVER_REMDESK_H */