xcb_xevie_query_version(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_xevie_query_version(3) β€” XCB Requests ✨

okay bestie, welcome to the xcb_xevie_query_version page from the XCB crew πŸ’– this is a <hotpink>libxcb</hotpink> manpage, and yes it is exactly as empty on lore as it looks, but we're gonna walk through every single crumb of it together 🫢


🌸 NAME 🌸

xcb_xevie_query_version -

(yes the description is literally blank, no cap, the upstream page has nothing after the dash πŸ™ˆ we keep it real here)


✨ SYNOPSIS ✨

First things first, you gotta pull in the header:

#include <xcb/xevie.h>

πŸŽ€ Request function πŸŽ€

xcb_xevie_query_version_cookie_t
       xcb_xevie_query_version(xcb_connection_t *conn,
       uint16_t client_major_version, uint16_t client_minor_version);

πŸ¦‹ Reply datastructure πŸ¦‹

typedef struct xcb_xevie_query_version_reply_t {
    uint8_t  response_type;
    uint8_t  pad0;
    uint16_t sequence;
    uint32_t length;
    uint16_t server_major_version;
    uint16_t server_minor_version;
    uint8_t  pad1[20];
} xcb_xevie_query_version_reply_t;

πŸ’œ Reply function πŸ’œ

xcb_xevie_query_version_reply_t
       *xcb_xevie_query_version_reply(xcb_connection_t *conn,
       xcb_xevie_query_version_cookie_t cookie,
       xcb_generic_error_t **e);

🌈 REQUEST ARGUMENTS 🌈

  • conn β€” the XCB connection to X11, your lil hotline to the server πŸ’«
  • client_major_version β€” TODO: NOT YET DOCUMENTED. (the docs really said "we'll finish this later" and then never did 😭)
  • client_minor_version β€” TODO: NOT YET DOCUMENTED. (same energy, fr fr)

πŸ“ REPLY FIELDS πŸ“

  • response_type β€” the type of this reply, in this case XCB_XEVIE_QUERY_VERSION. This field is also present in the xcb_generic_reply_t and can be used to tell replies apart from each other. it's giving ✨name tag at a party✨
  • sequence β€” the sequence number of the last request processed by the X11 server πŸ”’
  • length β€” the length of the reply, in words (a word is 4 bytes, iconic unit of measurement πŸ’…)
  • server_major_version β€” TODO: NOT YET DOCUMENTED.
  • server_minor_version β€” TODO: NOT YET DOCUMENTED.

πŸ’– DESCRIPTION πŸ’–

okay so… the DESCRIPTION section is literally empty in the original. nothing. void. the server said "no thoughts, head empty" 🫠 that's not me skipping it, bestie, that's just what's on the page.


⭐ RETURN VALUE ⭐

Returns an xcb_xevie_query_version_cookie_t πŸͺ β€” a lil cookie, love that for us.

Errors have to be handled when calling the reply function xcb_xevie_query_version_reply.

If you want to handle errors in the event loop instead, use xcb_xevie_query_version_unchecked. See xcb-requests(3) for details πŸ‘‘


πŸ”₯ ERRORS πŸ”₯

This request does never generate any errors. not a single one. zero drama, main character energy, no cap πŸ’€βœ¨


🧚 SEE ALSO 🧚

(blank in the original β€” the cross-references said "not today" πŸ™ˆ)


🌸 AUTHOR 🌸

Generated from xevie.xml. Contact xcb@lists.freedesktop.org for corrections and improvements πŸ’Œ


and that's the whole page, bestie!! it was written by the XCB squad, shipped as part of X Version 11, libxcb 1.17.0, and this lil gem of a page is xcb_xevie_query_version(3) β€” mwah, go query some versions, slay πŸ’…πŸ’–πŸ¦‹