XCB_GENERICEVENT_QUERY_VERSION_REPLY(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_genericevent_query_version ✨

okay bestie, so this is a page from the XCB Requests manual β€” it's xcb_genericevent_query_version(3), and yes the name is a whole mouthful, we're gonna get through it together πŸ’–


🌸 NAME 🌸

xcb_genericevent_query_version β€” literally just the name, the original page leaves it blank, so no extra lore here, iykyk πŸ™ˆ


πŸ¦‹ SYNOPSIS πŸ¦‹

First things first, you gotta include the header:

#include <xcb/ge.h>

πŸ’… Request function

xcb_genericevent_query_version_cookie_t
       xcb_genericevent_query_version(xcb_connection_t *conn,
       uint16_t client_major_version, uint16_t client_minor_version);

πŸŽ€ Reply datastructure

typedef struct xcb_genericevent_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;
    uint8_t  pad1[20];
} xcb_genericevent_query_version_reply_t;

⭐ Reply function

xcb_genericevent_query_version_reply_t
       *xcb_genericevent_query_version_reply(xcb_connection_t *conn,
       xcb_genericevent_query_version_cookie_t cookie,
       xcb_generic_error_t **e);

πŸ’œ REQUEST ARGUMENTS πŸ’œ

  • conn β€” the XCB connection to X11, your little hotline to the server, no cap 🫢
  • client_major_version β€” TODO: NOT YET DOCUMENTED. (not me leaving it like the original did, bestie, it's giving mysterious πŸ‘€)
  • client_minor_version β€” TODO: NOT YET DOCUMENTED. (same energy, the lore is unwritten πŸ’€)

🌈 REPLY FIELDS 🌈

  • response_type β€” the type of this reply, and in this case it's XCB_GENERICEVENT_QUERY_VERSION. this field also lives in the xcb_generic_reply_t, so you can use it to tell replies apart from each other. main character energy for real πŸ‘‘
  • sequence β€” the sequence number of the last request processed by the X11 server.
  • length β€” the length of the reply, in words (and a word is 4 bytes, keep that in mind bestie πŸ“).
  • major_version β€” TODO: NOT YET DOCUMENTED. πŸ™ˆ
  • minor_version β€” TODO: NOT YET DOCUMENTED. πŸ™ˆ

✨ DESCRIPTION ✨

(so real talk, the original page has literally nothing here. iconic of it. slay πŸ’…)


πŸ’– RETURN VALUE πŸ’–

It returns an xcb_genericevent_query_version_cookie_t. Errors have to be handled when you call the reply function xcb_genericevent_query_version_reply.

If you'd rather handle errors in the event loop instead, use xcb_genericevent_query_version_unchecked. See xcb-requests(3) for the details, go read it, it's worth it 🧚


πŸ”₯ ERRORS πŸ”₯

This request does never generate any errors. periodt. zero drama, zero errors, we love a peaceful queen ✨

🌸 SEE ALSO 🌸

(also empty in the original β€” the vibe is minimal, the silence is loud πŸ’€)


🫢 AUTHOR 🫢

Generated from ge.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. (they're the real ones, fr fr πŸ’Œ)


and that's the whole page bestie!! tysm for reading, mwah πŸ˜­πŸ’–

this was brought to you by X Version 11 and libxcb 1.17.0 β€” stay hydrated, keep your file descriptors closed, and slay πŸŽ€πŸ¦‹βœ¨