diff options
Diffstat (limited to 'src/private.h')
-rw-r--r-- | src/private.h | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/private.h b/src/private.h index d624aba..c726b54 100644 --- a/src/private.h +++ b/src/private.h @@ -8,7 +8,7 @@ const __typeof__( ((type *)0)->member ) *__mptr = (ptr); \ (type *)( (char *)__mptr - offsetof(type,member) );}) -#define STUB() do { fprintf(stderr, "%s is a lie\n", __func__); } while (0) +#define STUB() do { fprintf(stderr, "*** STUB: %s\n", __func__); } while (0) struct csx_event { XEvent xevent; @@ -21,6 +21,14 @@ struct csx_atom { Atom value; }; +struct csx_extension { + const char *name; + int major; + int first_event; + int first_error; + struct wl_list link; +}; + struct csx_display { struct wl_display *display; struct wl_registry *registry; @@ -51,6 +59,11 @@ struct csx_display { int major; int minor; + + int next_major; + int next_event; + int next_error; + struct wl_list extension_list; }; static inline struct csx_display * @@ -68,6 +81,11 @@ void csx_display_error(struct csx_display *display, XID resourceid, int error); void csx_display_add_seat(struct csx_display *display, uint32_t name, uint32_t version); +void csx_display_add_extension(struct csx_display *display, + struct csx_extension *extension, + const char *name, int nevents, int nerrors); + +int csx_display_add_xfixes(struct csx_display *display); struct csx_property { Atom name; |