xcb_selinux_query_version(3)
β¨ xcb_selinux_query_version β¨
okay bestie, welcome to the xcb_selinux_query_version page β section 3 of the manual, part of the XCB Requests crew π. This is the one where you ask the X server "hey girl, what version of the SELinux extension are you running?" and she replies with receipts. π
πΈ SYNOPSIS πΈ
#include <xcb/xselinux.h>
π«Ά Request function
xcb_selinux_query_version_cookie_t
xcb_selinux_query_version(xcb_connection_t *conn,
uint8_t client_major, uint8_t client_minor);
π¦ Reply datastructure
typedef struct xcb_selinux_query_version_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint16_t server_major;
uint16_t server_minor;
} xcb_selinux_query_version_reply_t;
π Reply function
xcb_selinux_query_version_reply_t
*xcb_selinux_query_version_reply(xcb_connection_t *conn,
xcb_selinux_query_version_cookie_t cookie,
xcb_generic_error_t **e);
π REQUEST ARGUMENTS π
connβ the XCB connection to X11, aka your direct line to the server, your hotline bling βοΈ.client_majorβ TODO: NOT YET DOCUMENTED. yeah babe, the docs really said "mystery" on this one π not me having nothing to tell you.client_minorβ TODO: NOT YET DOCUMENTED. same energy, the lore is simply not written down yet π.
π REPLY FIELDS π
response_typeβ the type of this reply, and in this case it'sXCB_SELINUX_QUERY_VERSION. This field is also chillin' in thexcb_generic_reply_t, so you can use it to tell your replies apart from each other π very "which one of you is which" coded.sequenceβ the sequence number of the last request the X11 server processed. it's giving chronological order, fr fr β.lengthβ the length of the reply, measured in words (and a word here is4bytes, no cap) π.server_majorβ TODO: NOT YET DOCUMENTED. another one the writers left blank bestie π.server_minorβ TODO: NOT YET DOCUMENTED. and that's the whole vibe for this one too π.
π§ DESCRIPTION π§
crickets ...yeah, this section is literally empty in the original. the description section said "no thoughts, head empty" π nothing to add, nothing to invent, we respect the silence.
π₯ RETURN VALUE π₯
It returns an xcb_selinux_query_version_cookie_t πͺ β a whole cookie, iconic. Errors have to be handled when you call the reply function xcb_selinux_query_version_reply.
If you'd rather handle errors in the event loop instead, use xcb_selinux_query_version_unchecked β she's the unchecked girlie of the two π
. See xcb-requests(3) for the details, iykyk.
π ERRORS π
This request does never generate any errors. not one. zero. she's unproblematic, main character energy only β¨.
π SEE ALSO π
nothing here either β the original left this one blank too, so we're keeping it blank, periodt π.
πΈ AUTHOR πΈ
Generated from xselinux.xml. Contact xcb@lists.freedesktop.org for corrections and improvements β they're literally asking for your feedback bestie, go tell them π«Ά.
and that's the whole page!! π¦ this one came from X Version 11, libxcb 1.17.0, and it's the xcb_selinux_query_version(3) page β mwah, slay, go query some versions πβ¨
π¦ 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