xcb_dri2_get_...s_with_format(3)
β¨ xcb_dri2_get_...s_with_format β¨
okay bestie, sit down, hydrate, because we're getting into xcb_dri2_get_...s_with_format β a request from the XCB Requests corner of the universe, living its best life in manual section 3. This is the libxcb page for it, so buckle up π
π NAME π
xcb_dri2_get_buffers_with_format β and that's it, that's the whole name section, the original literally left it blank after the dash and honestly? mysterious. iconic. no notes. π
πΈ SYNOPSIS πΈ
#include <xcb/dri2.h>
π¦ Request function
xcb_dri2_get_buffers_with_format_cookie_t
xcb_dri2_get_buffers_with_format(xcb_connection_t *conn,
xcb_drawable_t drawable, uint32_t count,
uint32_t attachments_len, const
xcb_dri2_attach_format_t *attachments);
π Reply datastructure
typedef struct xcb_dri2_get_buffers_with_format_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_with_format_reply_t;
π§ Reply function
xcb_dri2_get_buffers_with_format_reply_t
*xcb_dri2_get_buffers_with_format_reply(xcb_connection_t *conn,
xcb_dri2_get_buffers_with_format_cookie_t cookie,
xcb_generic_error_t **e);
β Reply accessors
xcb_dri2_dri2_buffer_t *xcb_dri2_get_buffers_with_format_buffers(const
xcb_dri2_get_buffers_with_format_request_t *reply);
int xcb_dri2_get_buffers_with_format_buffers_length(const
xcb_dri2_get_buffers_with_format_reply_t *reply);
xcb_dri2_dri2_buffer_iterator_t
xcb_dri2_get_buffers_with_format_buffers_iterator(const
xcb_dri2_get_buffers_with_format_reply_t *reply);
π REQUEST ARGUMENTS π
connβ your XCB connection to X11. the whole pipeline to the server, the main character of the connection world π«Άdrawableβ TODO: NOT YET DOCUMENTED. bestie the docs simply did not show up to work today πcountβ TODO: NOT YET DOCUMENTED. same energy, same empty energy πattachments_lenβ TODO: NOT YET DOCUMENTED. the mystery continues, no cap πattachmentsβ TODO: NOT YET DOCUMENTED. four for four, we love an undocumented era β¨
π REPLY FIELDS π
response_typeβ the type of this reply, which in this case isXCB_DRI2_GET_BUFFERS_WITH_FORMAT. this field also lives in thexcb_generic_reply_t, and it's how you tell your replies apart from each other β like name tags at a party but for structs πsequenceβ the sequence number of the last request processed by the X11 server. your lil receipt number fr fr π§Ύlengthβ the length of the reply, in words. and a word is 4 bytes, in case you were about to guess πwidthβ TODO: NOT YET DOCUMENTED. π¦heightβ TODO: NOT YET DOCUMENTED. π¦countβ TODO: NOT YET DOCUMENTED. π¦
π DESCRIPTION π
so the DESCRIPTION section is... empty. nothing. a blank canvas. a vibe. lowkey iconic that the original just left it like that, and highkey we're respecting the silence π€«β¨
π₯ RETURN VALUE π₯
It returns an xcb_dri2_get_buffers_with_format_cookie_t β yes a cookie, and yes it's as cute as it sounds, but it's actually your ticket to come back later. Errors have to be handled when you call the reply function xcb_dri2_get_buffers_with_format_reply. πͺ
If you'd rather handle errors in the event loop instead, use xcb_dri2_get_buffers_with_format_unchecked. See xcb-requests(3) for details β bestie, go read that one, it's the lore π
π ERRORS π
This request does never generate any errors. not one. zero. a clean slate, a flawless queen, periodt. π
π¦ SEE ALSO π¦
...nothing listed. the original left this one wide open too. an empty shelf, a blank chapter, we love the minimalism π
πΈ AUTHOR πΈ
Generated from dri2.xml. Contact xcb@lists.freedesktop.org for corrections and improvements β that's the official bat-signal, so use it if something's off π«Ά
and that's the whole page bestie!! every flag, field, struct and TODO accounted for, nothing skipped, we ate and left no crumbs π
later, legend β this was X Version 11, libxcb 1.17.0, and you've been reading xcb_dri2_get_...s_with_format(3). mwah πβ¨
π¦ 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