FreeRDP
Loading...
Searching...
No Matches
client/rdpdr.h
1
21#ifndef FREERDP_CHANNEL_RDPDR_CLIENT_H
22#define FREERDP_CHANNEL_RDPDR_CLIENT_H
23
24#include <freerdp/channels/rdpdr.h>
25
26#ifdef __cplusplus
27extern "C"
28{
29#endif
30
35 typedef enum
36 {
37 RDPDR_HOTPLUG_FIRST_CHECK,
38 RDPDR_HOTPLUG_CHECK_FOR_CHANGES
39 } RdpdrHotplugEventType;
40
41 typedef struct s_rdpdr_client_context RdpdrClientContext;
42
53 typedef UINT (*pcRdpdrRegisterDevice)(RdpdrClientContext* context, const RDPDR_DEVICE* device,
54 uint32_t* pid);
55
65 typedef UINT (*pcRdpdrUnregisterDevice)(RdpdrClientContext* context, size_t count,
66 const uint32_t ids[]);
67
76 typedef UINT (*pcRdpdrHotplugDevice)(RdpdrClientContext* context, RdpdrHotplugEventType type);
77
83 {
84 void* handle;
85 void* custom;
86
87 pcRdpdrRegisterDevice RdpdrRegisterDevice;
88 pcRdpdrUnregisterDevice RdpdrUnregisterDevice;
89 pcRdpdrHotplugDevice RdpdrHotplugDevice;
90 };
91
92#ifdef __cplusplus
93}
94#endif
95
96#endif /* FREERDP_CHANNEL_RDPDR_CLIENT_H */