xcb_x_print_p...et_attributes(3)
β¨ NAME β¨
xcb_x_print_print_get_attributes β bestie it's literally just... the name. The og page left it blank after the dash, so we're keeping it mysterious π
(XCB Requests, that's the manual family we're living in π«Ά)
π¦ SYNOPSIS π¦
okay so first thing, you gotta pull in the header:
#include <xcb/xprint.h>
π Request function
xcb_x_print_print_get_attributes_cookie_t
xcb_x_print_print_get_attributes(xcb_connection_t *conn,
xcb_x_print_pcontext_t context, uint8_t pool);
π Reply datastructure
the lil glow-up struct that comes back at you:
typedef struct xcb_x_print_print_get_attributes_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint32_t stringLen;
uint8_t pad1[20];
} xcb_x_print_print_get_attributes_reply_t;
π Reply function
xcb_x_print_print_get_attributes_reply_t
*xcb_x_print_print_get_attributes_reply(xcb_connection_t *conn,
xcb_x_print_print_get_attributes_cookie_t cookie,
xcb_generic_error_t **e);
π Reply accessors
these three are the little helpers that get you into the reply, no cap:
xcb_x_print_string8_t *xcb_x_print_print_get_attributes_attributes(const
xcb_x_print_print_get_attributes_request_t *reply);
int xcb_x_print_print_get_attributes_attributes_length(const
xcb_x_print_print_get_attributes_reply_t *reply);
xcb_generic_iterator_t
xcb_x_print_print_get_attributes_attributes_end(const
xcb_x_print_print_get_attributes_reply_t *reply);
πΈ REQUEST ARGUMENTS πΈ
connβ your XCB connection to X11. the whole vibe link, the situationship with the server πcontextβ TODO: NOT YET DOCUMENTED. yeah bestie, it's giving "the devs said later" πpoolβ TODO: NOT YET DOCUMENTED. also a mystery, also iconic for that π
π REPLY FIELDS π
response_typeβ the type of this reply, and in this case it'sXCB_X_PRINT_PRINT_GET_ATTRIBUTES. this field also lives in thexcb_generic_reply_t, so you can use it to tell your replies apart from each other (they all look the same at a party, fr fr π)sequenceβ the sequence number of the last request the X11 server processed. receipts, basically π§Ύlengthβ the length of the reply, measured in words. and yes, a word is 4 bytes, that's just the lore πstringLenβ TODO: NOT YET DOCUMENTED. blank. empty. a void. we love her for it π
π DESCRIPTION π
...it's empty, bestie. the original literally has nothing here. not me leaving it exactly as blank as I found it π«Άβ¨
β RETURN VALUE β
You get back an xcb_x_print_print_get_attributes_cookie_t β a lil voucher for your future reply πͺ
Errors? You have to handle those when you call the reply function xcb_x_print_print_get_attributes_reply. that's the moment of truth, the vibe check π
But if you'd rather handle errors in the event loop instead (main character energy, choosing your own path π
), use xcb_x_print_print_get_attributes_unchecked. And go read xcb-requests(3) for the deets, it's required reading iykyk.
π₯ ERRORS π₯
This request does never generate any errors. periodt. zero. none. clean sheet, flawless record, ate and left no crumbs π
π SEE ALSO π
(she's empty in the original too β the SEE ALSO section is just... vibing. nothing to see here, literally πΈ)
π AUTHOR π
Generated from xprint.xml. Wanna send corrections or improvements? Contact xcb@lists.freedesktop.org β they're the ones who actually made this, I'm just the messenger π«Ά
okay that's the whole page!! π huge love to X Version 11 and libxcb 1.17.0 for making this lil xprint request exist, mwah πβ¨ bye bestie, go call that reply function π¦
π¦ where this page comes from
- alpine 3.22: libxcb-doc 1.17.0-r0 Β· MIT
- alpine 3.23: libxcb-doc 1.17.0-r1 Β· MIT
- alpine 3.24: libxcb-doc 1.17.0-r2 Β· MIT
- arch rolling: libxcb 1.17.0-1 Β· X11
- centos-stream 10: libxcb-devel 1.17.0-3.el10 Β· X11
- debian trixie: libxcb-doc 1.17.0-2
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- nixpkgs unstable: libxcb 1.17.0
- opensuse-leap 16.0: libxcb-devel-doc 1.17.0-160000.2.2 Β· MIT
- ubuntu questing: libxcb-doc 1.17.0-2build1
- ubuntu resolute: libxcb-doc 1.17.0-2ubuntu1
- ubuntu stonking: libxcb-doc 1.17.0-2ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms