Lines Matching defs:xcb
30 #include <xcb/xproto.h>
34 static xcb_screen_t *screen_of_display(xcb_connection_t *xcb, int screen) {
38 if ((s = xcb_get_setup(xcb))) {
47 void pa_x11_set_prop(xcb_connection_t *xcb, int screen, const char *name, const char *data) {
51 pa_assert(xcb);
55 if ((xs = screen_of_display(xcb, screen))) {
56 reply = xcb_intern_atom_reply(xcb,
57 xcb_intern_atom(xcb, 0, strlen(name), name),
61 xcb_change_property(xcb, XCB_PROP_MODE_REPLACE, xs->root, reply->atom,
70 void pa_x11_del_prop(xcb_connection_t *xcb, int screen, const char *name) {
74 pa_assert(xcb);
77 if ((xs = screen_of_display(xcb, screen))) {
78 reply = xcb_intern_atom_reply(xcb,
79 xcb_intern_atom(xcb, 0, strlen(name), name),
83 xcb_delete_property(xcb, xs->root, reply->atom);
89 char* pa_x11_get_prop(xcb_connection_t *xcb, int screen, const char *name, char *p, size_t l) {
97 pa_assert(xcb);
101 xs = screen_of_display(xcb, screen);
109 xs = screen_of_display(xcb, 0);
112 reply = xcb_intern_atom_reply(xcb,
113 xcb_intern_atom(xcb, 0, strlen(name), name),
119 req = xcb_get_property(xcb, 0, xs->root, reply->atom, XCB_ATOM_STRING, 0, (uint32_t)(l-1));
121 prop = xcb_get_property_reply(xcb, req, NULL);