282c4800e7db2d92b06c8a4a9f20e580b9f43dbd
[dana/dcompmgr.git] / display.h
1 #ifndef dc__display_h
2 #define dc__display_h
3
4 #include <xcb/xcb.h>
5
6 #include <glib.h>
7
8 typedef struct d_display {
9     xcb_connection_t *conn;
10     int               ref;
11
12     gboolean xfixes;
13     int      xfixes_error;
14     int      xfixes_event;
15     int      xfixes_opcode;
16
17     gboolean render;
18     int      render_error;
19     int      render_event;
20     int      render_opcode;
21
22     gboolean composite;
23     int      composite_error;
24     int      composite_event;
25     int      composite_opcode;
26
27     gboolean damage;
28     int      damage_error;
29     int      damage_event;
30     int      damage_opcode;
31 } d_display_t;
32
33 d_display_t* display_open(const char *name);
34
35 void display_ref(d_display_t *dpy);
36 void display_unref(d_display_t *dpy);
37
38 void display_error(d_display_t *dpy, xcb_generic_error_t *ev);
39
40 #endif