Fix changelog email address
[freerdp-ubuntu-pcb-backport.git] / server / X11 / xfreerdp.h
1 /**
2  * FreeRDP: A Remote Desktop Protocol Client
3  * FreeRDP X11 Server
4  *
5  * Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
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 __XFREERDP_H
21 #define __XFREERDP_H
22
23 #include <freerdp/codec/color.h>
24
25 #ifdef WITH_XSHM
26 #include <X11/extensions/XShm.h>
27 #endif
28
29 #ifdef WITH_XFIXES
30 #include <X11/extensions/Xfixes.h>
31 #endif
32
33 #ifdef WITH_XTEST
34 #include <X11/extensions/XTest.h>
35 #endif
36
37 #ifdef WITH_XDAMAGE
38 #include <X11/extensions/Xdamage.h>
39 #endif
40
41 typedef struct xf_info xfInfo;
42
43 #include "xf_event.h"
44
45 struct xf_info
46 {
47         int bpp;
48         int xfds;
49         int depth;
50         int width;
51         int height;
52         int number;
53         XImage* image;
54         Screen* screen;
55         Visual* visual;
56         Display* display;
57         int scanline_pad;
58         int bytesPerPixel;
59         HCLRCONV clrconv;
60         boolean use_xshm;
61
62         XImage* fb_image;
63         Pixmap fb_pixmap;
64         Window root_window;
65         XShmSegmentInfo fb_shm_info;
66
67 #ifdef WITH_XDAMAGE
68         GC xdamage_gc;
69         Damage xdamage;
70         int xdamage_notify_event;
71         XserverRegion xdamage_region;
72 #endif
73 };
74
75 #endif /* __XFREERDP_H */