eolian: rename is_ref API to is_ptr to match syntax
[platform/upstream/efl.git] / src / lib / ecore_x / xcb / ecore_xcb_extensions.c
1 #include "ecore_xcb_private.h"
2
3 void
4 _ecore_xcb_extensions_init(void)
5 {
6    LOGFN(__FILE__, __LINE__, __FUNCTION__);
7
8    xcb_prefetch_extension_data(_ecore_xcb_conn, &xcb_big_requests_id);
9    xcb_prefetch_extension_data(_ecore_xcb_conn, &xcb_shm_id);
10
11 #ifdef ECORE_XCB_SHAPE
12    _ecore_xcb_shape_init();
13 #endif
14
15 #ifdef ECORE_XCB_SCREENSAVER
16    _ecore_xcb_screensaver_init();
17 #endif
18
19 #ifdef ECORE_XCB_SYNC
20    _ecore_xcb_sync_init();
21 #endif
22
23 #ifdef ECORE_XCB_RANDR
24    _ecore_xcb_randr_init();
25 #endif
26
27 #ifdef ECORE_XCB_XFIXES
28    _ecore_xcb_xfixes_init();
29 #endif
30
31 #ifdef ECORE_XCB_DAMAGE
32    _ecore_xcb_damage_init();
33 #endif
34
35 #ifdef ECORE_XCB_RENDER
36    _ecore_xcb_render_init();
37 #endif
38
39 #ifdef ECORE_XCB_COMPOSITE
40    _ecore_xcb_composite_init();
41 #endif
42
43 #ifdef ECORE_XCB_DPMS
44    _ecore_xcb_dpms_init();
45 #endif
46
47 #ifdef ECORE_XCB_DPMS
48    _ecore_xcb_dpms_init();
49 #endif
50
51 #ifdef ECORE_XCB_CURSOR
52    _ecore_xcb_cursor_init();
53 #endif
54
55 #ifdef ECORE_XCB_XINERAMA
56    _ecore_xcb_xinerama_init();
57 #endif
58
59 #ifdef ECORE_XCB_XINPUT
60    _ecore_xcb_input_init();
61 #endif
62
63 #ifdef ECORE_XCB_GESTURE
64    _ecore_xcb_gesture_init();
65 #endif
66
67 #ifdef ECORE_XCB_XPRESENT
68    _ecore_xcb_present_init();
69 #endif
70
71 /* #ifdef ECORE_XCB_DRI */
72 /*    _ecore_xcb_dri_init(); */
73 /* #endif */
74
75 #ifdef ECORE_XCB_XTEST
76    _ecore_xcb_xtest_init();
77 #endif
78
79    xcb_prefetch_maximum_request_length(_ecore_xcb_conn);
80 }
81
82 void
83 _ecore_xcb_extensions_finalize(void)
84 {
85    LOGFN(__FILE__, __LINE__, __FUNCTION__);
86
87    xcb_get_extension_data(_ecore_xcb_conn, &xcb_big_requests_id);
88    xcb_get_extension_data(_ecore_xcb_conn, &xcb_shm_id);
89
90 #ifdef ECORE_XCB_SHAPE
91    _ecore_xcb_shape_finalize();
92 #endif
93
94 #ifdef ECORE_XCB_SCREENSAVER
95    _ecore_xcb_screensaver_finalize();
96 #endif
97
98 #ifdef ECORE_XCB_SYNC
99    _ecore_xcb_sync_finalize();
100 #endif
101
102 #ifdef ECORE_XCB_RANDR
103    _ecore_xcb_randr_finalize();
104 #endif
105
106 #ifdef ECORE_XCB_XFIXES
107    _ecore_xcb_xfixes_finalize();
108 #endif
109
110 #ifdef ECORE_XCB_DAMAGE
111    _ecore_xcb_damage_finalize();
112 #endif
113
114 #ifdef ECORE_XCB_RENDER
115    _ecore_xcb_render_finalize();
116 #endif
117
118 #ifdef ECORE_XCB_COMPOSITE
119    _ecore_xcb_composite_finalize();
120 #endif
121
122 #ifdef ECORE_XCB_DPMS
123    _ecore_xcb_dpms_finalize();
124 #endif
125
126 #ifdef ECORE_XCB_CURSOR
127    _ecore_xcb_cursor_finalize();
128 #endif
129
130 #ifdef ECORE_XCB_XINERAMA
131    _ecore_xcb_xinerama_finalize();
132 #endif
133
134 #ifdef ECORE_XCB_XINPUT
135    _ecore_xcb_input_finalize();
136 #endif
137
138 #ifdef ECORE_XCB_GESTURE
139    _ecore_xcb_gesture_finalize();
140 #endif
141
142 #ifdef ECORE_XCB_XPRESENT
143    _ecore_xcb_present_finalize();
144 #endif
145
146 /* #ifdef ECORE_XCB_DRI */
147 /*    _ecore_xcb_dri_finalize(); */
148 /* #endif */
149
150 #ifdef ECORE_XCB_XTEST
151    _ecore_xcb_xtest_finalize();
152 #endif
153
154    xcb_get_maximum_request_length(_ecore_xcb_conn);
155 }
156