aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/ecore/src/lib/ecore_x/xcb/ecore_xcb_extensions.c
blob: 7a73f2b8ed7d184619bc3bb8ba4122893354a3dd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
#include "ecore_xcb_private.h"

void 
_ecore_xcb_extensions_init(void) 
{
   LOGFN(__FILE__, __LINE__, __FUNCTION__);

   xcb_prefetch_extension_data(_ecore_xcb_conn, &xcb_big_requests_id);
   xcb_prefetch_extension_data(_ecore_xcb_conn, &xcb_shm_id);

#ifdef ECORE_XCB_SHAPE
   _ecore_xcb_shape_init();
#endif

#ifdef ECORE_XCB_SCREENSAVER
   _ecore_xcb_screensaver_init();
#endif

#ifdef ECORE_XCB_SYNC
   _ecore_xcb_sync_init();
#endif

#ifdef ECORE_XCB_RANDR
   _ecore_xcb_randr_init();
#endif

#ifdef ECORE_XCB_XFIXES
   _ecore_xcb_xfixes_init();
#endif

#ifdef ECORE_XCB_DAMAGE
   _ecore_xcb_damage_init();
#endif

#ifdef ECORE_XCB_RENDER
   _ecore_xcb_render_init();
#endif

#ifdef ECORE_XCB_COMPOSITE
   _ecore_xcb_composite_init();
#endif

#ifdef ECORE_XCB_DPMS
   _ecore_xcb_dpms_init();
#endif

#ifdef ECORE_XCB_DPMS
   _ecore_xcb_dpms_init();
#endif

#ifdef ECORE_XCB_CURSOR
   _ecore_xcb_cursor_init();
#endif

#ifdef ECORE_XCB_XINERAMA
   _ecore_xcb_xinerama_init();
#endif

#ifdef ECORE_XCB_XINPUT
   _ecore_xcb_input_init();
#endif

/* #ifdef ECORE_XCB_DRI */
/*    _ecore_xcb_dri_init(); */
/* #endif */

#ifdef ECORE_XCB_XTEST
   _ecore_xcb_xtest_init();
#endif

   xcb_prefetch_maximum_request_length(_ecore_xcb_conn);
}

void 
_ecore_xcb_extensions_finalize(void) 
{
   LOGFN(__FILE__, __LINE__, __FUNCTION__);

   xcb_get_extension_data(_ecore_xcb_conn, &xcb_big_requests_id);
   xcb_get_extension_data(_ecore_xcb_conn, &xcb_shm_id);

#ifdef ECORE_XCB_SHAPE
   _ecore_xcb_shape_finalize();
#endif

#ifdef ECORE_XCB_SCREENSAVER
   _ecore_xcb_screensaver_finalize();
#endif

#ifdef ECORE_XCB_SYNC
   _ecore_xcb_sync_finalize();
#endif

#ifdef ECORE_XCB_RANDR
   _ecore_xcb_randr_finalize();
#endif

#ifdef ECORE_XCB_XFIXES
   _ecore_xcb_xfixes_finalize();
#endif

#ifdef ECORE_XCB_DAMAGE
   _ecore_xcb_damage_finalize();
#endif

#ifdef ECORE_XCB_RENDER
   _ecore_xcb_render_finalize();
#endif

#ifdef ECORE_XCB_COMPOSITE
   _ecore_xcb_composite_finalize();
#endif

#ifdef ECORE_XCB_DPMS
   _ecore_xcb_dpms_finalize();
#endif

#ifdef ECORE_XCB_CURSOR
   _ecore_xcb_cursor_finalize();
#endif

#ifdef ECORE_XCB_XINERAMA
   _ecore_xcb_xinerama_finalize();
#endif

#ifdef ECORE_XCB_XINPUT
   _ecore_xcb_input_finalize();
#endif

/* #ifdef ECORE_XCB_DRI */
/*    _ecore_xcb_dri_finalize(); */
/* #endif */

#ifdef ECORE_XCB_XTEST
   _ecore_xcb_xtest_finalize();
#endif

   xcb_get_maximum_request_length(_ecore_xcb_conn);
}