xcb_x_print_p...ne_attributes(3)
πΈ NAME πΈ
xcb_x_print_print_get_one_attributes β bestie, the name is literally the whole description here, the original left it blank, so we're just gonna vibe with the function name π
β¨ SYNOPSIS β¨
First things first, you gotta pull in the header, no cap:
#include <xcb/xprint.h>
π¦ Request function π¦
xcb_x_print_print_get_one_attributes_cookie_t
xcb_x_print_print_get_one_attributes(xcb_connection_t *conn,
xcb_x_print_pcontext_t context, uint32_t nameLen, uint8_t pool,
const xcb_x_print_string8_t *name);
π Reply datastructure π
Okay so this is the struct that comes back at you, iconic:
typedef struct xcb_x_print_print_get_one_attributes_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint32_t valueLen;
uint8_t pad1[20];
} xcb_x_print_print_get_one_attributes_reply_t;
π Reply function π
xcb_x_print_print_get_one_attributes_reply_t
*xcb_x_print_print_get_one_attributes_reply(xcb_connection_t *conn,
xcb_x_print_print_get_one_attributes_cookie_t cookie,
xcb_generic_error_t **e);
π Reply accessors π
These are your lil grabby-hands helpers for digging into the reply, obsessed:
xcb_x_print_string8_t *xcb_x_print_print_get_one_attributes_value(const
xcb_x_print_print_get_one_attributes_request_t *reply);
int xcb_x_print_print_get_one_attributes_value_length(const
xcb_x_print_print_get_one_attributes_reply_t *reply);
xcb_generic_iterator_t
xcb_x_print_print_get_one_attributes_value_end(const
xcb_x_print_print_get_one_attributes_reply_t *reply);
π heads up bestie, the_valueaccessor takes axcb_x_print_print_get_one_attributes_request_t *while the other two takexcb_x_print_print_get_one_attributes_reply_t *. That's literally how it is, don't come for me.
π«Ά REQUEST ARGUMENTS π«Ά
connβ your XCB connection to X11, the whole main character of the situation π«contextβ TODO: NOT YET DOCUMENTED. yeah girl, the docs said nothing πnameLenβ TODO: NOT YET DOCUMENTED. also nothing πpoolβ TODO: NOT YET DOCUMENTED. silence πnameβ TODO: NOT YET DOCUMENTED. still silence π
π REPLY FIELDS π
response_typeβ the type of this reply, which in this case isXCB_X_PRINT_PRINT_GET_ONE_ATTRIBUTES. This field also lives insidexcb_generic_reply_t, so you can use it to tell your replies apart from each other. it's giving name tag at a party β¨sequenceβ the sequence number of the last request the X11 server processed π’lengthβ how long the reply is, in words (and a word is 4 bytes, fyi) πvalueLenβ TODO: NOT YET DOCUMENTED. the mystery continues π΅οΈβοΈ
π DESCRIPTION π
Nothing here. Empty. A whole section of absolutely nothing, and honestly? that's its own kind of iconic πΈ
β RETURN VALUE β
You get back an xcb_x_print_print_get_one_attributes_cookie_t. Errors? You have to handle those when you call the reply function xcb_x_print_print_get_one_attributes_reply, periodt.
If you'd rather handle errors in the event loop instead, use xcb_x_print_print_get_one_attributes_unchecked. Go peek at xcb-requests(3) for the deets π«Ά
π ERRORS π
This request does never generate any errors. not a single one. zero drama, we love that for us π
π₯ SEE ALSO π₯
(nothing listed here, bestie β the section exists but it's just vibes and empty space π¦)
π AUTHOR π
Generated from xprint.xml. Got corrections or improvements? Contact xcb@lists.freedesktop.org β they're the ones to @ π
okay that's the whole page, ily, go write some X Print code ππ
X Version 11 Β· libxcb 1.17.0 Β· xcb_x_print_p...ne_attributes(3) β mwah, signing off πβ¨
π¦ 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