xcb_dpms_get_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_dpms_get_version(3) β€” XCB Requests πŸ’«

okay bestie, welcome to the xcb_dpms_get_version page from the XCB Requests fam 🫢 this is where you ask the X server "hey girl, what DPMS version are you running?" and it tells you. no cap.


✨ NAME ✨

xcb_dpms_get_version β€” (the original literally leaves this blank, so like… the name is the vibe. it does the version-asking thing πŸ’…)


✨ SYNOPSIS ✨

#include <xcb/dpms.h>

πŸŽ€ Request function

xcb_dpms_get_version_cookie_t
       xcb_dpms_get_version(xcb_connection_t *conn,
       uint16_t client_major_version, uint16_t client_minor_version);

πŸŽ€ Reply datastructure

typedef struct xcb_dpms_get_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;
} xcb_dpms_get_version_reply_t;

πŸŽ€ Reply function

xcb_dpms_get_version_reply_t
       *xcb_dpms_get_version_reply(xcb_connection_t *conn,
       xcb_dpms_get_version_cookie_t cookie, xcb_generic_error_t **e);

🌸 REQUEST ARGUMENTS 🌸

  • conn β€” your XCB connection to X11, the whole reason we're here πŸ’–
  • client_major_version β€” TODO: NOT YET DOCUMENTED. (the manpage is literally leaving us on read, sorry bestie 😭)
  • client_minor_version β€” TODO: NOT YET DOCUMENTED. (same energy, fr fr)

πŸ¦‹ REPLY FIELDS πŸ¦‹

  • response_type β€” the type of this reply, and in this case it's XCB_DPMS_GET_VERSION. this field also shows up in the xcb_generic_reply_t, so you can use it to tell your replies apart from each other πŸ‘‘
  • 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, periodt).
  • server_major_version β€” TODO: NOT YET DOCUMENTED. πŸ™ˆ
  • server_minor_version β€” TODO: NOT YET DOCUMENTED. πŸ™ˆ

πŸ’œ DESCRIPTION πŸ’œ

(yeah… the original section is just. empty. it's giving mystery. it's giving "figure it out yourself, babe" ✨ not me adding anything that isn't there, because we don't do that πŸ’…)


⭐ RETURN VALUE ⭐

Returns an xcb_dpms_get_version_cookie_t. the way that errors have to be handled when you call the reply function xcb_dpms_get_version_reply β€” like, that's where they show up, no cap.

If you'd rather handle errors in the event loop instead, use xcb_dpms_get_version_unchecked. see xcb-requests(3) for the deets 🫢


πŸ’€ ERRORS πŸ’€

This request does never generate any errors. iconic, honestly. zero drama. 🌈


πŸ”₯ SEE ALSO πŸ”₯

(okay so the original lists absolutely nothing here. nothing. nada. a whole empty section. i'm as shook as you are 😭)


🧚 AUTHOR 🧚

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


and that's the whole page bestie!! this little gem shipped as part of X Version 11, libxcb 1.17.0, and it lives in the XCB Requests corner of the manual 🌸 go ask that server what version it's on, you absolute main character πŸ‘‘πŸ’–βœ¨