summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBart Massey <bart@cs.pdx.edu>2007-12-07 00:18:10 -0800
committerArnaud Fontaine <arnau@debian.org>2010-11-14 19:49:48 +0900
commit47ec324d913bc4e11b0db399ac28f1e106bc7037 (patch)
tree34ea0fd2dd72f1717d48891bb523979700b68d49
parent71f52d1a1807c471b713064adf249c90d73f3b3f (diff)
downloadxcb-util-47ec324d913bc4e11b0db399ac28f1e106bc7037.tar.gz
added checked versions of aux_create_window and aux_create_gc functions
-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,