FreeRDP
cliprdr_common.h
1 
23 #ifndef FREERDP_CHANNEL_RDPECLIP_COMMON_H
24 #define FREERDP_CHANNEL_RDPECLIP_COMMON_H
25 
26 #include <winpr/crt.h>
27 #include <winpr/stream.h>
28 
29 #include <freerdp/channels/cliprdr.h>
30 #include <freerdp/api.h>
31 
32 FREERDP_LOCAL const char* CB_MSG_TYPE_STRING(UINT16 type, char* buffer, size_t size);
33 FREERDP_LOCAL const char* CB_MSG_FLAGS_STRING(UINT16 msgFlags, char* buffer, size_t size);
34 
35 FREERDP_LOCAL wStream* cliprdr_packet_new(UINT16 msgType, UINT16 msgFlags, UINT32 dataLen);
36 FREERDP_LOCAL wStream*
37 cliprdr_packet_lock_clipdata_new(const CLIPRDR_LOCK_CLIPBOARD_DATA* lockClipboardData);
38 FREERDP_LOCAL wStream*
39 cliprdr_packet_unlock_clipdata_new(const CLIPRDR_UNLOCK_CLIPBOARD_DATA* unlockClipboardData);
40 FREERDP_LOCAL wStream*
41 cliprdr_packet_file_contents_request_new(const CLIPRDR_FILE_CONTENTS_REQUEST* request);
42 FREERDP_LOCAL wStream*
43 cliprdr_packet_file_contents_response_new(const CLIPRDR_FILE_CONTENTS_RESPONSE* response);
44 FREERDP_LOCAL wStream* cliprdr_packet_format_list_new(const CLIPRDR_FORMAT_LIST* formatList,
45  BOOL useLongFormatNames, BOOL useAsciiNames);
46 
47 FREERDP_LOCAL UINT cliprdr_read_lock_clipdata(wStream* s,
48  CLIPRDR_LOCK_CLIPBOARD_DATA* lockClipboardData);
49 FREERDP_LOCAL UINT cliprdr_read_unlock_clipdata(wStream* s,
50  CLIPRDR_UNLOCK_CLIPBOARD_DATA* unlockClipboardData);
51 FREERDP_LOCAL UINT cliprdr_read_format_data_request(wStream* s,
52  CLIPRDR_FORMAT_DATA_REQUEST* formatDataRequest);
53 FREERDP_LOCAL UINT cliprdr_read_format_data_response(wStream* s,
55 FREERDP_LOCAL UINT
56 cliprdr_read_file_contents_request(wStream* s, CLIPRDR_FILE_CONTENTS_REQUEST* fileContentsRequest);
57 FREERDP_LOCAL UINT cliprdr_read_file_contents_response(wStream* s,
59 FREERDP_LOCAL UINT cliprdr_read_format_list(wStream* s, CLIPRDR_FORMAT_LIST* formatList,
60  BOOL useLongFormatNames);
61 
62 FREERDP_LOCAL void cliprdr_free_format_list(CLIPRDR_FORMAT_LIST* formatList);
63 
64 #endif /* FREERDP_CHANNEL_RDPECLIP_COMMON_H */