dbe.h
/*
* This file generated automatically from dbe.xml by c_client.py.
* Edit at your peril.
*/
#ifndef __DBE_H
#define __DBE_H
#include "xcb.h"
#include "xproto.h"
#ifdef __cplusplus
extern "C" {
#endif
#define XCB_DBE_MAJOR_VERSION 1
#define XCB_DBE_MINOR_VERSION 0
extern xcb_extension_t xcb_dbe_id;
typedef uint32_t xcb_dbe_back_buffer_t;
typedef struct xcb_dbe_back_buffer_iterator_t {
xcb_dbe_back_buffer_t *data;
int rem;
int index;
} xcb_dbe_back_buffer_iterator_t;
typedef enum xcb_dbe_swap_action_t {
XCB_DBE_SWAP_ACTION_UNDEFINED = 0,
XCB_DBE_SWAP_ACTION_BACKGROUND = 1,
XCB_DBE_SWAP_ACTION_UNTOUCHED = 2,
XCB_DBE_SWAP_ACTION_COPIED = 3
} xcb_dbe_swap_action_t;
typedef struct xcb_dbe_swap_info_t {
xcb_window_t window;
uint8_t swap_action;
uint8_t pad0[3];
} xcb_dbe_swap_info_t;
typedef struct xcb_dbe_swap_info_iterator_t {
xcb_dbe_swap_info_t *data;
int rem;
int index;
} xcb_dbe_swap_info_iterator_t;
typedef struct xcb_dbe_buffer_attributes_t {
xcb_window_t window;
} xcb_dbe_buffer_attributes_t;
typedef struct xcb_dbe_buffer_attributes_iterator_t {
xcb_dbe_buffer_attributes_t *data;
int rem;
int index;
} xcb_dbe_buffer_attributes_iterator_t;
typedef struct xcb_dbe_visual_info_t {
xcb_visualid_t visual_id;
uint8_t depth;
uint8_t perf_level;
uint8_t pad0[2];
} xcb_dbe_visual_info_t;
typedef struct xcb_dbe_visual_info_iterator_t {
xcb_dbe_visual_info_t *data;
int rem;
int index;
} xcb_dbe_visual_info_iterator_t;
typedef struct xcb_dbe_visual_infos_t {
uint32_t n_infos;
} xcb_dbe_visual_infos_t;
typedef struct xcb_dbe_visual_infos_iterator_t {
xcb_dbe_visual_infos_t *data;
int rem;
int index;
} xcb_dbe_visual_infos_iterator_t;
#define XCB_DBE_BAD_BUFFER 0
typedef struct xcb_dbe_bad_buffer_error_t {
uint8_t response_type;
uint8_t error_code;
uint16_t sequence;
xcb_dbe_back_buffer_t bad_buffer;
uint16_t minor_opcode;
uint8_t major_opcode;
} xcb_dbe_bad_buffer_error_t;
typedef struct xcb_dbe_query_version_cookie_t {
unsigned int sequence;
} xcb_dbe_query_version_cookie_t;
#define XCB_DBE_QUERY_VERSION 0
typedef struct xcb_dbe_query_version_request_t {
uint8_t major_opcode;
uint8_t minor_opcode;
uint16_t length;
uint8_t major_version;
uint8_t minor_version;
uint8_t pad0[2];
} xcb_dbe_query_version_request_t;
typedef struct xcb_dbe_query_version_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint8_t major_version;
uint8_t minor_version;
uint8_t pad1[22];
} xcb_dbe_query_version_reply_t;
#define XCB_DBE_ALLOCATE_BACK_BUFFER 1
typedef struct xcb_dbe_allocate_back_buffer_request_t {
uint8_t major_opcode;
uint8_t minor_opcode;
uint16_t length;
xcb_window_t window;
xcb_dbe_back_buffer_t buffer;
uint8_t swap_action;
uint8_t pad0[3];
} xcb_dbe_allocate_back_buffer_request_t;
#define XCB_DBE_DEALLOCATE_BACK_BUFFER 2
typedef struct xcb_dbe_deallocate_back_buffer_request_t {
uint8_t major_opcode;
uint8_t minor_opcode;
uint16_t length;
xcb_dbe_back_buffer_t buffer;
} xcb_dbe_deallocate_back_buffer_request_t;
#define XCB_DBE_SWAP_BUFFERS 3
typedef struct xcb_dbe_swap_buffers_request_t {
uint8_t major_opcode;
uint8_t minor_opcode;
uint16_t length;
uint32_t n_actions;
} xcb_dbe_swap_buffers_request_t;
#define XCB_DBE_BEGIN_IDIOM 4
typedef struct xcb_dbe_begin_idiom_request_t {
uint8_t major_opcode;
uint8_t minor_opcode;
uint16_t length;
} xcb_dbe_begin_idiom_request_t;
#define XCB_DBE_END_IDIOM 5
typedef struct xcb_dbe_end_idiom_request_t {
uint8_t major_opcode;
uint8_t minor_opcode;
uint16_t length;
} xcb_dbe_end_idiom_request_t;
typedef struct xcb_dbe_get_visual_info_cookie_t {
unsigned int sequence;
} xcb_dbe_get_visual_info_cookie_t;
#define XCB_DBE_GET_VISUAL_INFO 6
typedef struct xcb_dbe_get_visual_info_request_t {
uint8_t major_opcode;
uint8_t minor_opcode;
uint16_t length;
uint32_t n_drawables;
} xcb_dbe_get_visual_info_request_t;
typedef struct xcb_dbe_get_visual_info_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
uint32_t n_supported_visuals;
uint8_t pad1[20];
} xcb_dbe_get_visual_info_reply_t;
typedef struct xcb_dbe_get_back_buffer_attributes_cookie_t {
unsigned int sequence;
} xcb_dbe_get_back_buffer_attributes_cookie_t;
#define XCB_DBE_GET_BACK_BUFFER_ATTRIBUTES 7
typedef struct xcb_dbe_get_back_buffer_attributes_request_t {
uint8_t major_opcode;
uint8_t minor_opcode;
uint16_t length;
xcb_dbe_back_buffer_t buffer;
} xcb_dbe_get_back_buffer_attributes_request_t;
typedef struct xcb_dbe_get_back_buffer_attributes_reply_t {
uint8_t response_type;
uint8_t pad0;
uint16_t sequence;
uint32_t length;
xcb_dbe_buffer_attributes_t attributes;
uint8_t pad1[20];
} xcb_dbe_get_back_buffer_attributes_reply_t;
void
xcb_dbe_back_buffer_next (xcb_dbe_back_buffer_iterator_t *i);
xcb_generic_iterator_t
xcb_dbe_back_buffer_end (xcb_dbe_back_buffer_iterator_t i);
void
xcb_dbe_swap_info_next (xcb_dbe_swap_info_iterator_t *i);
xcb_generic_iterator_t
xcb_dbe_swap_info_end (xcb_dbe_swap_info_iterator_t i);
void
xcb_dbe_buffer_attributes_next (xcb_dbe_buffer_attributes_iterator_t *i);
xcb_generic_iterator_t
xcb_dbe_buffer_attributes_end (xcb_dbe_buffer_attributes_iterator_t i);
void
xcb_dbe_visual_info_next (xcb_dbe_visual_info_iterator_t *i);
xcb_generic_iterator_t
xcb_dbe_visual_info_end (xcb_dbe_visual_info_iterator_t i);
int
xcb_dbe_visual_infos_sizeof (const void *_buffer);
xcb_dbe_visual_info_t *
xcb_dbe_visual_infos_infos (const xcb_dbe_visual_infos_t *R);
int
xcb_dbe_visual_infos_infos_length (const xcb_dbe_visual_infos_t *R);
xcb_dbe_visual_info_iterator_t
xcb_dbe_visual_infos_infos_iterator (const xcb_dbe_visual_infos_t *R);
void
xcb_dbe_visual_infos_next (xcb_dbe_visual_infos_iterator_t *i);
xcb_generic_iterator_t
xcb_dbe_visual_infos_end (xcb_dbe_visual_infos_iterator_t i);
xcb_dbe_query_version_cookie_t
xcb_dbe_query_version (xcb_connection_t *c,
uint8_t major_version,
uint8_t minor_version);
xcb_dbe_query_version_cookie_t
xcb_dbe_query_version_unchecked (xcb_connection_t *c,
uint8_t major_version,
uint8_t minor_version);
xcb_dbe_query_version_reply_t *
xcb_dbe_query_version_reply (xcb_connection_t *c,
xcb_dbe_query_version_cookie_t cookie ,
xcb_generic_error_t **e);
xcb_void_cookie_t
xcb_dbe_allocate_back_buffer_checked (xcb_connection_t *c,
xcb_window_t window,
xcb_dbe_back_buffer_t buffer,
uint8_t swap_action);
xcb_void_cookie_t
xcb_dbe_allocate_back_buffer (xcb_connection_t *c,
xcb_window_t window,
xcb_dbe_back_buffer_t buffer,
uint8_t swap_action);
xcb_void_cookie_t
xcb_dbe_deallocate_back_buffer_checked (xcb_connection_t *c,
xcb_dbe_back_buffer_t buffer);
xcb_void_cookie_t
xcb_dbe_deallocate_back_buffer (xcb_connection_t *c,
xcb_dbe_back_buffer_t buffer);
int
xcb_dbe_swap_buffers_sizeof (const void *_buffer);
xcb_void_cookie_t
xcb_dbe_swap_buffers_checked (xcb_connection_t *c,
uint32_t n_actions,
const xcb_dbe_swap_info_t *actions);
xcb_void_cookie_t
xcb_dbe_swap_buffers (xcb_connection_t *c,
uint32_t n_actions,
const xcb_dbe_swap_info_t *actions);
xcb_dbe_swap_info_t *
xcb_dbe_swap_buffers_actions (const xcb_dbe_swap_buffers_request_t *R);
int
xcb_dbe_swap_buffers_actions_length (const xcb_dbe_swap_buffers_request_t *R);
xcb_dbe_swap_info_iterator_t
xcb_dbe_swap_buffers_actions_iterator (const xcb_dbe_swap_buffers_request_t *R);
xcb_void_cookie_t
xcb_dbe_begin_idiom_checked (xcb_connection_t *c);
xcb_void_cookie_t
xcb_dbe_begin_idiom (xcb_connection_t *c);
xcb_void_cookie_t
xcb_dbe_end_idiom_checked (xcb_connection_t *c);
xcb_void_cookie_t
xcb_dbe_end_idiom (xcb_connection_t *c);
int
xcb_dbe_get_visual_info_sizeof (const void *_buffer);
xcb_dbe_get_visual_info_cookie_t
xcb_dbe_get_visual_info (xcb_connection_t *c,
uint32_t n_drawables,
const xcb_drawable_t *drawables);
xcb_dbe_get_visual_info_cookie_t
xcb_dbe_get_visual_info_unchecked (xcb_connection_t *c,
uint32_t n_drawables,
const xcb_drawable_t *drawables);
int
xcb_dbe_get_visual_info_supported_visuals_length (const xcb_dbe_get_visual_info_reply_t *R);
xcb_dbe_visual_infos_iterator_t
xcb_dbe_get_visual_info_supported_visuals_iterator (const xcb_dbe_get_visual_info_reply_t *R);
xcb_dbe_get_visual_info_reply_t *
xcb_dbe_get_visual_info_reply (xcb_connection_t *c,
xcb_dbe_get_visual_info_cookie_t cookie ,
xcb_generic_error_t **e);
xcb_dbe_get_back_buffer_attributes_cookie_t
xcb_dbe_get_back_buffer_attributes (xcb_connection_t *c,
xcb_dbe_back_buffer_t buffer);
xcb_dbe_get_back_buffer_attributes_cookie_t
xcb_dbe_get_back_buffer_attributes_unchecked (xcb_connection_t *c,
xcb_dbe_back_buffer_t buffer);
xcb_dbe_get_back_buffer_attributes_reply_t *
xcb_dbe_get_back_buffer_attributes_reply (xcb_connection_t *c,
xcb_dbe_get_back_buffer_attributes_cookie_t cookie ,
xcb_generic_error_t **e);
#ifdef __cplusplus
}
#endif
#endif
xcb_dbe_buffer_attributes_end
xcb_generic_iterator_t xcb_dbe_buffer_attributes_end(xcb_dbe_buffer_attributes_iterator_t i)
Definition dbe.c:66
xcb_dbe_deallocate_back_buffer
xcb_void_cookie_t xcb_dbe_deallocate_back_buffer(xcb_connection_t *c, xcb_dbe_back_buffer_t buffer)
Deallocates a back buffer.
Definition dbe.c:324
xcb_dbe_get_visual_info_unchecked
xcb_dbe_get_visual_info_cookie_t xcb_dbe_get_visual_info_unchecked(xcb_connection_t *c, uint32_t n_drawables, const xcb_drawable_t *drawables)
Requests visuals that support double buffering.
Definition dbe.c:626
xcb_dbe_swap_action_t
xcb_dbe_swap_action_t
Definition dbe.h:38
xcb_dbe_begin_idiom_checked
xcb_void_cookie_t xcb_dbe_begin_idiom_checked(xcb_connection_t *c)
Begins a logical swap block.
Definition dbe.c:467
xcb_dbe_visual_info_next
void xcb_dbe_visual_info_next(xcb_dbe_visual_info_iterator_t *i)
Definition dbe.c:76
xcb_dbe_allocate_back_buffer
xcb_void_cookie_t xcb_dbe_allocate_back_buffer(xcb_connection_t *c, xcb_window_t window, xcb_dbe_back_buffer_t buffer, uint8_t swap_action)
Allocates a back buffer.
Definition dbe.c:267
xcb_dbe_get_back_buffer_attributes_unchecked
xcb_dbe_get_back_buffer_attributes_cookie_t xcb_dbe_get_back_buffer_attributes_unchecked(xcb_connection_t *c, xcb_dbe_back_buffer_t buffer)
Gets back buffer attributes.
Definition dbe.c:708
xcb_dbe_end_idiom_checked
xcb_void_cookie_t xcb_dbe_end_idiom_checked(xcb_connection_t *c)
Ends a logical swap block.
Definition dbe.c:515
xcb_dbe_swap_info_next
void xcb_dbe_swap_info_next(xcb_dbe_swap_info_iterator_t *i)
Definition dbe.c:40
xcb_dbe_visual_infos_next
void xcb_dbe_visual_infos_next(xcb_dbe_visual_infos_iterator_t *i)
Definition dbe.c:147
xcb_dbe_get_visual_info_reply
xcb_dbe_get_visual_info_reply_t * xcb_dbe_get_visual_info_reply(xcb_connection_t *c, xcb_dbe_get_visual_info_cookie_t cookie, xcb_generic_error_t **e)
Definition dbe.c:674
xcb_dbe_deallocate_back_buffer_checked
xcb_void_cookie_t xcb_dbe_deallocate_back_buffer_checked(xcb_connection_t *c, xcb_dbe_back_buffer_t buffer)
Deallocates a back buffer.
Definition dbe.c:298
xcb_dbe_buffer_attributes_next
void xcb_dbe_buffer_attributes_next(xcb_dbe_buffer_attributes_iterator_t *i)
Definition dbe.c:58
xcb_dbe_swap_buffers_checked
xcb_void_cookie_t xcb_dbe_swap_buffers_checked(xcb_connection_t *c, uint32_t n_actions, const xcb_dbe_swap_info_t *actions)
Swaps front and back buffers.
Definition dbe.c:381
xcb_dbe_allocate_back_buffer_checked
xcb_void_cookie_t xcb_dbe_allocate_back_buffer_checked(xcb_connection_t *c, xcb_window_t window, xcb_dbe_back_buffer_t buffer, uint8_t swap_action)
Allocates a back buffer.
Definition dbe.c:236
xcb_dbe_get_visual_info
xcb_dbe_get_visual_info_cookie_t xcb_dbe_get_visual_info(xcb_connection_t *c, uint32_t n_drawables, const xcb_drawable_t *drawables)
Requests visuals that support double buffering.
Definition dbe.c:594
xcb_dbe_get_back_buffer_attributes
xcb_dbe_get_back_buffer_attributes_cookie_t xcb_dbe_get_back_buffer_attributes(xcb_connection_t *c, xcb_dbe_back_buffer_t buffer)
Gets back buffer attributes.
Definition dbe.c:682
xcb_dbe_visual_info_end
xcb_generic_iterator_t xcb_dbe_visual_info_end(xcb_dbe_visual_info_iterator_t i)
Definition dbe.c:84
xcb_dbe_back_buffer_end
xcb_generic_iterator_t xcb_dbe_back_buffer_end(xcb_dbe_back_buffer_iterator_t i)
Definition dbe.c:30
xcb_dbe_visual_infos_end
xcb_generic_iterator_t xcb_dbe_visual_infos_end(xcb_dbe_visual_infos_iterator_t i)
Definition dbe.c:158
xcb_dbe_swap_info_end
xcb_generic_iterator_t xcb_dbe_swap_info_end(xcb_dbe_swap_info_iterator_t i)
Definition dbe.c:48
xcb_dbe_swap_buffers
xcb_void_cookie_t xcb_dbe_swap_buffers(xcb_connection_t *c, uint32_t n_actions, const xcb_dbe_swap_info_t *actions)
Swaps front and back buffers.
Definition dbe.c:413
xcb_dbe_query_version
xcb_dbe_query_version_cookie_t xcb_dbe_query_version(xcb_connection_t *c, uint8_t major_version, uint8_t minor_version)
Queries the version of this extension.
Definition dbe.c:170
xcb_dbe_begin_idiom
xcb_void_cookie_t xcb_dbe_begin_idiom(xcb_connection_t *c)
Begins a logical swap block.
Definition dbe.c:491
xcb_dbe_query_version_unchecked
xcb_dbe_query_version_cookie_t xcb_dbe_query_version_unchecked(xcb_connection_t *c, uint8_t major_version, uint8_t minor_version)
Queries the version of this extension.
Definition dbe.c:199
xcb_dbe_query_version_reply
xcb_dbe_query_version_reply_t * xcb_dbe_query_version_reply(xcb_connection_t *c, xcb_dbe_query_version_cookie_t cookie, xcb_generic_error_t **e)
Definition dbe.c:228
xcb_dbe_back_buffer_next
void xcb_dbe_back_buffer_next(xcb_dbe_back_buffer_iterator_t *i)
Definition dbe.c:22
xcb_dbe_end_idiom
xcb_void_cookie_t xcb_dbe_end_idiom(xcb_connection_t *c)
Ends a logical swap block.
Definition dbe.c:539
xcb_dbe_get_back_buffer_attributes_reply
xcb_dbe_get_back_buffer_attributes_reply_t * xcb_dbe_get_back_buffer_attributes_reply(xcb_connection_t *c, xcb_dbe_get_back_buffer_attributes_cookie_t cookie, xcb_generic_error_t **e)
Definition dbe.c:734
XCB_DBE_SWAP_ACTION_UNDEFINED
@ XCB_DBE_SWAP_ACTION_UNDEFINED
Definition dbe.h:39
XCB_DBE_SWAP_ACTION_COPIED
@ XCB_DBE_SWAP_ACTION_COPIED
Definition dbe.h:48
XCB_DBE_SWAP_ACTION_BACKGROUND
@ XCB_DBE_SWAP_ACTION_BACKGROUND
Definition dbe.h:42
XCB_DBE_SWAP_ACTION_UNTOUCHED
@ XCB_DBE_SWAP_ACTION_UNTOUCHED
Definition dbe.h:45
xcb_connection_t
Definition xcbint.h:208
xcb_dbe_allocate_back_buffer_request_t
xcb_dbe_allocate_back_buffer_request_t
Definition dbe.h:178
xcb_dbe_back_buffer_iterator_t
xcb_dbe_back_buffer_iterator_t
Definition dbe.h:32
xcb_dbe_bad_buffer_error_t
xcb_dbe_bad_buffer_error_t
Definition dbe.h:128
xcb_dbe_begin_idiom_request_t
xcb_dbe_begin_idiom_request_t
Definition dbe.h:220
xcb_dbe_buffer_attributes_iterator_t
xcb_dbe_buffer_attributes_iterator_t
Definition dbe.h:81
xcb_dbe_buffer_attributes_t
xcb_dbe_buffer_attributes_t
Definition dbe.h:74
xcb_dbe_deallocate_back_buffer_request_t
xcb_dbe_deallocate_back_buffer_request_t
Definition dbe.h:194
xcb_dbe_end_idiom_request_t
xcb_dbe_end_idiom_request_t
Definition dbe.h:232
xcb_dbe_get_back_buffer_attributes_cookie_t
xcb_dbe_get_back_buffer_attributes_cookie_t
Definition dbe.h:273
xcb_dbe_get_back_buffer_attributes_reply_t
xcb_dbe_get_back_buffer_attributes_reply_t
Definition dbe.h:293
xcb_dbe_get_back_buffer_attributes_request_t
xcb_dbe_get_back_buffer_attributes_request_t
Definition dbe.h:283
xcb_dbe_get_visual_info_cookie_t
xcb_dbe_get_visual_info_cookie_t
Definition dbe.h:241
xcb_dbe_get_visual_info_reply_t
xcb_dbe_get_visual_info_reply_t
Definition dbe.h:261
xcb_dbe_get_visual_info_request_t
xcb_dbe_get_visual_info_request_t
Definition dbe.h:251
xcb_dbe_query_version_cookie_t
xcb_dbe_query_version_cookie_t
Definition dbe.h:140
xcb_dbe_query_version_reply_t
xcb_dbe_query_version_reply_t
Definition dbe.h:162
xcb_dbe_query_version_request_t
xcb_dbe_query_version_request_t
Definition dbe.h:150
xcb_dbe_swap_buffers_request_t
xcb_dbe_swap_buffers_request_t
Definition dbe.h:207
xcb_dbe_swap_info_iterator_t
xcb_dbe_swap_info_iterator_t
Definition dbe.h:65
xcb_dbe_swap_info_t
xcb_dbe_swap_info_t
Definition dbe.h:56
xcb_dbe_visual_info_iterator_t
xcb_dbe_visual_info_iterator_t
Definition dbe.h:100
xcb_dbe_visual_info_t
xcb_dbe_visual_info_t
Definition dbe.h:90
xcb_dbe_visual_infos_iterator_t
xcb_dbe_visual_infos_iterator_t
Definition dbe.h:116
xcb_dbe_visual_infos_t
xcb_dbe_visual_infos_t
Definition dbe.h:109
xcb_extension_t
Definition xcbext.h:39
xcb_generic_error_t
Generic error.
Definition xcb.h:186
xcb_generic_iterator_t
Generic iterator.
Definition xcb.h:118
xcb_void_cookie_t
Generic cookie.
Definition xcb.h:203
xcb.h