xcb_dri2_get_buffers(3)
π xcb_dri2_get_buffers(3) π
okay bestie, welcome to the XCB Requests corner of the manual, where we're talking about xcb_dri2_get_buffers from the libxcb fam. pull up a chair, grab a boba, and let's get into it π§β¨
β¨ NAME β¨
xcb_dri2_get_buffers β (yes bestie, that dash really is just sitting there all by itself, the og page left it blank, iconic mysterious queen behavior π
)
πΈ SYNOPSIS πΈ
First things first, you gotta bring in the header:
#include <xcb/dri2.h>
π Request function
xcb_dri2_get_buffers_cookie_t
xcb_dri2_get_buffers(xcb_connection_t *conn,
xcb_drawable_t drawable, uint32_t count,
uint32_t attachments_len, const uint32_t *attachments);
π¦ Reply datastructure
typedef struct xcb_dri2_get_buffers_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint32_t width;
uint32_t height;
uint32_t count;
uint8_t pad1[12];
} xcb_dri2_get_buffers_reply_t;
π Reply function
xcb_dri2_get_buffers_reply_t
*xcb_dri2_get_buffers_reply(xcb_connection_t *conn,
xcb_dri2_get_buffers_cookie_t cookie, xcb_generic_error_t **e);
β Reply accessors
xcb_dri2_dri2_buffer_t *xcb_dri2_get_buffers_buffers(const
xcb_dri2_get_buffers_request_t *reply);
int xcb_dri2_get_buffers_buffers_length(const
xcb_dri2_get_buffers_reply_t *reply);
xcb_dri2_dri2_buffer_iterator_t
xcb_dri2_get_buffers_buffers_iterator(const
xcb_dri2_get_buffers_reply_t *reply);
π REQUEST ARGUMENTS π
connβ the XCB connection to X11. your lil hotline to the server, no cap π«drawableβTODO: NOT YET DOCUMENTED.(the docs said "girl idk" and moved on π)countβTODO: NOT YET DOCUMENTED.(same energy, we're all just vibing)attachments_lenβTODO: NOT YET DOCUMENTED.(the mystery continues π)attachmentsβTODO: NOT YET DOCUMENTED.(literally the plot of every unsolved mystery ever)
π«Ά REPLY FIELDS π«Ά
response_typeβ the type of this reply, and in this case it'sXCB_DRI2_GET_BUFFERS. this field also lives in thexcb_generic_reply_tand it's how you tell your replies apart from each other, like name tags at a party πsequenceβ the sequence number of the last request processed by the X11 server. it's giving "who was here last" energy πlengthβ the length of the reply, in words. and a word is 4 bytes, bestie, write that down βοΈwidthβTODO: NOT YET DOCUMENTED.(not me being left on read by the documentation π)heightβTODO: NOT YET DOCUMENTED.(the silence is loud fr fr)countβTODO: NOT YET DOCUMENTED.(okay they really said "figure it out" π)
π DESCRIPTION π
(the original page has literally nothing here, so here we are, standing in a beautiful empty room together. aesthetic. ethereal. no notes. β¨)
π₯ RETURN VALUE π₯
Returns an xcb_dri2_get_buffers_cookie_t. πͺ
Errors have to be handled when you call the reply function xcb_dri2_get_buffers_reply.
But if you'd rather handle errors in the event loop instead β main character choice, honestly β use xcb_dri2_get_buffers_unchecked. see xcb-requests(3) for the deets π
π ERRORS π
This request does never generate any errors. zero drama, zero chaos, just peace and quiet, we love that for us πΏ
π SEE ALSO π
(the original page lists absolutely nothing here, so there's nothing to link, bestie β but the vibe is immaculate regardless β¨)
π AUTHOR π
Generated from dri2.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. (they're literally asking for your feedback, so slide into those inboxes if you spot something π«Ά)
and that's the whole page, bestie!! this beauty comes to you from X Version 11, rocking libxcb 1.17.0, filed under xcb_dri2_get_buffers(3). stay slaying, stay compiling, and may your buffers always be ready πβ¨ππ¦
π¦ 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