xcb_sync_query_counter(3)
π xcb_sync_query_counter β the XCB Requests girlies' guide π
okay so bestie, welcome to xcb_sync_query_counter from libxcb β it lives in section 3 of the manual (that's the XCB Requests chapter, iykyk) and it's literally just here to go ask the X server what a counter is up to. no cap. π¦
β¨ NAME β¨
xcb_sync_query_counter β (the original page leaves this blank, so we're keeping it blank, periodt π
)
πΈ SYNOPSIS πΈ
#include <xcb/sync.h>
π Request function
xcb_sync_query_counter_cookie_t
xcb_sync_query_counter(xcb_connection_t *conn,
xcb_sync_counter_t counter);
π Reply datastructure
typedef struct xcb_sync_query_counter_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
xcb_sync_int64_t counter_value;
} xcb_sync_query_counter_reply_t;
π Reply function
xcb_sync_query_counter_reply_t
*xcb_sync_query_counter_reply(xcb_connection_t *conn,
xcb_sync_query_counter_cookie_t cookie, xcb_generic_error_t **e);
π«Ά REQUEST ARGUMENTS π«Ά
connβ the XCB connection to X11, aka your lil hotline to the server. πcounterβTODO: NOT YET DOCUMENTED.(not me documenting the undocumented... the original literally says this, so we're saying it too π)
β REPLY FIELDS β
response_typeβ the type of this reply, and in this case it'sXCB_SYNC_QUERY_COUNTER. plot twist: this field is also chilling insidexcb_generic_reply_t, so you can use it to tell your replies apart from each other. very main character of it. πsequenceβ the sequence number of the last request the X11 server processed. the receipts, basically. π§Ύlengthβ how long the reply is, in words. and a word is4bytes, bestie, don't forget. πcounter_valueβTODO: NOT YET DOCUMENTED.again fr fr π
π DESCRIPTION π
(yeah... the original page has nothing here either. iconic of it, honestly. nothing to see, move along π)
π₯ RETURN VALUE π₯
It returns an xcb_sync_query_counter_cookie_t. and here's the thing β errors have to be handled when you call the reply function xcb_sync_query_counter_reply.
If you'd rather handle errors in the event loop instead, use xcb_sync_query_counter_unchecked. see xcb-requests(3) for the deets. β¨
π ERRORS π
This request does never generate any errors. zero. none. a whole clean slate, slay. π
π¦ SEE ALSO π¦
(the original page lists absolutely nothing here β no references, no friends, nothing. it's giving solitary confinement π )
πΈ AUTHOR πΈ
Generated from sync.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. π«Ά
and that's the whole page, bestie!! mwah π okay so the tiny print at the bottom of the original said X Version 11, libxcb 1.17.0, and the page name xcb_sync_query_counter(3) β consider this your cute lil sign-off, go forth and query those counters, 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