summaryrefslogtreecommitdiff
path: root/aux
diff options
context:
space:
mode:
authorBart Massey <bart@cs.pdx.edu>2007-12-07 00:18:10 -0800
committerBart Massey <bart@cs.pdx.edu>2007-12-07 00:18:10 -0800
commit01b43fc3c7c2815a2e70675c5fd65246b67ddcf6 (patch)
tree13d9c61a32bd9c4daf9a8e1709ea80c38962d0ae /aux
parentb7309d5888ac13a1a9442a14766ce418dbef6f50 (diff)
added checked versions of aux_create_window and aux_create_gc functions
Diffstat (limited to 'aux')
-rw-r--r--aux/xcb_aux.c34
-rw-r--r--aux/xcb_aux.h21
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,