xcb_record_enable_context(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_record_enable_context πŸ’–

okay bestie, so this is a page from libxcb (that's the XCB Requests crew, section 3 of the manual, iykyk) and today's main character is xcb_record_enable_context. She's a request function from <xcb/record.h> and she's giving very much "enable the recording context" energy. ✨


🌸 SYNOPSIS 🌸

First things first, you gotta let the compiler know she exists:

#include <xcb/record.h>

πŸŽ€ Request function

xcb_record_enable_context_cookie_t
       xcb_record_enable_context(xcb_connection_t *conn,
       xcb_record_context_t context);

πŸŽ€ Reply datastructure

typedef struct xcb_record_enable_context_reply_t {
    uint8_t                     response_type;
    uint8_t                     category;
    uint16_t                    sequence;
    uint32_t                    length;
    xcb_record_element_header_t element_header;
    uint8_t                     client_swapped;
    uint8_t                     pad0[2];
    uint32_t                    xid_base;
    uint32_t                    server_time;
    uint32_t                    rec_sequence_num;
    uint8_t                     pad1[8];
} xcb_record_enable_context_reply_t;

πŸŽ€ Reply function

xcb_record_enable_context_reply_t
       *xcb_record_enable_context_reply(xcb_connection_t *conn,
       xcb_record_enable_context_cookie_t cookie,
       xcb_generic_error_t **e);

πŸŽ€ Reply accessors

uint8_t *xcb_record_enable_context_data(const
       xcb_record_enable_context_request_t *reply);

int xcb_record_enable_context_data_length(const
       xcb_record_enable_context_reply_t *reply);

xcb_generic_iterator_t xcb_record_enable_context_data_end(const
       xcb_record_enable_context_reply_t *reply);
πŸ’… yes, xcb_record_enable_context_data literally takes an xcb_record_enable_context_request_t *reply β€” that's what's written, and we are copying it character for character, no notes, no cap.

✨ REQUEST ARGUMENTS ✨

  • conn β€” your XCB connection to X11. she's the phone line to the server, basically.
  • context β€” TODO: NOT YET DOCUMENTED. yeah. the docs simply did not show up to class that day. πŸ™ˆ

πŸ¦‹ REPLY FIELDS πŸ¦‹

  • response_type β€” the type of this reply, and in this case it's XCB_RECORD_ENABLE_CONTEXT. bestie, this field is also present in the xcb_generic_reply_t, so you can use it to tell your replies apart from each other. it's giving "name tag at the function". 🏷️
  • sequence β€” the sequence number of the last request the X11 server actually processed. lowkey the timeline of your requests.
  • length β€” the length of the reply, in words. and heads up: a word is 4 bytes. periodt.
  • category β€” TODO: NOT YET DOCUMENTED.
  • element_header β€” TODO: NOT YET DOCUMENTED.
  • client_swapped β€” TODO: NOT YET DOCUMENTED.
  • xid_base β€” TODO: NOT YET DOCUMENTED.
  • server_time β€” TODO: NOT YET DOCUMENTED.
  • rec_sequence_num β€” TODO: NOT YET DOCUMENTED.

🌈 DESCRIPTION 🌈

...

that's it. that's the description. she said nothing and left. iconic honestly. πŸ’€ (so fr fr, there's genuinely no description text on this page β€” go read the field list above, that's all we got.)


πŸ‘‘ RETURN VALUE πŸ‘‘

She returns an xcb_record_enable_context_cookie_t. πŸͺ And listen β€” errors have to be handled when you call the reply function xcb_record_enable_context_reply.

But if you'd rather handle errors in the event loop instead? use xcb_record_enable_context_unchecked. the details live in xcb-requests(3), so go peek at that one too.


🚨 ERRORS 🚨

good news bestie: this request does never generate any errors. clean. flawless. no drama. ✨


πŸ”₯ SEE ALSO πŸ”₯

...nothing listed. she's a lone wolf. 🐺


πŸ’œ AUTHOR πŸ’œ

Generated from record.xml. Contact xcb@lists.freedesktop.org for corrections and improvements β€” so if something's off, that's the group chat to slide into. πŸ“©


okay and that's the whole page!! mwah 🫢 this came from X Version 11, libxcb 1.17.0, and this little xcb_record_enable_context(3) page β€” love her, stay hydrated, and always free your cookies bestie πŸ’–βœ¨