f46ed464e7c5deb2903f28c0e22f7bb63110f666
[dana/dcompmgr.git] / display.h
1 #ifndef dc__display_h
2 #define dc__display_h
3
4 #include <xcb/xcb.h>
5
6 typedef struct d_display {
7     xcb_connection_t *conn;
8     int               ref;
9
10     int fixes_error;
11     int damage_error;
12     int render_error;
13 } d_display_t;
14
15 d_display_t* display_open(const char *name);
16
17 void display_ref(d_display_t *dpy);
18 void display_unref(d_display_t *dpy);
19
20 void display_error(d_display_t *dpy, xcb_generic_error_t *ev);
21
22 #endif