xcb_xinerama_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_xinerama_query_version โ€” a manual page, but make it slay ๐Ÿ’–

okay so bestie, this is a page from the XCB Requests collection (that's the C binding to X11, the thing keeping your windows on screen since forever). Sit down, grab a boba, we're learning about xcb_xinerama_query_version.


โœจ NAME โœจ

xcb_xinerama_query_version โ€” no description given, and honestly? iconic mysterious behaviour ๐Ÿ’… the manpage literally just leaves it blank. We move.


๐ŸŒธ SYNOPSIS ๐ŸŒธ

First things first, you gotta include the header:

#include <xcb/xinerama.h>

๐ŸŽ€ Request function ๐ŸŽ€

xcb_xinerama_query_version_cookie_t
       xcb_xinerama_query_version(xcb_connection_t *conn, uint8_t major,
       uint8_t minor);

๐Ÿฆ‹ Reply datastructure ๐Ÿฆ‹

typedef struct xcb_xinerama_query_version_reply_t {
    uint8_t  response_type;
    uint8_t  pad0;
    uint16_t sequence;
    uint32_t length;
    uint16_t major;
    uint16_t minor;
} xcb_xinerama_query_version_reply_t;

โญ Reply function โญ

xcb_xinerama_query_version_reply_t
       *xcb_xinerama_query_version_reply(xcb_connection_t *conn,
       xcb_xinerama_query_version_cookie_t cookie,
       xcb_generic_error_t **e);

๐Ÿซถ REQUEST ARGUMENTS ๐Ÿซถ

  • conn โ€” your XCB connection to X11. the whole pipeline to the server, the main character fr.
  • major โ€” TODO: NOT YET DOCUMENTED. yeah babe, they left us on read for this one ๐Ÿ˜ญ
  • minor โ€” also TODO: NOT YET DOCUMENTED. same energy, same void ๐Ÿ™ˆ

๐ŸŒˆ REPLY FIELDS ๐ŸŒˆ

  • response_type โ€” the type of this reply, which in this case is XCB_XINERAMA_QUERY_VERSION. it also lives inside xcb_generic_reply_t, so you can use it to tell your replies apart from each other. lowkey the bouncer at the club checking IDs ๐Ÿชช
  • sequence โ€” the sequence number of the last request processed by the X11 server. it's giving โœจreceiptsโœจ
  • length โ€” how long the reply is, in words. and no, not words like sentences โ€” a word here is 4 bytes. math girlies rise ๐Ÿงฎ
  • major โ€” TODO: NOT YET DOCUMENTED. ๐Ÿ’€
  • minor โ€” TODO: NOT YET DOCUMENTED. ๐Ÿ’€

๐Ÿ’œ DESCRIPTION ๐Ÿ’œ

There is no description. The void. The silence. We respect it. โœจ


๐Ÿ‘‘ RETURN VALUE ๐Ÿ‘‘

You get back an xcb_xinerama_query_version_cookie_t. (A cookie! Cute, right? it's your little claim ticket ๐Ÿช)

Errors? You don't deal with them here โ€” you handle them when you call the reply function xcb_xinerama_query_version_reply.

But if you'd rather catch errors in the event loop instead, use xcb_xinerama_query_version_unchecked. The details on all that live in xcb-requests(3), so go read it, bestie.


๐Ÿšจ ERRORS ๐Ÿšจ

This request does never generate any errors. periodt. zero drama, zero chaos, we love a peaceful queen ๐Ÿ•Š๏ธ


๐Ÿ”ฅ SEE ALSO ๐Ÿ”ฅ

Nothing listed here. Empty. A clean slate. Very minimal, very chic. ๐Ÿ’…


๐ŸŒŸ AUTHOR ๐ŸŒŸ

Generated from xinerama.xml. If you've got corrections or improvements, hmu at xcb@lists.freedesktop.org ๐Ÿ“ง


and that's the whole page, bestie!! this came from X Version 11, libxcb 1.17.0, and the page itself is xcb_xinerama_query_version(3). go forth and query those versions, you absolute legend ๐Ÿฆ‹๐Ÿ’–โœจ