xcb_glx_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_glx_query_version ✨

okay bestie, gather round πŸ’– this is xcb_glx_query_version(3), one of the XCB Requests girlies. It lives in the XCB crew and it's here to ask the X server like "hey babe, what GLX version are we working with?" πŸ¦‹


🌸 NAME 🌸

xcb_glx_query_version β€”

so like. the name is literally just the name and then a dash and then nothing. the description slot is empty. we're serving mystery πŸ’… the vibe is "she said she'd text back and didn't."


πŸŽ€ SYNOPSIS πŸŽ€

#include <xcb/glx.h>

✨ Request function ✨

xcb_glx_query_version_cookie_t
       xcb_glx_query_version(xcb_connection_t *conn,
       uint32_t major_version, uint32_t minor_version);

🫢 Reply datastructure 🫢

typedef struct xcb_glx_query_version_reply_t {
    uint8_t  response_type;
    uint8_t  pad0;
    uint16_t sequence;
    uint32_t length;
    uint32_t major_version;
    uint32_t minor_version;
    uint8_t  pad1[16];
} xcb_glx_query_version_reply_t;

πŸ’œ Reply function πŸ’œ

xcb_glx_query_version_reply_t
       *xcb_glx_query_version_reply(xcb_connection_t *conn,
       xcb_glx_query_version_cookie_t cookie, xcb_generic_error_t **e);

like yes she's giving struct energy, she's giving cookie energy, she's giving pointer-to-reply-t energy. iconic. no notes. πŸ‘‘


🌈 REQUEST ARGUMENTS 🌈

  • conn β€” the XCB connection to X11. your lil hotline to the server, basically. πŸ“ž
  • major_version β€” TODO: NOT YET DOCUMENTED. 😭 yeah babe the docs said "idk" and left.
  • minor_version β€” TODO: NOT YET DOCUMENTED. πŸ™ˆ same energy. two mysteries, one function.

πŸ’… REPLY FIELDS πŸ’…

  • response_type β€” the type of this reply, which in this case is XCB_GLX_QUERY_VERSION. This field also lives in the xcb_generic_reply_t, so you can use it to tell replies apart from each other. it's the little name tag at the party πŸŽ€
  • sequence β€” the sequence number of the last request processed by the X11 server. it's the "which one was this again" receipt 🧾
  • length β€” the length of the reply, in words. and yes bestie, a word is 4 bytes. periodt.
  • major_version β€” TODO: NOT YET DOCUMENTED. πŸ’€
  • minor_version β€” TODO: NOT YET DOCUMENTED. πŸ’€πŸ’€

πŸ¦‹ DESCRIPTION πŸ¦‹

(blank. absolutely nothing here. the manpage really said "no thoughts, head empty" and moved on. respect the commitment to silence ✨)


πŸ”₯ RETURN VALUE πŸ”₯

Returns an xcb_glx_query_version_cookie_t. πŸͺ

heads up bestie β€” errors do not show up here. you have to handle them when you call the reply function xcb_glx_query_version_reply. that's where the drama happens.

And if you'd rather handle your errors in the event loop instead? use xcb_glx_query_version_unchecked. See xcb-requests(3) for details. iykyk 🫢


🌸 ERRORS 🌸

okay so this is the good news section: This request does never generate any errors. she's a chill one. no drama, no red flags, we love that for her 😌✨


⭐ SEE ALSO ⭐

(nothing listed. an empty shelf. a vibe. go read xcb-requests(3) if you're nosy though πŸ’–)


πŸ‘‘ AUTHOR πŸ‘‘

Generated from glx.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. so if you spot something weird, that's the inbox to slide into πŸ“§


and that's the whole page, bestie!! this lil icon came to you from X Version 11 and libxcb 1.17.0, and it answers to the name xcb_glx_query_version(3). mwah, go query something πŸ’–πŸ¦‹βœ¨