XCB_GLX_GET_MINMAX_PARAMETERIV_UNCHECKED(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_get_minmax_parameteriv πŸ’…βœ¨

okay bestie, welcome to the XCB Requests chapter of your life πŸŽ€ this one's a libxcb request page, and no cap, it is extremely niche. it's giving "GLX minmax parameter, but make it iv". let's get into it πŸ¦‹


✨ NAME ✨

xcb_glx_get_minmax_parameteriv β€” and that's genuinely it, the original NAME section is just a lil dash with nothing after it πŸ™ˆ the name is the whole personality here.


🌸 SYNOPSIS 🌸

First things first, you gotta bring in the header, periodt:

#include <xcb/glx.h>

πŸ’– Request function

xcb_glx_get_minmax_parameteriv_cookie_t
       xcb_glx_get_minmax_parameteriv(xcb_connection_t *conn,
       xcb_glx_context_tag_t context_tag, uint32_t target,
       uint32_t pname);

πŸ’– Reply datastructure

here's the reply struct, look at her πŸ‘‘

typedef struct xcb_glx_get_minmax_parameteriv_reply_t {
    uint8_t  response_type;
    uint8_t  pad0;
    uint16_t sequence;
    uint32_t length;
    uint8_t  pad1[4];
    uint32_t n;
    int32_t  datum;
    uint8_t  pad2[12];
} xcb_glx_get_minmax_parameteriv_reply_t;

πŸ’– Reply function

xcb_glx_get_minmax_parameteriv_reply_t
       *xcb_glx_get_minmax_parameteriv_reply(xcb_connection_t *conn,
       xcb_glx_get_minmax_parameteriv_cookie_t cookie,
       xcb_generic_error_t **e);

πŸ’– Reply accessors

these are the lil helpers that reach into the reply for you, so you don't have to do the pointer math yourself (we love her for that) 🫢

int32_t *xcb_glx_get_minmax_parameteriv_data(const
       xcb_glx_get_minmax_parameteriv_request_t *reply);

int xcb_glx_get_minmax_parameteriv_data_length(const
       xcb_glx_get_minmax_parameteriv_reply_t *reply);

xcb_generic_iterator_t xcb_glx_get_minmax_parameteriv_data_end(const
       xcb_glx_get_minmax_parameteriv_reply_t *reply);

πŸŽ€ REQUEST ARGUMENTS πŸŽ€

  • conn β€” the XCB connection to X11. your main character, fr.
  • context_tag β€” TODO: NOT YET DOCUMENTED. (not me getting nothing from the docs 😭)
  • target β€” TODO: NOT YET DOCUMENTED. (same energy πŸ’€)
  • pname β€” TODO: NOT YET DOCUMENTED. (they really said "figure it out bestie" πŸ™ˆ)

πŸ¦‹ REPLY FIELDS πŸ¦‹

  • response_type β€” the type of this reply, and in this specific case it's XCB_GLX_GET_MINMAX_PARAMETERIV. this field is also chillin' inside the xcb_generic_reply_t, and you can use it to tell replies apart from each other. lowkey iconic for that.
  • sequence β€” the sequence number of the last request that the X11 server processed. it's giving "where were we" energy.
  • length β€” how long the reply is, in words. and yes, a word here is 4 bytes. remember that, iykyk.
  • n β€” TODO: NOT YET DOCUMENTED. (bestie the docs are empty πŸ’€)
  • datum β€” TODO: NOT YET DOCUMENTED. (yeah. also empty. we move.)

πŸ’œ DESCRIPTION πŸ’œ

...yeah there's literally nothing here. the DESCRIPTION section is empty. it's giving silence, it's giving mystery, it's giving "the source code is the documentation" 🧚 no cap, that's just how this page is.


🌈 RETURN VALUE 🌈

okay so you get back an xcb_glx_get_minmax_parameteriv_cookie_t. cute. but here's the thing β€” errors have to be handled when you call the reply function, xcb_glx_get_minmax_parameteriv_reply.

if you'd rather handle errors in the event loop instead (very valid, very main character of you), use xcb_glx_get_minmax_parameteriv_unchecked. and go read xcb-requests(3) for the details, she explains it all πŸ’…


πŸ”₯ ERRORS πŸ”₯

This request does never generate any errors. πŸŽ‰

no errors, no drama, we love a clean run. periodt.


⭐ SEE ALSO ⭐

...the original page has nothing listed under SEE ALSO. iconic of her honestly. (though xcb-requests(3) does get a shoutout up in RETURN VALUE, so go say hi πŸ‘‹)


πŸ‘‘ AUTHOR πŸ‘‘

Generated from glx.xml. if you've got corrections or improvements, hit up xcb@lists.freedesktop.org β€” they're literally asking for it, so don't be shy bestie πŸ’Œ


and that's the whole page, babe 🌸 this was X Version 11, from libxcb 1.17.0 β€” so if you were out here wondering where this came from, now you know. go forth and get those minmax parameteriv values, you absolute legend πŸ¦‹βœ¨πŸ’–