xcb_screensaver_query_version(3)
π xcb_screensaver_query_version β the XCB Requests girlies' guide β¨
okay so bestie, welcome to xcb_screensaver_query_version, a lil request from the XCB Requests corner of the universe (that's the manual section, section 3, iykyk). she's giving "hey server, what version of the screensaver extension are you on" and honestly? iconic behavior. π
πΈ NAME πΈ
xcb_screensaver_query_version β literally the whole name, and the description field in the original is justβ¦ empty. a mystery. a blank canvas. we move. π
π¦ SYNOPSIS π¦
first up, the include, don't forget her:
#include <xcb/screensaver.h>
π Request function
xcb_screensaver_query_version_cookie_t
xcb_screensaver_query_version(xcb_connection_t *conn,
uint8_t client_major_version, uint8_t client_minor_version);
π Reply datastructure
typedef struct xcb_screensaver_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_screensaver_query_version_reply_t;
π Reply function
xcb_screensaver_query_version_reply_t
*xcb_screensaver_query_version_reply(xcb_connection_t *conn,
xcb_screensaver_query_version_cookie_t cookie,
xcb_generic_error_t **e);
β¨ REQUEST ARGUMENTS β¨
connβ your XCB connection to X11. your ride or die. the link between you and the server, no cap. π₯client_major_versionβTODO: NOT YET DOCUMENTED.yeah bestie, the docs justβ¦ never filled this one in. it is what it is. πclient_minor_versionβTODO: NOT YET DOCUMENTED.same vibe, same void. π
π REPLY FIELDS π
response_typeβ the type of this reply, and in this case it'sXCB_SCREENSAVER_QUERY_VERSION. this field is also hanging out in thexcb_generic_reply_t, and you can use it to tell replies apart from each other. very "which one of y'all is this" energy. πsequenceβ the sequence number of the last request the X11 server processed. she's keeping receipts. πlengthβ the length of the reply, measured in words. and a word is 4 bytes, so jot that down. βserver_major_versionβTODO: NOT YET DOCUMENTED.the mystery continues. π«Άserver_minor_versionβTODO: NOT YET DOCUMENTED.and the mystery continues again. π¦
π DESCRIPTION π
soβ¦ the original leaves this section completely blank. empty. a vibe, honestly. nothing to add here because bestie, there is nothing there. periodt. π
π RETURN VALUE π
she hands you back an xcb_screensaver_query_version_cookie_t. π and listen β errors have to be handled when you call the reply function, xcb_screensaver_query_version_reply.
if you'd rather handle your errors in the event loop instead, use xcb_screensaver_query_version_unchecked. see xcb-requests(3) for the details, she explains it better than me. π
π ERRORS π
good news bestie: this request never generates any errors. zero. none. not a single one. she's that chill. β¨
π SEE ALSO π
nothing listed here in the original β an empty section, a silent queen. π
π«Ά AUTHOR π«Ά
generated from screensaver.xml. for corrections and improvements, hit up xcb@lists.freedesktop.org β they're the ones who actually made this, not me, I'm just the messenger. π
and that's the whole page, bestie!! this was brought to you by X Version 11 and libxcb 1.17.0 β go forth and query those versions, you absolute main character. π ππ
π¦ where this page comes from
- alpine 3.22: libxcb-doc 1.17.0-r0 Β· MIT
- alpine 3.23: libxcb-doc 1.17.0-r1 Β· MIT
- alpine 3.24: libxcb-doc 1.17.0-r2 Β· MIT
- arch rolling: libxcb 1.17.0-1 Β· X11
- centos-stream 10: libxcb-devel 1.17.0-3.el10 Β· X11
- debian trixie: libxcb-doc 1.17.0-2
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- nixpkgs unstable: libxcb 1.17.0
- opensuse-leap 16.0: libxcb-devel-doc 1.17.0-160000.2.2 Β· MIT
- ubuntu questing: libxcb-doc 1.17.0-2build1
- ubuntu resolute: libxcb-doc 1.17.0-2ubuntu1
- ubuntu stonking: libxcb-doc 1.17.0-2ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms