xcb_selinux_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_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's XCB_SELINUX_QUERY_VERSION. This field is also chillin' in the xcb_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 is 4 bytes, 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 πŸ’–βœ¨