xcb_randr_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_randr_query_version β€” the XCB Requests glow-up πŸ’–

okay bestie, so this is a page from the XCB Requests manual set, and its whole name is xcb_randr_query_version(3). It's part of the RandR fam (that's "Resize and Rotate", the thing that lets your screens do their little layout thing). Let's get into it πŸ’…


✨ NAME ✨

xcb_randr_query_version -

ngl the original page literally just leaves a lil dash here and nothing else. No description. We keep it real, so the dash stays 🫢

🌸 SYNOPSIS 🌸

#include <xcb/randr.h>

πŸŽ€ Request function

xcb_randr_query_version_cookie_t
       xcb_randr_query_version(xcb_connection_t *conn,
       uint32_t major_version, uint32_t minor_version);

πŸŽ€ Reply datastructure

typedef struct xcb_randr_query_version_reply_t {
           uint8_t  response_type;
           uint8_t  pad0;
           uint16_t sequence;
           uint32_t length;
           uint32_t major_version;
           uint32_t minor_version;
           uint8_t  pad1[16];
       } xcb_randr_query_version_reply_t;

πŸŽ€ Reply function

xcb_randr_query_version_reply_t
              *xcb_randr_query_version_reply(xcb_connection_t *conn,
              xcb_randr_query_version_cookie_t cookie,
              xcb_generic_error_t **e);

πŸ¦‹ REQUEST ARGUMENTS πŸ¦‹

  • conn β€” the XCB connection to X11. that's your lil phone line to the server, bestie πŸ“ž
  • major_version β€” TODO: NOT YET DOCUMENTED. yeah. the page really said "we'll get to it". iconic of them tbh 😭
  • minor_version β€” TODO: NOT YET DOCUMENTED. same energy. nobody wrote this part fr fr

⭐ REPLY FIELDS ⭐

  • response_type β€” the type of this reply, and in this case it's XCB_RANDR_QUERY_VERSION. This field is also present in the xcb_generic_reply_t, so you can use it to tell replies apart from each other πŸ‘€
  • sequence β€” the sequence number of the last request processed by the X11 server. it's giving "receipt number" 🧾
  • length β€” the length of the reply, in words. and heads up: a word is 4 bytes in this house πŸ’€
  • major_version β€” TODO: NOT YET DOCUMENTED. again!! the mystery stays mysterious πŸ™ˆ
  • minor_version β€” TODO: NOT YET DOCUMENTED. and again. we love a cliffhanger ✨

πŸ’œ DESCRIPTION πŸ’œ

bestie. there is literally nothing here. the DESCRIPTION section is empty. no notes. slay, I guess πŸ’…

🌈 RETURN VALUE 🌈

It hands you back an xcb_randr_query_version_cookie_t. That's your lil claim ticket, and errors have to be handled when you call the reply function xcb_randr_query_version_reply πŸ“

But wait β€” if you'd rather handle errors inside the event loop instead, use xcb_randr_query_version_unchecked. See xcb-requests(3) for the deets ✨


πŸ‘‘ ERRORS πŸ‘‘

This request does never generate any errors. Periodt. Zero drama, zero errors, it's just out here living its best life πŸ¦‹


πŸ”₯ SEE ALSO πŸ”₯

the original page has nothing listed here. an empty section. we're keeping it empty because facts are facts πŸ’–

🧚 AUTHOR 🧚

Generated from randr.xml. Contact xcb@lists.freedesktop.org for corrections and improvements 🫢


and that's the whole page, bestie!! written for X Version 11, from libxcb 1.17.0, and the page itself is xcb_randr_query_version(3) πŸ’–βœ¨πŸŽ€ no cap, that's all of it. mwah πŸ’