Initial commit - from Precise source
[freerdp-ubuntu-pcb-backport.git] / client / X11 / xf_cliprdr.h
1 /**
2  * FreeRDP: A Remote Desktop Protocol Client
3  * X11 Clipboard Redirection
4  *
5  * Copyright 2010-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 __XF_CLIPRDR_H
21 #define __XF_CLIPRDR_H
22
23 #include "xfreerdp.h"
24
25 void xf_cliprdr_init(xfInfo* xfi, rdpChannels* chanman);
26 void xf_cliprdr_uninit(xfInfo* xfi);
27 void xf_process_cliprdr_event(xfInfo* xfi, RDP_EVENT* event);
28 boolean xf_cliprdr_process_selection_notify(xfInfo* xfi, XEvent* xevent);
29 boolean xf_cliprdr_process_selection_request(xfInfo* xfi, XEvent* xevent);
30 boolean xf_cliprdr_process_selection_clear(xfInfo* xfi, XEvent* xevent);
31 boolean xf_cliprdr_process_property_notify(xfInfo* xfi, XEvent* xevent);
32 void xf_cliprdr_check_owner(xfInfo* xfi);
33
34 #ifdef WITH_DEBUG_X11_CLIPRDR
35 #define DEBUG_X11_CLIPRDR(fmt, ...) DEBUG_CLASS(X11_CLIPRDR, fmt, ## __VA_ARGS__)
36 #else
37 #define DEBUG_X11_CLIPRDR(fmt, ...) DEBUG_NULL(fmt, ## __VA_ARGS__)
38 #endif
39
40 #endif /* __XF_CLIPRDR_H */