xcb_xf86dri_g...t_driver_name(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_xf86dri_get_client_driver_name β€” bestie edition πŸ’–

okay so this is a page from section 3 of the manual (that's the library-calls section, iykyk), and it's one of the XCB Requests. It's been sitting in libxcb 1.17.0 on X Version 11 this whole time and honestly? nobody ever gave it a glow-up. so here we are. πŸ¦‹


✨ NAME ✨

xcb_xf86dri_get_client_driver_name β€” and then… literally a dash. that's it. that's the description. the manpage authors said "no thoughts, head empty" and left us a lonely little -. iconic behaviour, honestly. πŸ’…


🌸 SYNOPSIS 🌸

First things first, you gotta let the compiler know:

#include <xcb/xf86dri.h>

πŸŽ€ Request function πŸŽ€

xcb_xf86dri_get_client_driver_name_cookie_t
       xcb_xf86dri_get_client_driver_name(xcb_connection_t *conn,
       uint32_t screen);

πŸŽ€ Reply datastructure πŸŽ€

not me being obsessed with a struct. look at her:

typedef struct xcb_xf86dri_get_client_driver_name_reply_t {
    uint8_t  response_type;
    uint8_t  pad0;
    uint16_t sequence;
    uint32_t length;
    uint32_t client_driver_major_version;
    uint32_t client_driver_minor_version;
    uint32_t client_driver_patch_version;
    uint32_t client_driver_name_len;
    uint8_t  pad1[8];
} xcb_xf86dri_get_client_driver_name_reply_t;

πŸŽ€ Reply function πŸŽ€

xcb_xf86dri_get_client_driver_name_reply_t
       *xcb_xf86dri_get_client_driver_name_reply(xcb_connection_t *conn,
       xcb_xf86dri_get_client_driver_name_cookie_t cookie,
       xcb_generic_error_t **e);

πŸŽ€ Reply accessors πŸŽ€

char *xcb_xf86dri_get_client_driver_name_client_driver_name(const
       xcb_xf86dri_get_client_driver_name_request_t *reply);

int xcb_xf86dri_get_client_driver_name_client_driver_name_length(const
       xcb_xf86dri_get_client_driver_name_reply_t *reply);

xcb_generic_iterator_t
       xcb_xf86dri_get_client_driver_name_client_driver_name_end(const
       xcb_xf86dri_get_client_driver_name_reply_t *reply);

🫢 REQUEST ARGUMENTS 🫢

  • conn β€” the XCB connection to X11. your lil phone line to the server, basically. πŸ“ž
  • screen β€” TODO: NOT YET DOCUMENTED. yeah bestie, the manpage itself is leaving us on read. πŸ™ˆ

πŸ’œ REPLY FIELDS πŸ’œ

  • response_type β€” the type of this reply, which in this case is XCB_XF86DRI_GET_CLIENT_DRIVER_NAME. this field is also chilling inside xcb_generic_reply_t, and you use it to tell your replies apart from each other. it's giving name-tag energy. 🏷️
  • sequence β€” the sequence number of the last request processed by the X11 server. ✨
  • length β€” the length of the reply, measured in words. and a word here is 4 bytes, no cap. πŸ“
  • client_driver_major_version β€” TODO: NOT YET DOCUMENTED. 🫠
  • client_driver_minor_version β€” TODO: NOT YET DOCUMENTED. 🫠
  • client_driver_patch_version β€” TODO: NOT YET DOCUMENTED. 🫠
  • client_driver_name_len β€” TODO: NOT YET DOCUMENTED. 🫠
four whole TODOs in one struct… the lore is simply not there yet. don't make stuff up about them, okay? we respect the mystery. πŸ”₯

🌈 DESCRIPTION 🌈

…and that's it. that's the section. it's empty. the DESCRIPTION has no description. main character with no backstory, we love that for her. πŸ’€


πŸ‘‘ RETURN VALUE πŸ‘‘

So it returns an xcb_xf86dri_get_client_driver_name_cookie_t. πŸͺ

Errors? You handle those when you call the reply function xcb_xf86dri_get_client_driver_name_reply.

But if you'd rather handle errors in the event loop instead, use xcb_xf86dri_get_client_driver_name_unchecked. See xcb-requests(3) for the details, bestie. ✨


πŸ’… ERRORS πŸ’…

This request does never generate any errors. periodt. flawless, error-free, unbothered. πŸ’–


πŸ”₯ SEE ALSO πŸ”₯

(also empty. the manpage is really out here giving minimalism. nothing to link, nothing to see, no cap. πŸ¦‹)


🧚 AUTHOR 🧚

Generated from xf86dri.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. (yes, they want your feedback. they're literally asking. go say hi. 🫢)


that's the whole page, babe β€” X Version 11, libxcb 1.17.0, and the header title xcb_xf86dri_g...t_driver_name(3) up top in case you need to cite her. mwah. πŸ’‹βœ¨πŸŒΈ