Initial commit - from Precise source
[freerdp-ubuntu-pcb-backport.git] / include / freerdp / plugins / cliprdr.h
1 /**
2  * FreeRDP: A Remote Desktop Protocol Client
3  * Clipboard Virtual Channel Types
4  *
5  * Copyright 2011 Vic Lee
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  *     http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19
20 #ifndef __CLIPRDR_PLUGIN
21 #define __CLIPRDR_PLUGIN
22
23 /**
24  * Event Types
25  */
26 #define RDP_EVENT_TYPE_CB_MONITOR_READY         1
27 #define RDP_EVENT_TYPE_CB_FORMAT_LIST           2
28 #define RDP_EVENT_TYPE_CB_DATA_REQUEST          3
29 #define RDP_EVENT_TYPE_CB_DATA_RESPONSE         4
30
31 /**
32  * Clipboard Formats
33  */
34
35 #define CB_FORMAT_RAW                   0x0000
36 #define CB_FORMAT_TEXT                  0x0001
37 #define CB_FORMAT_DIB                   0x0008
38 #define CB_FORMAT_UNICODETEXT           0x000D
39 #define CB_FORMAT_HTML                  0xD010
40 #define CB_FORMAT_PNG                   0xD011
41 #define CB_FORMAT_JPEG                  0xD012
42 #define CB_FORMAT_GIF                   0xD013
43
44 /**
45  * Clipboard Events
46  */
47 typedef RDP_EVENT RDP_CB_MONITOR_READY_EVENT;
48
49 struct _RDP_CB_FORMAT_LIST_EVENT
50 {
51         RDP_EVENT event;
52         uint32* formats;
53         uint16 num_formats;
54         uint8* raw_format_data;
55         uint32 raw_format_data_size;
56 };
57 typedef struct _RDP_CB_FORMAT_LIST_EVENT RDP_CB_FORMAT_LIST_EVENT;
58
59 struct _RDP_CB_DATA_REQUEST_EVENT
60 {
61         RDP_EVENT event;
62         uint32 format;
63 };
64 typedef struct _RDP_CB_DATA_REQUEST_EVENT RDP_CB_DATA_REQUEST_EVENT;
65
66 struct _RDP_CB_DATA_RESPONSE_EVENT
67 {
68         RDP_EVENT event;
69         uint8* data;
70         uint32 size;
71 };
72 typedef struct _RDP_CB_DATA_RESPONSE_EVENT RDP_CB_DATA_RESPONSE_EVENT;
73
74 #endif /* __CLIPRDR_PLUGIN */