diff options
author | Bart Massey <bart@cs.pdx.edu> | 2007-12-07 00:18:10 -0800 |
---|---|---|
committer | Bart Massey <bart@cs.pdx.edu> | 2007-12-07 00:18:10 -0800 |
commit | dd1c37a019a8349d4221203913a11618db97851a (patch) | |
tree | 271ccb3574ed097fe72f1fb835b4211ce215c02b | |
parent | 8333aaefc6767414703484d157a1ebc3730201b1 (diff) |
added checked versions of aux_create_window and aux_create_gc functions
-rw-r--r-- | aux/xcb_aux.c | 34 | ||||
-rw-r--r-- | aux/xcb_aux.h | 21 |
2 files changed, 55 insertions, 0 deletions
diff --git a/aux/xcb_aux.c b/aux/xcb_aux.c index d9a6295..0be8acf 100644 --- a/aux/xcb_aux.c +++ b/aux/xcb_aux.c @@ -157,6 +157,28 @@ xcb_aux_create_window (xcb_connection_t *c, } xcb_void_cookie_t +xcb_aux_create_window_checked (xcb_connection_t *c, + uint8_t depth, + xcb_window_t wid, + xcb_window_t parent, + int16_t x, + int16_t y, + uint16_t width, + uint16_t height, + uint16_t border_width, + uint16_t _class, + xcb_visualid_t visual, + uint32_t mask, + const xcb_params_cw_t *params) +{ + uint32_t value_list[16]; + pack_list(mask, (const uint32_t *)params, value_list); + return xcb_create_window_checked(c, depth, wid, parent, + x, y, width, height, border_width, + _class, visual, mask, value_list); +} + +xcb_void_cookie_t xcb_aux_change_window_attributes (xcb_connection_t *c, xcb_window_t window, uint32_t mask, @@ -191,6 +213,18 @@ xcb_aux_create_gc (xcb_connection_t *c, } xcb_void_cookie_t +xcb_aux_create_gc_checked (xcb_connection_t *c, + xcb_gcontext_t gid, + xcb_drawable_t drawable, + uint32_t mask, + const xcb_params_gc_t *params) +{ + uint32_t value_list[32]; + pack_list(mask, (const uint32_t *)params, value_list); + return xcb_create_gc_checked( c, gid, drawable, mask, value_list); +} + +xcb_void_cookie_t xcb_aux_change_gc (xcb_connection_t *c, xcb_gcontext_t gc, uint32_t mask, diff --git a/aux/xcb_aux.h b/aux/xcb_aux.h index e07a90f..dcc534e 100644 --- a/aux/xcb_aux.h +++ b/aux/xcb_aux.h @@ -67,6 +67,21 @@ xcb_aux_create_window (xcb_connection_t *c, const xcb_params_cw_t *params); xcb_void_cookie_t +xcb_aux_create_window_checked (xcb_connection_t *c, + uint8_t depth, + xcb_window_t wid, + xcb_window_t parent, + int16_t x, + int16_t y, + uint16_t width, + uint16_t height, + uint16_t border_width, + uint16_t _class, + xcb_visualid_t visual, + uint32_t mask, + const xcb_params_cw_t *params); + +xcb_void_cookie_t xcb_aux_change_window_attributes (xcb_connection_t *c, xcb_window_t window, uint32_t mask, @@ -122,6 +137,12 @@ xcb_aux_create_gc (xcb_connection_t *c, const xcb_params_gc_t *params); xcb_void_cookie_t +xcb_aux_create_gc_checked (xcb_connection_t *c, + xcb_gcontext_t gid, + xcb_drawable_t drawable, + uint32_t mask, + const xcb_params_gc_t *params); +xcb_void_cookie_t xcb_aux_change_gc (xcb_connection_t *c, xcb_gcontext_t gc, uint32_t mask, |