xcb_randr_get_output_info(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_randr_get_output_info πŸ’–

okay so bestie, welcome to the xcb_randr_get_output_info page from the XCB Requests manual ✨ this one lives in section 3 of the manual, and it's your little backstage pass to asking the X server everything about an output 🫢


🌸 NAME 🌸

xcb_randr_get_output_info β€” bestie the description is literally blank in the source, no cap πŸ’€ (yes really, they left it empty, iconic of them)


✨ SYNOPSIS ✨

#include <xcb/randr.h>

πŸŽ€ Request function πŸŽ€

xcb_randr_get_output_info_cookie_t
       xcb_randr_get_output_info(xcb_connection_t *conn,
       xcb_randr_output_t output, xcb_timestamp_t config_timestamp);

πŸ¦‹ Reply datastructure πŸ¦‹

typedef struct xcb_randr_get_output_info_reply_t {
    uint8_t          response_type;
    uint8_t          status;
    uint16_t         sequence;
    uint32_t         length;
    xcb_timestamp_t  timestamp;
    xcb_randr_crtc_t crtc;
    uint32_t         mm_width;
    uint32_t         mm_height;
    uint8_t          connection;
    uint8_t          subpixel_order;
    uint16_t         num_crtcs;
    uint16_t         num_modes;
    uint16_t         num_preferred;
    uint16_t         num_clones;
    uint16_t         name_len;
} xcb_randr_get_output_info_reply_t;

🌈 Reply function 🌈

xcb_randr_get_output_info_reply_t
       *xcb_randr_get_output_info_reply(xcb_connection_t *conn,
       xcb_randr_get_output_info_cookie_t cookie,
       xcb_generic_error_t **e);

πŸ’œ Reply accessors πŸ’œ

xcb_randr_crtc_t *xcb_randr_get_output_info_crtcs(const
       xcb_randr_get_output_info_request_t *reply);

int xcb_randr_get_output_info_crtcs_length(const
       xcb_randr_get_output_info_reply_t *reply);

xcb_generic_iterator_t xcb_randr_get_output_info_crtcs_end(const
       xcb_randr_get_output_info_reply_t *reply);

xcb_randr_mode_t *xcb_randr_get_output_info_modes(const
       xcb_randr_get_output_info_request_t *reply);

int xcb_randr_get_output_info_modes_length(const
       xcb_randr_get_output_info_reply_t *reply);

xcb_generic_iterator_t xcb_randr_get_output_info_modes_end(const
       xcb_randr_get_output_info_reply_t *reply);

xcb_randr_output_t *xcb_randr_get_output_info_clones(const
       xcb_randr_get_output_info_request_t *reply);

int xcb_randr_get_output_info_clones_length(const
       xcb_randr_get_output_info_reply_t *reply);

xcb_generic_iterator_t xcb_randr_get_output_info_clones_end(const
       xcb_randr_get_output_info_reply_t *reply);

uint8_t *xcb_randr_get_output_info_name(const
       xcb_randr_get_output_info_request_t *reply);

int xcb_randr_get_output_info_name_length(const
       xcb_randr_get_output_info_reply_t *reply);

xcb_generic_iterator_t xcb_randr_get_output_info_name_end(const
       xcb_randr_get_output_info_reply_t *reply);

πŸ“ REQUEST ARGUMENTS πŸ“

  • conn β€” your XCB connection to X11, the lil phone line to the server πŸ“ž
  • output β€” TODO: NOT YET DOCUMENTED. πŸ™ˆ the docs said "we'll get to it" and then never did, we've all been there
  • config_timestamp β€” TODO: NOT YET DOCUMENTED. 😭 same energy, same empty plate

πŸ‘‘ REPLY FIELDS πŸ‘‘

  • response_type β€” the type of this reply, in this case XCB_RANDR_GET_OUTPUT_INFO. This field is also present in the xcb_generic_reply_t and can be used 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 πŸ”’
  • length β€” the length of the reply, in words (a word is 4 bytes) πŸ“
  • status β€” TODO: NOT YET DOCUMENTED. πŸ’€
  • timestamp β€” TODO: NOT YET DOCUMENTED. πŸ’€
  • crtc β€” TODO: NOT YET DOCUMENTED. πŸ’€
  • mm_width β€” TODO: NOT YET DOCUMENTED. πŸ’€
  • mm_height β€” TODO: NOT YET DOCUMENTED. πŸ’€
  • connection β€” TODO: NOT YET DOCUMENTED. πŸ’€
  • subpixel_order β€” TODO: NOT YET DOCUMENTED. πŸ’€
  • num_crtcs β€” TODO: NOT YET DOCUMENTED. πŸ’€
  • num_modes β€” TODO: NOT YET DOCUMENTED. πŸ’€
  • num_preferred β€” TODO: NOT YET DOCUMENTED. πŸ’€
  • num_clones β€” TODO: NOT YET DOCUMENTED. πŸ’€
  • name_len β€” TODO: NOT YET DOCUMENTED. πŸ’€
fr fr, every single one of these says "TODO: NOT YET DOCUMENTED." and I'm just the messenger 🧚 keeping it 100, bestie

πŸ’« DESCRIPTION πŸ’«

this section is literally empty in the original ✨ nothing, nada, a whole vibe of silence 🌸 so we're keeping it exactly that way β€” no invented lore, no fake tea 🫢


πŸ”₯ RETURN VALUE πŸ”₯

Returns an xcb_randr_get_output_info_cookie_t πŸͺ (yes, a cookie β€” you grab it now and cash it in later, main character energy).

Errors have to be handled when calling the reply function xcb_randr_get_output_info_reply.

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


πŸ’€ ERRORS πŸ’€

This request does never generate any errors. periodt. zero drama, zero chaos, she simply does not miss ✨


🌟 SEE ALSO 🌟

this section is empty in the original too, so there's nothing to link you to, bestie πŸ™ˆ iykyk


🌈 AUTHOR 🌈

Generated from randr.xml. Contact xcb@lists.freedesktop.org for corrections and improvements πŸ’Œ (they're literally asking, so if you spot something, say something!)


and that's the whole page, bestie πŸ’– this one shipped as X Version 11, libxcb 1.17.0 β€” mwah, iconic, no notes πŸ‘‘βœ¨πŸŽ€