diff options
author | Bart Massey <bart@cs.pdx.edu> | 2007-12-07 00:20:11 -0800 |
---|---|---|
committer | Bart Massey <bart@cs.pdx.edu> | 2007-12-07 00:20:11 -0800 |
commit | a036a2b7569c20d674a313c7d0797ff879464c34 (patch) | |
tree | 42b07108b3ae753a078fa0dd62270b5a70375669 | |
parent | dd1c37a019a8349d4221203913a11618db97851a (diff) |
added checked version of aux_change_gc function
-rw-r--r-- | aux/xcb_aux.c | 11 | ||||
-rw-r--r-- | aux/xcb_aux.h | 5 |
2 files changed, 16 insertions, 0 deletions
diff --git a/aux/xcb_aux.c b/aux/xcb_aux.c index 0be8acf..457b96d 100644 --- a/aux/xcb_aux.c +++ b/aux/xcb_aux.c @@ -236,6 +236,17 @@ xcb_aux_change_gc (xcb_connection_t *c, } xcb_void_cookie_t +xcb_aux_change_gc_checked (xcb_connection_t *c, + xcb_gcontext_t gc, + 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_change_gc_checked( c, gc, mask, value_list ); +} + +xcb_void_cookie_t xcb_aux_change_keyboard_control (xcb_connection_t *c, uint32_t mask, const xcb_params_keyboard_t *params) diff --git a/aux/xcb_aux.h b/aux/xcb_aux.h index dcc534e..70d1ff8 100644 --- a/aux/xcb_aux.h +++ b/aux/xcb_aux.h @@ -148,6 +148,11 @@ xcb_aux_change_gc (xcb_connection_t *c, uint32_t mask, const xcb_params_gc_t *params); +xcb_void_cookie_t +xcb_aux_change_gc_checked (xcb_connection_t *c, + xcb_gcontext_t gc, + uint32_t mask, + const xcb_params_gc_t *params); typedef struct { uint32_t key_click_percent; uint32_t bell_percent; |