XCB_X_PRINT_PRINT_QUERY_VERSION_UNCHECKED(3)

πŸ“¦
version 1.17.0 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– 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's XCB_X_PRINT_PRINT_QUERY_VERSION. this field is also chillin' in the xcb_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. πŸŒΈπŸ¦‹πŸ’œ