summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnaud Fontaine <arnau@debian.org>2008-08-09 14:14:34 +0200
committerJulien Danjou <julien@danjou.info>2008-09-15 11:20:58 +0200
commit94ca80dcd6a03b8560043f8adc05c33b7c7e3e25 (patch)
treeb02959889ca3096ab72dec32d6b05b3347c76dfc
parent35346581f90e842172389f7e3cb81637bdec6872 (diff)
[property] Add missing xcb_get_any_property_unchecked().
-rw-r--r--property/prop.c12
-rw-r--r--property/xcb_property.h5
2 files changed, 17 insertions, 0 deletions
diff --git a/property/prop.c b/property/prop.c
index d6b8986..751afdf 100644
--- a/property/prop.c
+++ b/property/prop.c
@@ -29,6 +29,18 @@ xcb_get_property_cookie_t xcb_get_any_property(xcb_connection_t *c, uint8_t del,
return xcb_get_property(c, del, window, name, type, 0, long_len);
}
+xcb_get_property_cookie_t xcb_get_any_property_unchecked(xcb_connection_t *c,
+ uint8_t del,
+ xcb_window_t window,
+ xcb_atom_t name,
+ uint32_t long_len)
+{
+ static const xcb_atom_t type = XCB_GET_PROPERTY_TYPE_ANY;
+
+ return xcb_get_property_unchecked(c, del, window, name, type, 0,
+ long_len);
+}
+
static int call_handler(xcb_connection_t *c, uint8_t state, xcb_window_t window, xcb_atom_t atom, prop_handler_t *h)
{
xcb_get_property_reply_t *propr = 0;
diff --git a/property/xcb_property.h b/property/xcb_property.h
index 6c90d92..2a7b4e7 100644
--- a/property/xcb_property.h
+++ b/property/xcb_property.h
@@ -10,6 +10,11 @@ extern "C" {
xcb_get_property_cookie_t xcb_get_any_property(xcb_connection_t *c, uint8_t del, xcb_window_t window, xcb_atom_t name, uint32_t long_len);
+xcb_get_property_cookie_t xcb_get_any_property_unchecked(xcb_connection_t *c,
+ uint8_t del,
+ xcb_window_t window,
+ xcb_atom_t name,
+ uint32_t long_len);
typedef struct xcb_property_handlers xcb_property_handlers_t;