XCB_X_PRINT_PRINT_QUERY_VERSION_REPLY(3)
π xcb_x_print_print_query_version β bestie edition π
okay so we're doing xcb_x_print_p..._query_version(3) today, from the XCB Requests section of the manual. it's an X Print thing. yes, X Print. yes, it's a whole vibe. stay with me π«Ά
β¨ NAME β¨
xcb_x_print_print_query_version β (the original page literally leaves this blank, so likeβ¦ it's giving mysterious. it queries the version, babe. that's the whole thing.)
πΈ SYNOPSIS πΈ
first you gotta pull in the header, no cap:
#include <xcb/xprint.h>
π Request function
xcb_x_print_print_query_version_cookie_t
xcb_x_print_print_query_version(xcb_connection_t *conn,
(yes the line really does end on that comma. that's just how she is. iconic behavior, we don't question it.)
π¦ Reply datastructure
typedef struct xcb_x_print_print_query_version_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint16_t major_version;
uint16_t minor_version;
} xcb_x_print_print_query_version_reply_t;
π Reply function
xcb_x_print_print_query_version_reply_t
*xcb_x_print_print_query_version_reply(xcb_connection_t *conn,
xcb_x_print_print_query_version_cookie_t cookie,
xcb_generic_error_t **e);
π REQUEST ARGUMENTS π
connβ your XCB connection to X11. that's the link-up. the whole reason you're here. π«
π REPLY FIELDS π
response_typeβ the type of this reply, and in this case it'sXCB_X_PRINT_PRINT_QUERY_VERSION. this field is also chillin' in thexcb_generic_reply_t, so you can use it to tell replies apart from each other. like name tags at a party but for structs. π·οΈsequenceβ the sequence number of the last request processed by the X11 server. keeping receipts, fr fr. π§Ύlengthβ the length of the reply, in words. and bestie, a word is 4 bytes. don't forget. β¨major_versionβTODO: NOT YET DOCUMENTED.(not me documenting it. anyway.)minor_versionβTODO: NOT YET DOCUMENTED.(same energy, same silence.)
π DESCRIPTION π
the DESCRIPTION section of the original page is literally empty. nothing. void. a blank canvas. we respect her privacy. π³οΈβ¨
β RETURN VALUE β
she hands you back an xcb_x_print_print_query_version_cookie_t. πͺ and listen β errors have to be handled when you call the reply function xcb_x_print_print_query_version_reply.
but if you'd rather handle errors in the event loop instead? use xcb_x_print_print_query_version_unchecked. see xcb-requests(3) for the details, because there are details. π
π¨ ERRORS π¨
this request does never generate any errors. zero. none. clean sheet. no drama. πβ¨
π₯ SEE ALSO π₯
this section is empty in the original. she said "no links today."
π AUTHOR π
Generated from xprint.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. (they're literally asking for your notes, bestie, go off.)
and that's the whole page, mwah π β this was X Version 11, libxcb 1.17.0, and we are so done here. slay, stay hydrated, and always read your reply fields. πΈπ¦π
π¦ 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