XCB_SELINUX_GET_SELECTION_USE_CONTEXT_CONTEXT_END(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_get_selection_use_context β€” XCB Requests ✨

okay bestie, welcome to the manual page for xcb_selinux_get_selection_use_context, part of the XCB Requests crew. she's a libxcb girlie, she lives in xselinux, and honestly? she's serving mystery because half of this page is "not yet documented" πŸ™ˆ. let's get into it.


🌸 NAME 🌸

xcb_selinux_get_selection_use_context β€” literally no description given, the original just trails off into the void πŸ’€


πŸŽ€ SYNOPSIS πŸŽ€

First up, you gotta pull her in:

#include <xcb/xselinux.h>

✨ Request function ✨

xcb_selinux_get_selection_use_context_cookie_t
       xcb_selinux_get_selection_use_context(xcb_connection_t *conn,

πŸ¦‹ Reply datastructure πŸ¦‹

here's the shape of the reply, look at her go:

typedef struct xcb_selinux_get_selection_use_context_reply_t {
    uint8_t  response_type;
    uint8_t  pad0;
    uint16_t sequence;
    uint32_t length;
    uint32_t context_len;
    uint8_t  pad1[20];
} xcb_selinux_get_selection_use_context_reply_t;

πŸ’… Reply function πŸ’…

xcb_selinux_get_selection_use_context_reply_t
       *xcb_selinux_get_selection_use_context_reply(xcb_connection_t *conn,
       xcb_selinux_get_selection_use_context_cookie_t cookie,
       xcb_generic_error_t **e);

🌈 Reply accessors 🌈

the little helpers that get you into the reply, no cap:

char *xcb_selinux_get_selection_use_context_context(const
       xcb_selinux_get_selection_use_context_request_t *reply);

int xcb_selinux_get_selection_use_context_context_length(const
       xcb_selinux_get_selection_use_context_reply_t *reply);

xcb_generic_iterator_t
       xcb_selinux_get_selection_use_context_context_end(const
       xcb_selinux_get_selection_use_context_reply_t *reply);

🫢 REQUEST ARGUMENTS 🫢

  • conn β€” your XCB connection to X11. that's it, that's the whole list, she's low maintenance πŸ’œ

⭐ REPLY FIELDS ⭐

  • response_type β€” the type of this reply, and in this specific case it's XCB_SELINUX_GET_SELECTION_USE_CONTEXT. this field also lives in the xcb_generic_reply_t, so you can use it to tell your replies apart from each other. very "which twin is which" energy πŸ‘‘
  • sequence β€” the sequence number of the last request the X11 server processed. it's giving receipt tracking 🧾
  • length β€” how long the reply is, in words. and yes bestie, a word is 4 bytes, that's just the lore around here.
  • context_len β€” TODO: NOT YET DOCUMENTED. 😭 the original literally said that, i'm not making it up, we simply do not know her.

πŸ’€ DESCRIPTION πŸ’€

so... the DESCRIPTION section is empty. nothing. a whole vibe. she said "no thoughts, head empty" 🌸


πŸ”₯ RETURN VALUE πŸ”₯

she hands you back an xcb_selinux_get_selection_use_context_cookie_t. errors do NOT show up here β€” you have to deal with them when you call the reply function xcb_selinux_get_selection_use_context_reply.

but if you'd rather handle your errors in the event loop instead (valid, honestly), use xcb_selinux_get_selection_use_context_unchecked. head to xcb-requests(3) for the full tea on how that works.

🌸 ERRORS 🌸

this request never generates any errors. not one. zero. she's unproblematic fr fr ✨


πŸ¦‹ SEE ALSO πŸ¦‹

nothing here, the original left this section blank. we move.


πŸŽ€ AUTHOR πŸŽ€

Generated from xselinux.xml. if you've got corrections or improvements, hit up xcb@lists.freedesktop.org β€” they're taking notes, bestie πŸ“


and that's the whole page, you ate it πŸ’…πŸ’– this was X Version 11, libxcb 1.17.0, and honestly? iconic behavior from a manpage with three empty sections. slay, go forth and query your SELinux selection use context, periodt 🫢🌈