XCB_SELINUX_GET_SELECTION_CONTEXT_REPLY(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

πŸ’… NAME πŸ’…

xcb_selinux_get_selection_context β€” bestie, the description is literally blank in the original, so… it's giving mystery. We move anyway. πŸŽ€


✨ SYNOPSIS ✨

#include <xcb/xselinux.h>

πŸ¦‹ Request function

xcb_selinux_get_selection_context_cookie_t
       xcb_selinux_get_selection_context(xcb_connection_t *conn,
       xcb_atom_t selection);

πŸ¦‹ Reply datastructure

typedef struct xcb_selinux_get_selection_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_context_reply_t;

πŸ¦‹ Reply function

xcb_selinux_get_selection_context_reply_t
       *xcb_selinux_get_selection_context_reply(xcb_connection_t *conn,
       xcb_selinux_get_selection_context_cookie_t cookie,
       xcb_generic_error_t **e);

πŸ¦‹ Reply accessors

char *xcb_selinux_get_selection_context_context(const
       xcb_selinux_get_selection_context_request_t *reply);

int xcb_selinux_get_selection_context_context_length(const
       xcb_selinux_get_selection_context_reply_t *reply);

xcb_generic_iterator_t
       xcb_selinux_get_selection_context_context_end(const
       xcb_selinux_get_selection_context_reply_t *reply);

🌸 REQUEST ARGUMENTS 🌸

  • conn β€” the XCB connection to X11, aka your lil hotline to the server. πŸ’–
  • selection β€” okay so the original literally says TODO: NOT YET DOCUMENTED. Not me exposing the manpage's unfinished homework. πŸ™ˆ It's an xcb_atom_t, bestie, that's all we got.

πŸ’œ REPLY FIELDS πŸ’œ

  • response_type β€” the type of this reply. In this case it's XCB_SELINUX_GET_SELECTION_CONTEXT. This field also lives in xcb_generic_reply_t, so you can use it to tell replies apart from each other. Very main character of it. πŸ‘‘
  • sequence β€” the sequence number of the last request the X11 server processed. 🧚
  • length β€” the length of the reply, in words. And bestie, a word is 4 bytes, no cap. πŸ“
  • context_len β€” TODO: NOT YET DOCUMENTED. Yeah. Again. The lore is not lore-ing. πŸ’€

🌈 DESCRIPTION 🌈

So the DESCRIPTION section is… empty. Nothing. A vibe void. πŸ•³οΈ The original page just moves straight on, so we move straight on too. Periodt.


🫢 RETURN VALUE 🫢

It returns an xcb_selinux_get_selection_context_cookie_t. πŸͺ

Errors have to be handled when you call the reply function, xcb_selinux_get_selection_context_reply.

If you'd rather handle errors in the event loop instead, use xcb_selinux_get_selection_context_unchecked. See xcb-requests(3) for the deets. ✨


😭 ERRORS 😭

This request does never generate any errors. Zero. None. Flawless behaviour, honestly iconic.

⭐ SEE ALSO ⭐

Empty. Bestie the cross-references said "no thoughts, head empty." πŸŽ€ (There really isn't anything listed here in the original.)


πŸ’– AUTHOR πŸ’–

Generated from xselinux.xml. If you spot something wrong, contact xcb@lists.freedesktop.org for corrections and improvements. 🫢


And that's the whole page, bestie! 🌈 This came to you from X Version 11, libxcb 1.17.0, and the xcb_selinux_get_selection_context(3) page itself. Stay slay, read your manpages, and remember: if a section says TODO, it's not your fault. πŸ’…βœ¨