xcb_res_query_client_ids(3)
xcb_res_query_client_ids π
okay bestie, welcome to the manual page for xcb_res_query_client_ids β it lives in section 3 of the manual (that's the "library calls" section, iykyk), and it's part of the XCB Requests crew. she's a request function from <xcb/res.h> and she's here to ask the X server some questions. let's get into it β¨
πΈ SYNOPSIS πΈ
first up, the include, because we always include our headers:
#include <xcb/res.h>
β¨ Request function β¨
this is the function you call to fire off the request. she returns a cookie (more on that later πͺ):
xcb_res_query_client_ids_cookie_t
xcb_res_query_client_ids(xcb_connection_t *conn,
uint32_t num_specs, const xcb_res_client_id_spec_t *specs);
π¦ Reply datastructure π¦
here's what the reply looks like when it comes back, all struct-y and cute:
typedef struct xcb_res_query_client_ids_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint32_t num_ids;
uint8_t pad1[20];
} xcb_res_query_client_ids_reply_t;
π Reply function π
this is how you actually pick up your reply. hand her the cookie, bestie:
xcb_res_query_client_ids_reply_t
*xcb_res_query_client_ids_reply(xcb_connection_t *conn,
xcb_res_query_client_ids_cookie_t cookie,
xcb_generic_error_t **e);
π Reply accessors π
little helper functions to poke at the reply without doing math yourself. iconic behaviour tbh:
int xcb_res_query_client_ids_ids_length(const
xcb_res_query_client_ids_reply_t *reply);
xcb_res_client_id_value_iterator_t
xcb_res_query_client_ids_ids_iterator(const
xcb_res_query_client_ids_reply_t *reply);
π«Ά REQUEST ARGUMENTS π«Ά
connβ the XCB connection to X11. your link to the server, your main character connection πnum_specsβ TODO: NOT YET DOCUMENTED. (not me leaving this blank, that's genuinely what the docs say π)specsβ TODO: NOT YET DOCUMENTED. (same energy, we don't make the rules)
π REPLY FIELDS π
response_typeβ the type of this reply, and in this case it's literallyXCB_RES_QUERY_CLIENT_IDS. this field is also hanging out in thexcb_generic_reply_t, so you can use it to tell your replies apart from each other. vibe check your replies, periodt.sequenceβ the sequence number of the last request the X11 server processed. she's keeping track πlengthβ the length of the reply, measured in words. and a word is 4 bytes, bestie, don't forget.num_idsβ TODO: NOT YET DOCUMENTED. (the docs really said "figure it out" π)
π DESCRIPTION π
literally nothing here in the original. it's giving mystery, it's giving cryptic. moving on β¨
π RETURN VALUE π
she hands you back an xcb_res_query_client_ids_cookie_t. that's your cookie πͺ β and ngl, errors have to be handled when you call the reply function xcb_res_query_client_ids_reply.
if you'd rather handle errors in the event loop instead (very valid, very event-driven of you), then use xcb_res_query_client_ids_unchecked instead. see xcb-requests(3) for the details, she explains it all.
π ERRORS π
good news bestie: this request does never generate any errors. not a single one. flawless. ate and left no crumbs π
π¦ SEE ALSO π¦
(this section is empty in the original β she said "no references, only vibes" π)
β AUTHOR β
Generated from res.xml. Contact xcb@lists.freedesktop.org for corrections and improvements.
and that's the whole page, bestie!! π this one came to you from X Version 11 and libxcb 1.17.0 β go forth and query those client ids, you absolute icon πβ¨π¦
π¦ where this page comes from
- alpine 3.22: libxcb-doc 1.17.0-r0 Β· MIT
- alpine 3.23: libxcb-doc 1.17.0-r1 Β· MIT
- alpine 3.24: libxcb-doc 1.17.0-r2 Β· MIT
- arch rolling: libxcb 1.17.0-1 Β· X11
- centos-stream 10: libxcb-devel 1.17.0-3.el10 Β· X11
- debian trixie: libxcb-doc 1.17.0-2
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- nixpkgs unstable: libxcb 1.17.0
- opensuse-leap 16.0: libxcb-devel-doc 1.17.0-160000.2.2 Β· MIT
- ubuntu questing: libxcb-doc 1.17.0-2build1
- ubuntu resolute: libxcb-doc 1.17.0-2ubuntu1
- ubuntu stonking: libxcb-doc 1.17.0-2ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms