2 * FreeRDP: A Remote Desktop Protocol client.
3 * Clipboard Virtual Channel
5 * Copyright 2009-2011 Jay Sorg
6 * Copyright 2010-2011 Vic Lee
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
21 #ifndef __CLIPRDR_MAIN_H
22 #define __CLIPRDR_MAIN_H
24 #include <freerdp/utils/debug.h>
25 #include <freerdp/utils/stream.h>
27 struct _CLIPRDR_FORMAT_NAME
33 typedef struct _CLIPRDR_FORMAT_NAME CLIPRDR_FORMAT_NAME;
39 boolean received_caps;
40 boolean use_long_format_names;
41 boolean stream_fileclip_enabled;
42 boolean fileclip_no_file_paths;
43 boolean can_lock_clipdata;
44 CLIPRDR_FORMAT_NAME* format_names;
47 typedef struct cliprdr_plugin cliprdrPlugin;
49 STREAM* cliprdr_packet_new(uint16 msgType, uint16 msgFlags, uint32 dataLen);
50 void cliprdr_packet_send(cliprdrPlugin* cliprdr, STREAM* data_out);
52 #ifdef WITH_DEBUG_CLIPRDR
53 #define DEBUG_CLIPRDR(fmt, ...) DEBUG_CLASS(CLIPRDR, fmt, ## __VA_ARGS__)
55 #define DEBUG_CLIPRDR(fmt, ...) DEBUG_NULL(fmt, ## __VA_ARGS__)
58 #endif /* __CLIPRDR_MAIN_H */