xcb_glx_is_enabled(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_glx_is_enabled β€” and that's it bestie, that's the whole name line. The original literally leaves the description slot blank (it's just xcb_glx_is_enabled - with nothing after the dash), so we're not gonna make stuff up. It lives in the XCB Requests manual as page xcb_glx_is_enabled(3). πŸ’…


✨ SYNOPSIS ✨

#include <xcb/glx.h>

πŸ¦‹ Request function πŸ¦‹

xcb_glx_is_enabled_cookie_t xcb_glx_is_enabled(xcb_connection_t *conn,
       xcb_glx_context_tag_t context_tag, uint32_t capability);

πŸ’– Reply datastructure πŸ’–

typedef struct xcb_glx_is_enabled_reply_t {
    uint8_t          response_type;
    uint8_t          pad0;
    uint16_t         sequence;
    uint32_t         length;
    xcb_glx_bool32_t ret_val;
} xcb_glx_is_enabled_reply_t;

🌸 Reply function 🌸

xcb_glx_is_enabled_reply_t
       *xcb_glx_is_enabled_reply(xcb_connection_t *conn,
       xcb_glx_is_enabled_cookie_t cookie, xcb_generic_error_t **e);

🫢 REQUEST ARGUMENTS 🫢

  • conn β€” your XCB connection to X11, aka the group chat with the server. πŸ’Œ
  • context_tag β€” TODO: NOT YET DOCUMENTED. yeah bestie, the docs said "we'll fill this in later" and then never did 😭
  • capability β€” also TODO: NOT YET DOCUMENTED. the mystery continues πŸ™ˆ

πŸ‘‘ REPLY FIELDS πŸ‘‘

  • response_type β€” what kind of reply this is; for this one it's XCB_GLX_IS_ENABLED. It also shows up in the xcb_generic_reply_t, so you can use it to tell your replies apart from each other. ✨
  • sequence β€” the sequence number of the last request the X11 server actually processed. 🧚
  • length β€” how long the reply is, measured in words (and a word is 4 bytes, keep up πŸ’…).
  • ret_val β€” TODO: NOT YET DOCUMENTED. once again the void stares back πŸ’€

🌈 DESCRIPTION 🌈

So… there is a DESCRIPTION heading in the original and it's completely empty. Nothing. A ghost town. No text at all, so there's nothing for me to spill β€” I'm not gonna invent lore that isn't there. πŸ•³οΈ


⭐ RETURN VALUE ⭐

Returns an xcb_glx_is_enabled_cookie_t. Errors have to be handled when you call the reply function xcb_glx_is_enabled_reply. πŸͺ

If you'd rather handle errors in the event loop instead, use xcb_glx_is_enabled_unchecked. See xcb-requests(3) for the details. πŸ“š


πŸ’€ ERRORS πŸ’€

Good news for once: this request does never generate any errors. Iconic behaviour, honestly. πŸ‘‘


πŸ”₯ SEE ALSO πŸ”₯

The original has this heading and then… nothing under it. No references, no pages, nada. Consider yourself seen. πŸ«₯


πŸ’œ AUTHOR πŸ’œ

Generated from glx.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. 🌸


okay that's the whole page, mwah πŸ’– This was X Version 11, shipped as libxcb 1.17.0 β€” go forth and check your capabilities, bestie, and remember: a word is 4 bytes and you are doing amazing sweetie πŸŽ€βœ¨πŸ¦‹