build support for libxcb 1.6. not yet used.
XXX: i couldn't get the python/xml generator to run outside of XXX: the libxcb build tree, so i just copied these from there, XXX: but ideally files/Makefile could know how to do this.
This commit is contained in:
parent
4f2c95e76d
commit
0d429e5b59
27
external/mit/xorg/lib/libxcb/Makefile
vendored
Normal file
27
external/mit/xorg/lib/libxcb/Makefile
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:27 mrg Exp $
|
||||
|
||||
SUBDIR= libxcb .WAIT
|
||||
|
||||
SUBDIR+= \
|
||||
composite \
|
||||
damage \
|
||||
dpms \
|
||||
dri2 \
|
||||
glx \
|
||||
randr \
|
||||
record \
|
||||
render \
|
||||
res \
|
||||
screensaver \
|
||||
shape \
|
||||
shm \
|
||||
sync \
|
||||
xevie \
|
||||
xf86dri \
|
||||
xfixes \
|
||||
xinerama \
|
||||
xtest \
|
||||
xv \
|
||||
xvmc \
|
||||
|
||||
.include <bsd.subdir.mk>
|
5
external/mit/xorg/lib/libxcb/bigreq/Makefile
vendored
Normal file
5
external/mit/xorg/lib/libxcb/bigreq/Makefile
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:27 mrg Exp $
|
||||
|
||||
XCBEXT= bigreq
|
||||
|
||||
.include "../xcb.mk"
|
5
external/mit/xorg/lib/libxcb/composite/Makefile
vendored
Normal file
5
external/mit/xorg/lib/libxcb/composite/Makefile
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:27 mrg Exp $
|
||||
|
||||
XCBEXT= composite
|
||||
|
||||
.include "../xcb.mk"
|
5
external/mit/xorg/lib/libxcb/damage/Makefile
vendored
Normal file
5
external/mit/xorg/lib/libxcb/damage/Makefile
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:27 mrg Exp $
|
||||
|
||||
XCBEXT= damage
|
||||
|
||||
.include "../xcb.mk"
|
5
external/mit/xorg/lib/libxcb/dpms/Makefile
vendored
Normal file
5
external/mit/xorg/lib/libxcb/dpms/Makefile
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:28 mrg Exp $
|
||||
|
||||
XCBEXT= dpms
|
||||
|
||||
.include "../xcb.mk"
|
5
external/mit/xorg/lib/libxcb/dri2/Makefile
vendored
Normal file
5
external/mit/xorg/lib/libxcb/dri2/Makefile
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:28 mrg Exp $
|
||||
|
||||
XCBEXT= dri2
|
||||
|
||||
.include "../xcb.mk"
|
26
external/mit/xorg/lib/libxcb/files/Makefile
vendored
Normal file
26
external/mit/xorg/lib/libxcb/files/Makefile
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:28 mrg Exp $
|
||||
|
||||
# This makefile is used to generate the libxcb xml/python generated files.
|
||||
# For now it is broken, and these files were copied from a normal libxcb
|
||||
# build.
|
||||
|
||||
.include <bsd.own.mk>
|
||||
.include "Makefile.xmlsrcs"
|
||||
|
||||
PYTHON?= /usr/pkg/bin/python2.6
|
||||
PYTHONLIB?= /usr/pkg/lib/python2.6
|
||||
C_CLIENT?= ${X11SRCDIR.xcb}/src/c_client.py
|
||||
|
||||
.SUFFIXES: .c .xml
|
||||
|
||||
# this doesn't work; needs to run in the xcb tree for some reason?
|
||||
.xml.c:
|
||||
${PYTHON} ${C_CLIENT} -p ${PYTHONLIB}/site-packages ${.IMPSRC}
|
||||
|
||||
generate_from_xml: ${XMLSRCS}
|
||||
|
||||
all: generate_from_xml
|
||||
|
||||
.include <bsd.subdir.mk>
|
||||
|
||||
.PATH: ${X11SRCDIR.xcb-proto}/src
|
30
external/mit/xorg/lib/libxcb/files/Makefile.xmlsrcs
vendored
Normal file
30
external/mit/xorg/lib/libxcb/files/Makefile.xmlsrcs
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
# $NetBSD: Makefile.xmlsrcs,v 1.1 2010/07/17 23:43:28 mrg Exp $
|
||||
|
||||
# list of the libxcb xml-generated .c files.
|
||||
|
||||
XMLSRCS= \
|
||||
xproto.c \
|
||||
bigreq.c \
|
||||
xc_misc.c \
|
||||
composite.c \
|
||||
damage.c \
|
||||
dpms.c \
|
||||
dri2.c \
|
||||
glx.c \
|
||||
randr.c \
|
||||
record.c \
|
||||
render.c \
|
||||
res.c \
|
||||
screensaver.c \
|
||||
shape.c \
|
||||
shm.c \
|
||||
sync.c \
|
||||
xevie.c \
|
||||
xf86dri.c \
|
||||
xfixes.c \
|
||||
xinerama.c \
|
||||
xinput.c \
|
||||
xselinux.c \
|
||||
xtest.c \
|
||||
xv.c \
|
||||
xvmc.c
|
98
external/mit/xorg/lib/libxcb/files/bigreq.c
vendored
Normal file
98
external/mit/xorg/lib/libxcb/files/bigreq.c
vendored
Normal file
@ -0,0 +1,98 @@
|
||||
/*
|
||||
* This file generated automatically from bigreq.xml by c_client.py.
|
||||
* Edit at your peril.
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#include "xcbext.h"
|
||||
#include "bigreq.h"
|
||||
|
||||
xcb_extension_t xcb_big_requests_id = { "BIG-REQUESTS", 0 };
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_big_requests_enable_cookie_t xcb_big_requests_enable
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_big_requests_enable_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_big_requests_enable_cookie_t
|
||||
xcb_big_requests_enable (xcb_connection_t *c /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_big_requests_id,
|
||||
/* opcode */ XCB_BIG_REQUESTS_ENABLE,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_big_requests_enable_cookie_t xcb_ret;
|
||||
xcb_big_requests_enable_request_t xcb_out;
|
||||
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_big_requests_enable_cookie_t xcb_big_requests_enable_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_big_requests_enable_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_big_requests_enable_cookie_t
|
||||
xcb_big_requests_enable_unchecked (xcb_connection_t *c /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_big_requests_id,
|
||||
/* opcode */ XCB_BIG_REQUESTS_ENABLE,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_big_requests_enable_cookie_t xcb_ret;
|
||||
xcb_big_requests_enable_request_t xcb_out;
|
||||
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_big_requests_enable_reply_t * xcb_big_requests_enable_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_big_requests_enable_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_big_requests_enable_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_big_requests_enable_reply_t *
|
||||
xcb_big_requests_enable_reply (xcb_connection_t *c /**< */,
|
||||
xcb_big_requests_enable_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */)
|
||||
{
|
||||
return (xcb_big_requests_enable_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
|
||||
}
|
||||
|
141
external/mit/xorg/lib/libxcb/files/bigreq.h
vendored
Normal file
141
external/mit/xorg/lib/libxcb/files/bigreq.h
vendored
Normal file
@ -0,0 +1,141 @@
|
||||
/*
|
||||
* This file generated automatically from bigreq.xml by c_client.py.
|
||||
* Edit at your peril.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @defgroup XCB_BigRequests_API XCB BigRequests API
|
||||
* @brief BigRequests XCB Protocol Implementation.
|
||||
* @{
|
||||
**/
|
||||
|
||||
#ifndef __BIGREQ_H
|
||||
#define __BIGREQ_H
|
||||
|
||||
#include "xcb.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define XCB_BIGREQUESTS_MAJOR_VERSION 0
|
||||
#define XCB_BIGREQUESTS_MINOR_VERSION 0
|
||||
|
||||
extern xcb_extension_t xcb_big_requests_id;
|
||||
|
||||
/**
|
||||
* @brief xcb_big_requests_enable_cookie_t
|
||||
**/
|
||||
typedef struct xcb_big_requests_enable_cookie_t {
|
||||
unsigned int sequence; /**< */
|
||||
} xcb_big_requests_enable_cookie_t;
|
||||
|
||||
/** Opcode for xcb_big_requests_enable. */
|
||||
#define XCB_BIG_REQUESTS_ENABLE 0
|
||||
|
||||
/**
|
||||
* @brief xcb_big_requests_enable_request_t
|
||||
**/
|
||||
typedef struct xcb_big_requests_enable_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
} xcb_big_requests_enable_request_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_big_requests_enable_reply_t
|
||||
**/
|
||||
typedef struct xcb_big_requests_enable_reply_t {
|
||||
uint8_t response_type; /**< */
|
||||
uint8_t pad0; /**< */
|
||||
uint16_t sequence; /**< */
|
||||
uint32_t length; /**< */
|
||||
uint32_t maximum_request_length; /**< */
|
||||
} xcb_big_requests_enable_reply_t;
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_big_requests_enable_cookie_t xcb_big_requests_enable
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_big_requests_enable_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_big_requests_enable_cookie_t
|
||||
xcb_big_requests_enable (xcb_connection_t *c /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* placed in the event queue.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_big_requests_enable_cookie_t xcb_big_requests_enable_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_big_requests_enable_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_big_requests_enable_cookie_t
|
||||
xcb_big_requests_enable_unchecked (xcb_connection_t *c /**< */);
|
||||
|
||||
/**
|
||||
* Return the reply
|
||||
* @param c The connection
|
||||
* @param cookie The cookie
|
||||
* @param e The xcb_generic_error_t supplied
|
||||
*
|
||||
* Returns the reply of the request asked by
|
||||
*
|
||||
* The parameter @p e supplied to this function must be NULL if
|
||||
* xcb_big_requests_enable_unchecked(). is used.
|
||||
* Otherwise, it stores the error if any.
|
||||
*
|
||||
* The returned value must be freed by the caller using free().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_big_requests_enable_reply_t * xcb_big_requests_enable_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_big_requests_enable_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_big_requests_enable_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_big_requests_enable_reply_t *
|
||||
xcb_big_requests_enable_reply (xcb_connection_t *c /**< */,
|
||||
xcb_big_requests_enable_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
754
external/mit/xorg/lib/libxcb/files/composite.c
vendored
Normal file
754
external/mit/xorg/lib/libxcb/files/composite.c
vendored
Normal file
@ -0,0 +1,754 @@
|
||||
/*
|
||||
* This file generated automatically from composite.xml by c_client.py.
|
||||
* Edit at your peril.
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#include "xcbext.h"
|
||||
#include "composite.h"
|
||||
#include "xproto.h"
|
||||
#include "render.h"
|
||||
#include "shape.h"
|
||||
#include "xfixes.h"
|
||||
|
||||
xcb_extension_t xcb_composite_id = { "Composite", 0 };
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_composite_query_version_cookie_t xcb_composite_query_version
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint32_t client_major_version
|
||||
** @param uint32_t client_minor_version
|
||||
** @returns xcb_composite_query_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_composite_query_version_cookie_t
|
||||
xcb_composite_query_version (xcb_connection_t *c /**< */,
|
||||
uint32_t client_major_version /**< */,
|
||||
uint32_t client_minor_version /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_composite_id,
|
||||
/* opcode */ XCB_COMPOSITE_QUERY_VERSION,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_composite_query_version_cookie_t xcb_ret;
|
||||
xcb_composite_query_version_request_t xcb_out;
|
||||
|
||||
xcb_out.client_major_version = client_major_version;
|
||||
xcb_out.client_minor_version = client_minor_version;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_composite_query_version_cookie_t xcb_composite_query_version_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint32_t client_major_version
|
||||
** @param uint32_t client_minor_version
|
||||
** @returns xcb_composite_query_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_composite_query_version_cookie_t
|
||||
xcb_composite_query_version_unchecked (xcb_connection_t *c /**< */,
|
||||
uint32_t client_major_version /**< */,
|
||||
uint32_t client_minor_version /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_composite_id,
|
||||
/* opcode */ XCB_COMPOSITE_QUERY_VERSION,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_composite_query_version_cookie_t xcb_ret;
|
||||
xcb_composite_query_version_request_t xcb_out;
|
||||
|
||||
xcb_out.client_major_version = client_major_version;
|
||||
xcb_out.client_minor_version = client_minor_version;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_composite_query_version_reply_t * xcb_composite_query_version_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_composite_query_version_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_composite_query_version_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_composite_query_version_reply_t *
|
||||
xcb_composite_query_version_reply (xcb_connection_t *c /**< */,
|
||||
xcb_composite_query_version_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */)
|
||||
{
|
||||
return (xcb_composite_query_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_composite_redirect_window_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @param uint8_t update
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_composite_redirect_window_checked (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */,
|
||||
uint8_t update /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_composite_id,
|
||||
/* opcode */ XCB_COMPOSITE_REDIRECT_WINDOW,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_composite_redirect_window_request_t xcb_out;
|
||||
|
||||
xcb_out.window = window;
|
||||
xcb_out.update = update;
|
||||
memset(xcb_out.pad0, 0, 3);
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_composite_redirect_window
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @param uint8_t update
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_composite_redirect_window (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */,
|
||||
uint8_t update /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_composite_id,
|
||||
/* opcode */ XCB_COMPOSITE_REDIRECT_WINDOW,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_composite_redirect_window_request_t xcb_out;
|
||||
|
||||
xcb_out.window = window;
|
||||
xcb_out.update = update;
|
||||
memset(xcb_out.pad0, 0, 3);
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_composite_redirect_subwindows_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @param uint8_t update
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_composite_redirect_subwindows_checked (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */,
|
||||
uint8_t update /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_composite_id,
|
||||
/* opcode */ XCB_COMPOSITE_REDIRECT_SUBWINDOWS,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_composite_redirect_subwindows_request_t xcb_out;
|
||||
|
||||
xcb_out.window = window;
|
||||
xcb_out.update = update;
|
||||
memset(xcb_out.pad0, 0, 3);
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_composite_redirect_subwindows
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @param uint8_t update
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_composite_redirect_subwindows (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */,
|
||||
uint8_t update /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_composite_id,
|
||||
/* opcode */ XCB_COMPOSITE_REDIRECT_SUBWINDOWS,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_composite_redirect_subwindows_request_t xcb_out;
|
||||
|
||||
xcb_out.window = window;
|
||||
xcb_out.update = update;
|
||||
memset(xcb_out.pad0, 0, 3);
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_composite_unredirect_window_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @param uint8_t update
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_composite_unredirect_window_checked (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */,
|
||||
uint8_t update /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_composite_id,
|
||||
/* opcode */ XCB_COMPOSITE_UNREDIRECT_WINDOW,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_composite_unredirect_window_request_t xcb_out;
|
||||
|
||||
xcb_out.window = window;
|
||||
xcb_out.update = update;
|
||||
memset(xcb_out.pad0, 0, 3);
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_composite_unredirect_window
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @param uint8_t update
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_composite_unredirect_window (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */,
|
||||
uint8_t update /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_composite_id,
|
||||
/* opcode */ XCB_COMPOSITE_UNREDIRECT_WINDOW,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_composite_unredirect_window_request_t xcb_out;
|
||||
|
||||
xcb_out.window = window;
|
||||
xcb_out.update = update;
|
||||
memset(xcb_out.pad0, 0, 3);
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_composite_unredirect_subwindows_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @param uint8_t update
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_composite_unredirect_subwindows_checked (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */,
|
||||
uint8_t update /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_composite_id,
|
||||
/* opcode */ XCB_COMPOSITE_UNREDIRECT_SUBWINDOWS,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_composite_unredirect_subwindows_request_t xcb_out;
|
||||
|
||||
xcb_out.window = window;
|
||||
xcb_out.update = update;
|
||||
memset(xcb_out.pad0, 0, 3);
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_composite_unredirect_subwindows
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @param uint8_t update
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_composite_unredirect_subwindows (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */,
|
||||
uint8_t update /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_composite_id,
|
||||
/* opcode */ XCB_COMPOSITE_UNREDIRECT_SUBWINDOWS,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_composite_unredirect_subwindows_request_t xcb_out;
|
||||
|
||||
xcb_out.window = window;
|
||||
xcb_out.update = update;
|
||||
memset(xcb_out.pad0, 0, 3);
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_composite_create_region_from_border_clip_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_xfixes_region_t region
|
||||
** @param xcb_window_t window
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_composite_create_region_from_border_clip_checked (xcb_connection_t *c /**< */,
|
||||
xcb_xfixes_region_t region /**< */,
|
||||
xcb_window_t window /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_composite_id,
|
||||
/* opcode */ XCB_COMPOSITE_CREATE_REGION_FROM_BORDER_CLIP,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_composite_create_region_from_border_clip_request_t xcb_out;
|
||||
|
||||
xcb_out.region = region;
|
||||
xcb_out.window = window;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_composite_create_region_from_border_clip
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_xfixes_region_t region
|
||||
** @param xcb_window_t window
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_composite_create_region_from_border_clip (xcb_connection_t *c /**< */,
|
||||
xcb_xfixes_region_t region /**< */,
|
||||
xcb_window_t window /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_composite_id,
|
||||
/* opcode */ XCB_COMPOSITE_CREATE_REGION_FROM_BORDER_CLIP,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_composite_create_region_from_border_clip_request_t xcb_out;
|
||||
|
||||
xcb_out.region = region;
|
||||
xcb_out.window = window;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_composite_name_window_pixmap_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @param xcb_pixmap_t pixmap
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_composite_name_window_pixmap_checked (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */,
|
||||
xcb_pixmap_t pixmap /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_composite_id,
|
||||
/* opcode */ XCB_COMPOSITE_NAME_WINDOW_PIXMAP,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_composite_name_window_pixmap_request_t xcb_out;
|
||||
|
||||
xcb_out.window = window;
|
||||
xcb_out.pixmap = pixmap;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_composite_name_window_pixmap
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @param xcb_pixmap_t pixmap
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_composite_name_window_pixmap (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */,
|
||||
xcb_pixmap_t pixmap /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_composite_id,
|
||||
/* opcode */ XCB_COMPOSITE_NAME_WINDOW_PIXMAP,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_composite_name_window_pixmap_request_t xcb_out;
|
||||
|
||||
xcb_out.window = window;
|
||||
xcb_out.pixmap = pixmap;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_composite_get_overlay_window_cookie_t xcb_composite_get_overlay_window
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @returns xcb_composite_get_overlay_window_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_composite_get_overlay_window_cookie_t
|
||||
xcb_composite_get_overlay_window (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_composite_id,
|
||||
/* opcode */ XCB_COMPOSITE_GET_OVERLAY_WINDOW,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_composite_get_overlay_window_cookie_t xcb_ret;
|
||||
xcb_composite_get_overlay_window_request_t xcb_out;
|
||||
|
||||
xcb_out.window = window;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_composite_get_overlay_window_cookie_t xcb_composite_get_overlay_window_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @returns xcb_composite_get_overlay_window_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_composite_get_overlay_window_cookie_t
|
||||
xcb_composite_get_overlay_window_unchecked (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_composite_id,
|
||||
/* opcode */ XCB_COMPOSITE_GET_OVERLAY_WINDOW,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_composite_get_overlay_window_cookie_t xcb_ret;
|
||||
xcb_composite_get_overlay_window_request_t xcb_out;
|
||||
|
||||
xcb_out.window = window;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_composite_get_overlay_window_reply_t * xcb_composite_get_overlay_window_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_composite_get_overlay_window_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_composite_get_overlay_window_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_composite_get_overlay_window_reply_t *
|
||||
xcb_composite_get_overlay_window_reply (xcb_connection_t *c /**< */,
|
||||
xcb_composite_get_overlay_window_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */)
|
||||
{
|
||||
return (xcb_composite_get_overlay_window_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_composite_release_overlay_window_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_composite_release_overlay_window_checked (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_composite_id,
|
||||
/* opcode */ XCB_COMPOSITE_RELEASE_OVERLAY_WINDOW,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_composite_release_overlay_window_request_t xcb_out;
|
||||
|
||||
xcb_out.window = window;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_composite_release_overlay_window
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_composite_release_overlay_window (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_composite_id,
|
||||
/* opcode */ XCB_COMPOSITE_RELEASE_OVERLAY_WINDOW,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_composite_release_overlay_window_request_t xcb_out;
|
||||
|
||||
xcb_out.window = window;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
742
external/mit/xorg/lib/libxcb/files/composite.h
vendored
Normal file
742
external/mit/xorg/lib/libxcb/files/composite.h
vendored
Normal file
@ -0,0 +1,742 @@
|
||||
/*
|
||||
* This file generated automatically from composite.xml by c_client.py.
|
||||
* Edit at your peril.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @defgroup XCB_Composite_API XCB Composite API
|
||||
* @brief Composite XCB Protocol Implementation.
|
||||
* @{
|
||||
**/
|
||||
|
||||
#ifndef __COMPOSITE_H
|
||||
#define __COMPOSITE_H
|
||||
|
||||
#include "xcb.h"
|
||||
#include "xproto.h"
|
||||
#include "render.h"
|
||||
#include "shape.h"
|
||||
#include "xfixes.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define XCB_COMPOSITE_MAJOR_VERSION 0
|
||||
#define XCB_COMPOSITE_MINOR_VERSION 3
|
||||
|
||||
extern xcb_extension_t xcb_composite_id;
|
||||
|
||||
typedef enum xcb_composite_redirect_t {
|
||||
XCB_COMPOSITE_REDIRECT_AUTOMATIC,
|
||||
XCB_COMPOSITE_REDIRECT_MANUAL
|
||||
} xcb_composite_redirect_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_composite_query_version_cookie_t
|
||||
**/
|
||||
typedef struct xcb_composite_query_version_cookie_t {
|
||||
unsigned int sequence; /**< */
|
||||
} xcb_composite_query_version_cookie_t;
|
||||
|
||||
/** Opcode for xcb_composite_query_version. */
|
||||
#define XCB_COMPOSITE_QUERY_VERSION 0
|
||||
|
||||
/**
|
||||
* @brief xcb_composite_query_version_request_t
|
||||
**/
|
||||
typedef struct xcb_composite_query_version_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
uint32_t client_major_version; /**< */
|
||||
uint32_t client_minor_version; /**< */
|
||||
} xcb_composite_query_version_request_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_composite_query_version_reply_t
|
||||
**/
|
||||
typedef struct xcb_composite_query_version_reply_t {
|
||||
uint8_t response_type; /**< */
|
||||
uint8_t pad0; /**< */
|
||||
uint16_t sequence; /**< */
|
||||
uint32_t length; /**< */
|
||||
uint32_t major_version; /**< */
|
||||
uint32_t minor_version; /**< */
|
||||
uint8_t pad1[16]; /**< */
|
||||
} xcb_composite_query_version_reply_t;
|
||||
|
||||
/** Opcode for xcb_composite_redirect_window. */
|
||||
#define XCB_COMPOSITE_REDIRECT_WINDOW 1
|
||||
|
||||
/**
|
||||
* @brief xcb_composite_redirect_window_request_t
|
||||
**/
|
||||
typedef struct xcb_composite_redirect_window_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
xcb_window_t window; /**< */
|
||||
uint8_t update; /**< */
|
||||
uint8_t pad0[3]; /**< */
|
||||
} xcb_composite_redirect_window_request_t;
|
||||
|
||||
/** Opcode for xcb_composite_redirect_subwindows. */
|
||||
#define XCB_COMPOSITE_REDIRECT_SUBWINDOWS 2
|
||||
|
||||
/**
|
||||
* @brief xcb_composite_redirect_subwindows_request_t
|
||||
**/
|
||||
typedef struct xcb_composite_redirect_subwindows_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
xcb_window_t window; /**< */
|
||||
uint8_t update; /**< */
|
||||
uint8_t pad0[3]; /**< */
|
||||
} xcb_composite_redirect_subwindows_request_t;
|
||||
|
||||
/** Opcode for xcb_composite_unredirect_window. */
|
||||
#define XCB_COMPOSITE_UNREDIRECT_WINDOW 3
|
||||
|
||||
/**
|
||||
* @brief xcb_composite_unredirect_window_request_t
|
||||
**/
|
||||
typedef struct xcb_composite_unredirect_window_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
xcb_window_t window; /**< */
|
||||
uint8_t update; /**< */
|
||||
uint8_t pad0[3]; /**< */
|
||||
} xcb_composite_unredirect_window_request_t;
|
||||
|
||||
/** Opcode for xcb_composite_unredirect_subwindows. */
|
||||
#define XCB_COMPOSITE_UNREDIRECT_SUBWINDOWS 4
|
||||
|
||||
/**
|
||||
* @brief xcb_composite_unredirect_subwindows_request_t
|
||||
**/
|
||||
typedef struct xcb_composite_unredirect_subwindows_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
xcb_window_t window; /**< */
|
||||
uint8_t update; /**< */
|
||||
uint8_t pad0[3]; /**< */
|
||||
} xcb_composite_unredirect_subwindows_request_t;
|
||||
|
||||
/** Opcode for xcb_composite_create_region_from_border_clip. */
|
||||
#define XCB_COMPOSITE_CREATE_REGION_FROM_BORDER_CLIP 5
|
||||
|
||||
/**
|
||||
* @brief xcb_composite_create_region_from_border_clip_request_t
|
||||
**/
|
||||
typedef struct xcb_composite_create_region_from_border_clip_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
xcb_xfixes_region_t region; /**< */
|
||||
xcb_window_t window; /**< */
|
||||
} xcb_composite_create_region_from_border_clip_request_t;
|
||||
|
||||
/** Opcode for xcb_composite_name_window_pixmap. */
|
||||
#define XCB_COMPOSITE_NAME_WINDOW_PIXMAP 6
|
||||
|
||||
/**
|
||||
* @brief xcb_composite_name_window_pixmap_request_t
|
||||
**/
|
||||
typedef struct xcb_composite_name_window_pixmap_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
xcb_window_t window; /**< */
|
||||
xcb_pixmap_t pixmap; /**< */
|
||||
} xcb_composite_name_window_pixmap_request_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_composite_get_overlay_window_cookie_t
|
||||
**/
|
||||
typedef struct xcb_composite_get_overlay_window_cookie_t {
|
||||
unsigned int sequence; /**< */
|
||||
} xcb_composite_get_overlay_window_cookie_t;
|
||||
|
||||
/** Opcode for xcb_composite_get_overlay_window. */
|
||||
#define XCB_COMPOSITE_GET_OVERLAY_WINDOW 7
|
||||
|
||||
/**
|
||||
* @brief xcb_composite_get_overlay_window_request_t
|
||||
**/
|
||||
typedef struct xcb_composite_get_overlay_window_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
xcb_window_t window; /**< */
|
||||
} xcb_composite_get_overlay_window_request_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_composite_get_overlay_window_reply_t
|
||||
**/
|
||||
typedef struct xcb_composite_get_overlay_window_reply_t {
|
||||
uint8_t response_type; /**< */
|
||||
uint8_t pad0; /**< */
|
||||
uint16_t sequence; /**< */
|
||||
uint32_t length; /**< */
|
||||
xcb_window_t overlay_win; /**< */
|
||||
uint8_t pad1[20]; /**< */
|
||||
} xcb_composite_get_overlay_window_reply_t;
|
||||
|
||||
/** Opcode for xcb_composite_release_overlay_window. */
|
||||
#define XCB_COMPOSITE_RELEASE_OVERLAY_WINDOW 8
|
||||
|
||||
/**
|
||||
* @brief xcb_composite_release_overlay_window_request_t
|
||||
**/
|
||||
typedef struct xcb_composite_release_overlay_window_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
xcb_window_t window; /**< */
|
||||
} xcb_composite_release_overlay_window_request_t;
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_composite_query_version_cookie_t xcb_composite_query_version
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint32_t client_major_version
|
||||
** @param uint32_t client_minor_version
|
||||
** @returns xcb_composite_query_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_composite_query_version_cookie_t
|
||||
xcb_composite_query_version (xcb_connection_t *c /**< */,
|
||||
uint32_t client_major_version /**< */,
|
||||
uint32_t client_minor_version /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* placed in the event queue.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_composite_query_version_cookie_t xcb_composite_query_version_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint32_t client_major_version
|
||||
** @param uint32_t client_minor_version
|
||||
** @returns xcb_composite_query_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_composite_query_version_cookie_t
|
||||
xcb_composite_query_version_unchecked (xcb_connection_t *c /**< */,
|
||||
uint32_t client_major_version /**< */,
|
||||
uint32_t client_minor_version /**< */);
|
||||
|
||||
/**
|
||||
* Return the reply
|
||||
* @param c The connection
|
||||
* @param cookie The cookie
|
||||
* @param e The xcb_generic_error_t supplied
|
||||
*
|
||||
* Returns the reply of the request asked by
|
||||
*
|
||||
* The parameter @p e supplied to this function must be NULL if
|
||||
* xcb_composite_query_version_unchecked(). is used.
|
||||
* Otherwise, it stores the error if any.
|
||||
*
|
||||
* The returned value must be freed by the caller using free().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_composite_query_version_reply_t * xcb_composite_query_version_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_composite_query_version_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_composite_query_version_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_composite_query_version_reply_t *
|
||||
xcb_composite_query_version_reply (xcb_connection_t *c /**< */,
|
||||
xcb_composite_query_version_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will not cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* saved for handling by xcb_request_check().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_composite_redirect_window_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @param uint8_t update
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_composite_redirect_window_checked (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */,
|
||||
uint8_t update /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_composite_redirect_window
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @param uint8_t update
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_composite_redirect_window (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */,
|
||||
uint8_t update /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will not cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* saved for handling by xcb_request_check().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_composite_redirect_subwindows_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @param uint8_t update
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_composite_redirect_subwindows_checked (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */,
|
||||
uint8_t update /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_composite_redirect_subwindows
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @param uint8_t update
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_composite_redirect_subwindows (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */,
|
||||
uint8_t update /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will not cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* saved for handling by xcb_request_check().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_composite_unredirect_window_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @param uint8_t update
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_composite_unredirect_window_checked (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */,
|
||||
uint8_t update /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_composite_unredirect_window
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @param uint8_t update
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_composite_unredirect_window (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */,
|
||||
uint8_t update /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will not cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* saved for handling by xcb_request_check().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_composite_unredirect_subwindows_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @param uint8_t update
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_composite_unredirect_subwindows_checked (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */,
|
||||
uint8_t update /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_composite_unredirect_subwindows
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @param uint8_t update
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_composite_unredirect_subwindows (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */,
|
||||
uint8_t update /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will not cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* saved for handling by xcb_request_check().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_composite_create_region_from_border_clip_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_xfixes_region_t region
|
||||
** @param xcb_window_t window
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_composite_create_region_from_border_clip_checked (xcb_connection_t *c /**< */,
|
||||
xcb_xfixes_region_t region /**< */,
|
||||
xcb_window_t window /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_composite_create_region_from_border_clip
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_xfixes_region_t region
|
||||
** @param xcb_window_t window
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_composite_create_region_from_border_clip (xcb_connection_t *c /**< */,
|
||||
xcb_xfixes_region_t region /**< */,
|
||||
xcb_window_t window /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will not cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* saved for handling by xcb_request_check().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_composite_name_window_pixmap_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @param xcb_pixmap_t pixmap
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_composite_name_window_pixmap_checked (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */,
|
||||
xcb_pixmap_t pixmap /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_composite_name_window_pixmap
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @param xcb_pixmap_t pixmap
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_composite_name_window_pixmap (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */,
|
||||
xcb_pixmap_t pixmap /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_composite_get_overlay_window_cookie_t xcb_composite_get_overlay_window
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @returns xcb_composite_get_overlay_window_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_composite_get_overlay_window_cookie_t
|
||||
xcb_composite_get_overlay_window (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* placed in the event queue.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_composite_get_overlay_window_cookie_t xcb_composite_get_overlay_window_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @returns xcb_composite_get_overlay_window_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_composite_get_overlay_window_cookie_t
|
||||
xcb_composite_get_overlay_window_unchecked (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */);
|
||||
|
||||
/**
|
||||
* Return the reply
|
||||
* @param c The connection
|
||||
* @param cookie The cookie
|
||||
* @param e The xcb_generic_error_t supplied
|
||||
*
|
||||
* Returns the reply of the request asked by
|
||||
*
|
||||
* The parameter @p e supplied to this function must be NULL if
|
||||
* xcb_composite_get_overlay_window_unchecked(). is used.
|
||||
* Otherwise, it stores the error if any.
|
||||
*
|
||||
* The returned value must be freed by the caller using free().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_composite_get_overlay_window_reply_t * xcb_composite_get_overlay_window_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_composite_get_overlay_window_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_composite_get_overlay_window_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_composite_get_overlay_window_reply_t *
|
||||
xcb_composite_get_overlay_window_reply (xcb_connection_t *c /**< */,
|
||||
xcb_composite_get_overlay_window_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will not cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* saved for handling by xcb_request_check().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_composite_release_overlay_window_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_composite_release_overlay_window_checked (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_composite_release_overlay_window
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_composite_release_overlay_window (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
84
external/mit/xorg/lib/libxcb/files/config.h
vendored
Normal file
84
external/mit/xorg/lib/libxcb/files/config.h
vendored
Normal file
@ -0,0 +1,84 @@
|
||||
/* src/config.h. Generated from config.h.in by configure. */
|
||||
/* src/config.h.in. Generated from configure.ac by autoheader. */
|
||||
|
||||
/* Defined if GCC supports the visibility feature */
|
||||
#define GCC_HAS_VISIBILITY /**/
|
||||
|
||||
/* Has Wraphelp.c needed for XDM AUTH protocols */
|
||||
#define HASXDMAUTH 1
|
||||
|
||||
/* Define if your platform supports abstract sockets */
|
||||
/* #undef HAVE_ABSTRACT_SOCKETS */
|
||||
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||
#define HAVE_DLFCN_H 1
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#define HAVE_INTTYPES_H 1
|
||||
|
||||
/* launchd support available */
|
||||
/* #undef HAVE_LAUNCHD */
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#define HAVE_MEMORY_H 1
|
||||
|
||||
/* Have the sockaddr_un.sun_len member. */
|
||||
#define HAVE_SOCKADDR_SUN_LEN 1
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#define HAVE_STDINT_H 1
|
||||
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#define HAVE_STDLIB_H 1
|
||||
|
||||
/* Define to 1 if you have the <strings.h> header file. */
|
||||
#define HAVE_STRINGS_H 1
|
||||
|
||||
/* Define to 1 if you have the <string.h> header file. */
|
||||
#define HAVE_STRING_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||
#define HAVE_SYS_STAT_H 1
|
||||
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||
#define HAVE_SYS_TYPES_H 1
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#define HAVE_UNISTD_H 1
|
||||
|
||||
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
||||
*/
|
||||
#define LT_OBJDIR ".libs/"
|
||||
|
||||
/* Name of package */
|
||||
#define PACKAGE "libxcb"
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#define PACKAGE_BUGREPORT "xcb@lists.freedesktop.org"
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#define PACKAGE_NAME "libxcb"
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#define PACKAGE_STRING "libxcb 1.6"
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#define PACKAGE_TARNAME "libxcb"
|
||||
|
||||
/* Define to the home page for this package. */
|
||||
#define PACKAGE_URL ""
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#define PACKAGE_VERSION "1.6"
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#define STDC_HEADERS 1
|
||||
|
||||
/* poll() function is available */
|
||||
#define USE_POLL 1
|
||||
|
||||
/* Version number of package */
|
||||
#define VERSION "1.6"
|
||||
|
||||
/* XCB buffer queue size */
|
||||
#define XCB_QUEUE_BUFFER_SIZE 16384
|
472
external/mit/xorg/lib/libxcb/files/damage.c
vendored
Normal file
472
external/mit/xorg/lib/libxcb/files/damage.c
vendored
Normal file
@ -0,0 +1,472 @@
|
||||
/*
|
||||
* This file generated automatically from damage.xml by c_client.py.
|
||||
* Edit at your peril.
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#include "xcbext.h"
|
||||
#include "damage.h"
|
||||
#include "xproto.h"
|
||||
#include "render.h"
|
||||
#include "shape.h"
|
||||
#include "xfixes.h"
|
||||
|
||||
xcb_extension_t xcb_damage_id = { "DAMAGE", 0 };
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** void xcb_damage_damage_next
|
||||
**
|
||||
** @param xcb_damage_damage_iterator_t *i
|
||||
** @returns void
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
void
|
||||
xcb_damage_damage_next (xcb_damage_damage_iterator_t *i /**< */)
|
||||
{
|
||||
--i->rem;
|
||||
++i->data;
|
||||
i->index += sizeof(xcb_damage_damage_t);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_generic_iterator_t xcb_damage_damage_end
|
||||
**
|
||||
** @param xcb_damage_damage_iterator_t i
|
||||
** @returns xcb_generic_iterator_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_generic_iterator_t
|
||||
xcb_damage_damage_end (xcb_damage_damage_iterator_t i /**< */)
|
||||
{
|
||||
xcb_generic_iterator_t ret;
|
||||
ret.data = i.data + i.rem;
|
||||
ret.index = i.index + ((char *) ret.data - (char *) i.data);
|
||||
ret.rem = 0;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_damage_query_version_cookie_t xcb_damage_query_version
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint32_t client_major_version
|
||||
** @param uint32_t client_minor_version
|
||||
** @returns xcb_damage_query_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_damage_query_version_cookie_t
|
||||
xcb_damage_query_version (xcb_connection_t *c /**< */,
|
||||
uint32_t client_major_version /**< */,
|
||||
uint32_t client_minor_version /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_damage_id,
|
||||
/* opcode */ XCB_DAMAGE_QUERY_VERSION,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_damage_query_version_cookie_t xcb_ret;
|
||||
xcb_damage_query_version_request_t xcb_out;
|
||||
|
||||
xcb_out.client_major_version = client_major_version;
|
||||
xcb_out.client_minor_version = client_minor_version;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_damage_query_version_cookie_t xcb_damage_query_version_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint32_t client_major_version
|
||||
** @param uint32_t client_minor_version
|
||||
** @returns xcb_damage_query_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_damage_query_version_cookie_t
|
||||
xcb_damage_query_version_unchecked (xcb_connection_t *c /**< */,
|
||||
uint32_t client_major_version /**< */,
|
||||
uint32_t client_minor_version /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_damage_id,
|
||||
/* opcode */ XCB_DAMAGE_QUERY_VERSION,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_damage_query_version_cookie_t xcb_ret;
|
||||
xcb_damage_query_version_request_t xcb_out;
|
||||
|
||||
xcb_out.client_major_version = client_major_version;
|
||||
xcb_out.client_minor_version = client_minor_version;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_damage_query_version_reply_t * xcb_damage_query_version_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_damage_query_version_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_damage_query_version_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_damage_query_version_reply_t *
|
||||
xcb_damage_query_version_reply (xcb_connection_t *c /**< */,
|
||||
xcb_damage_query_version_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */)
|
||||
{
|
||||
return (xcb_damage_query_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_damage_create_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_damage_damage_t damage
|
||||
** @param xcb_drawable_t drawable
|
||||
** @param uint8_t level
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_damage_create_checked (xcb_connection_t *c /**< */,
|
||||
xcb_damage_damage_t damage /**< */,
|
||||
xcb_drawable_t drawable /**< */,
|
||||
uint8_t level /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_damage_id,
|
||||
/* opcode */ XCB_DAMAGE_CREATE,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_damage_create_request_t xcb_out;
|
||||
|
||||
xcb_out.damage = damage;
|
||||
xcb_out.drawable = drawable;
|
||||
xcb_out.level = level;
|
||||
memset(xcb_out.pad0, 0, 3);
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_damage_create
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_damage_damage_t damage
|
||||
** @param xcb_drawable_t drawable
|
||||
** @param uint8_t level
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_damage_create (xcb_connection_t *c /**< */,
|
||||
xcb_damage_damage_t damage /**< */,
|
||||
xcb_drawable_t drawable /**< */,
|
||||
uint8_t level /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_damage_id,
|
||||
/* opcode */ XCB_DAMAGE_CREATE,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_damage_create_request_t xcb_out;
|
||||
|
||||
xcb_out.damage = damage;
|
||||
xcb_out.drawable = drawable;
|
||||
xcb_out.level = level;
|
||||
memset(xcb_out.pad0, 0, 3);
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_damage_destroy_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_damage_damage_t damage
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_damage_destroy_checked (xcb_connection_t *c /**< */,
|
||||
xcb_damage_damage_t damage /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_damage_id,
|
||||
/* opcode */ XCB_DAMAGE_DESTROY,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_damage_destroy_request_t xcb_out;
|
||||
|
||||
xcb_out.damage = damage;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_damage_destroy
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_damage_damage_t damage
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_damage_destroy (xcb_connection_t *c /**< */,
|
||||
xcb_damage_damage_t damage /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_damage_id,
|
||||
/* opcode */ XCB_DAMAGE_DESTROY,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_damage_destroy_request_t xcb_out;
|
||||
|
||||
xcb_out.damage = damage;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_damage_subtract_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_damage_damage_t damage
|
||||
** @param xcb_xfixes_region_t repair
|
||||
** @param xcb_xfixes_region_t parts
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_damage_subtract_checked (xcb_connection_t *c /**< */,
|
||||
xcb_damage_damage_t damage /**< */,
|
||||
xcb_xfixes_region_t repair /**< */,
|
||||
xcb_xfixes_region_t parts /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_damage_id,
|
||||
/* opcode */ XCB_DAMAGE_SUBTRACT,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_damage_subtract_request_t xcb_out;
|
||||
|
||||
xcb_out.damage = damage;
|
||||
xcb_out.repair = repair;
|
||||
xcb_out.parts = parts;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_damage_subtract
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_damage_damage_t damage
|
||||
** @param xcb_xfixes_region_t repair
|
||||
** @param xcb_xfixes_region_t parts
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_damage_subtract (xcb_connection_t *c /**< */,
|
||||
xcb_damage_damage_t damage /**< */,
|
||||
xcb_xfixes_region_t repair /**< */,
|
||||
xcb_xfixes_region_t parts /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_damage_id,
|
||||
/* opcode */ XCB_DAMAGE_SUBTRACT,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_damage_subtract_request_t xcb_out;
|
||||
|
||||
xcb_out.damage = damage;
|
||||
xcb_out.repair = repair;
|
||||
xcb_out.parts = parts;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_damage_add_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_drawable_t drawable
|
||||
** @param xcb_xfixes_region_t region
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_damage_add_checked (xcb_connection_t *c /**< */,
|
||||
xcb_drawable_t drawable /**< */,
|
||||
xcb_xfixes_region_t region /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_damage_id,
|
||||
/* opcode */ XCB_DAMAGE_ADD,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_damage_add_request_t xcb_out;
|
||||
|
||||
xcb_out.drawable = drawable;
|
||||
xcb_out.region = region;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_damage_add
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_drawable_t drawable
|
||||
** @param xcb_xfixes_region_t region
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_damage_add (xcb_connection_t *c /**< */,
|
||||
xcb_drawable_t drawable /**< */,
|
||||
xcb_xfixes_region_t region /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_damage_id,
|
||||
/* opcode */ XCB_DAMAGE_ADD,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_damage_add_request_t xcb_out;
|
||||
|
||||
xcb_out.drawable = drawable;
|
||||
xcb_out.region = region;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
521
external/mit/xorg/lib/libxcb/files/damage.h
vendored
Normal file
521
external/mit/xorg/lib/libxcb/files/damage.h
vendored
Normal file
@ -0,0 +1,521 @@
|
||||
/*
|
||||
* This file generated automatically from damage.xml by c_client.py.
|
||||
* Edit at your peril.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @defgroup XCB_Damage_API XCB Damage API
|
||||
* @brief Damage XCB Protocol Implementation.
|
||||
* @{
|
||||
**/
|
||||
|
||||
#ifndef __DAMAGE_H
|
||||
#define __DAMAGE_H
|
||||
|
||||
#include "xcb.h"
|
||||
#include "xproto.h"
|
||||
#include "render.h"
|
||||
#include "shape.h"
|
||||
#include "xfixes.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define XCB_DAMAGE_MAJOR_VERSION 1
|
||||
#define XCB_DAMAGE_MINOR_VERSION 1
|
||||
|
||||
extern xcb_extension_t xcb_damage_id;
|
||||
|
||||
typedef uint32_t xcb_damage_damage_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_damage_damage_iterator_t
|
||||
**/
|
||||
typedef struct xcb_damage_damage_iterator_t {
|
||||
xcb_damage_damage_t *data; /**< */
|
||||
int rem; /**< */
|
||||
int index; /**< */
|
||||
} xcb_damage_damage_iterator_t;
|
||||
|
||||
typedef enum xcb_damage_report_level_t {
|
||||
XCB_DAMAGE_REPORT_LEVEL_RAW_RECTANGLES,
|
||||
XCB_DAMAGE_REPORT_LEVEL_DELTA_RECTANGLES,
|
||||
XCB_DAMAGE_REPORT_LEVEL_BOUNDING_BOX,
|
||||
XCB_DAMAGE_REPORT_LEVEL_NON_EMPTY
|
||||
} xcb_damage_report_level_t;
|
||||
|
||||
/** Opcode for xcb_damage_bad_damage. */
|
||||
#define XCB_DAMAGE_BAD_DAMAGE 0
|
||||
|
||||
/**
|
||||
* @brief xcb_damage_bad_damage_error_t
|
||||
**/
|
||||
typedef struct xcb_damage_bad_damage_error_t {
|
||||
uint8_t response_type; /**< */
|
||||
uint8_t error_code; /**< */
|
||||
uint16_t sequence; /**< */
|
||||
} xcb_damage_bad_damage_error_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_damage_query_version_cookie_t
|
||||
**/
|
||||
typedef struct xcb_damage_query_version_cookie_t {
|
||||
unsigned int sequence; /**< */
|
||||
} xcb_damage_query_version_cookie_t;
|
||||
|
||||
/** Opcode for xcb_damage_query_version. */
|
||||
#define XCB_DAMAGE_QUERY_VERSION 0
|
||||
|
||||
/**
|
||||
* @brief xcb_damage_query_version_request_t
|
||||
**/
|
||||
typedef struct xcb_damage_query_version_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
uint32_t client_major_version; /**< */
|
||||
uint32_t client_minor_version; /**< */
|
||||
} xcb_damage_query_version_request_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_damage_query_version_reply_t
|
||||
**/
|
||||
typedef struct xcb_damage_query_version_reply_t {
|
||||
uint8_t response_type; /**< */
|
||||
uint8_t pad0; /**< */
|
||||
uint16_t sequence; /**< */
|
||||
uint32_t length; /**< */
|
||||
uint32_t major_version; /**< */
|
||||
uint32_t minor_version; /**< */
|
||||
uint8_t pad1[16]; /**< */
|
||||
} xcb_damage_query_version_reply_t;
|
||||
|
||||
/** Opcode for xcb_damage_create. */
|
||||
#define XCB_DAMAGE_CREATE 1
|
||||
|
||||
/**
|
||||
* @brief xcb_damage_create_request_t
|
||||
**/
|
||||
typedef struct xcb_damage_create_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
xcb_damage_damage_t damage; /**< */
|
||||
xcb_drawable_t drawable; /**< */
|
||||
uint8_t level; /**< */
|
||||
uint8_t pad0[3]; /**< */
|
||||
} xcb_damage_create_request_t;
|
||||
|
||||
/** Opcode for xcb_damage_destroy. */
|
||||
#define XCB_DAMAGE_DESTROY 2
|
||||
|
||||
/**
|
||||
* @brief xcb_damage_destroy_request_t
|
||||
**/
|
||||
typedef struct xcb_damage_destroy_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
xcb_damage_damage_t damage; /**< */
|
||||
} xcb_damage_destroy_request_t;
|
||||
|
||||
/** Opcode for xcb_damage_subtract. */
|
||||
#define XCB_DAMAGE_SUBTRACT 3
|
||||
|
||||
/**
|
||||
* @brief xcb_damage_subtract_request_t
|
||||
**/
|
||||
typedef struct xcb_damage_subtract_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
xcb_damage_damage_t damage; /**< */
|
||||
xcb_xfixes_region_t repair; /**< */
|
||||
xcb_xfixes_region_t parts; /**< */
|
||||
} xcb_damage_subtract_request_t;
|
||||
|
||||
/** Opcode for xcb_damage_add. */
|
||||
#define XCB_DAMAGE_ADD 4
|
||||
|
||||
/**
|
||||
* @brief xcb_damage_add_request_t
|
||||
**/
|
||||
typedef struct xcb_damage_add_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
xcb_drawable_t drawable; /**< */
|
||||
xcb_xfixes_region_t region; /**< */
|
||||
} xcb_damage_add_request_t;
|
||||
|
||||
/** Opcode for xcb_damage_notify. */
|
||||
#define XCB_DAMAGE_NOTIFY 0
|
||||
|
||||
/**
|
||||
* @brief xcb_damage_notify_event_t
|
||||
**/
|
||||
typedef struct xcb_damage_notify_event_t {
|
||||
uint8_t response_type; /**< */
|
||||
uint8_t level; /**< */
|
||||
uint16_t sequence; /**< */
|
||||
xcb_drawable_t drawable; /**< */
|
||||
xcb_damage_damage_t damage; /**< */
|
||||
xcb_timestamp_t timestamp; /**< */
|
||||
xcb_rectangle_t area; /**< */
|
||||
xcb_rectangle_t geometry; /**< */
|
||||
} xcb_damage_notify_event_t;
|
||||
|
||||
/**
|
||||
* Get the next element of the iterator
|
||||
* @param i Pointer to a xcb_damage_damage_iterator_t
|
||||
*
|
||||
* Get the next element in the iterator. The member rem is
|
||||
* decreased by one. The member data points to the next
|
||||
* element. The member index is increased by sizeof(xcb_damage_damage_t)
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** void xcb_damage_damage_next
|
||||
**
|
||||
** @param xcb_damage_damage_iterator_t *i
|
||||
** @returns void
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
void
|
||||
xcb_damage_damage_next (xcb_damage_damage_iterator_t *i /**< */);
|
||||
|
||||
/**
|
||||
* Return the iterator pointing to the last element
|
||||
* @param i An xcb_damage_damage_iterator_t
|
||||
* @return The iterator pointing to the last element
|
||||
*
|
||||
* Set the current element in the iterator to the last element.
|
||||
* The member rem is set to 0. The member data points to the
|
||||
* last element.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_generic_iterator_t xcb_damage_damage_end
|
||||
**
|
||||
** @param xcb_damage_damage_iterator_t i
|
||||
** @returns xcb_generic_iterator_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_generic_iterator_t
|
||||
xcb_damage_damage_end (xcb_damage_damage_iterator_t i /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_damage_query_version_cookie_t xcb_damage_query_version
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint32_t client_major_version
|
||||
** @param uint32_t client_minor_version
|
||||
** @returns xcb_damage_query_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_damage_query_version_cookie_t
|
||||
xcb_damage_query_version (xcb_connection_t *c /**< */,
|
||||
uint32_t client_major_version /**< */,
|
||||
uint32_t client_minor_version /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* placed in the event queue.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_damage_query_version_cookie_t xcb_damage_query_version_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint32_t client_major_version
|
||||
** @param uint32_t client_minor_version
|
||||
** @returns xcb_damage_query_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_damage_query_version_cookie_t
|
||||
xcb_damage_query_version_unchecked (xcb_connection_t *c /**< */,
|
||||
uint32_t client_major_version /**< */,
|
||||
uint32_t client_minor_version /**< */);
|
||||
|
||||
/**
|
||||
* Return the reply
|
||||
* @param c The connection
|
||||
* @param cookie The cookie
|
||||
* @param e The xcb_generic_error_t supplied
|
||||
*
|
||||
* Returns the reply of the request asked by
|
||||
*
|
||||
* The parameter @p e supplied to this function must be NULL if
|
||||
* xcb_damage_query_version_unchecked(). is used.
|
||||
* Otherwise, it stores the error if any.
|
||||
*
|
||||
* The returned value must be freed by the caller using free().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_damage_query_version_reply_t * xcb_damage_query_version_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_damage_query_version_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_damage_query_version_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_damage_query_version_reply_t *
|
||||
xcb_damage_query_version_reply (xcb_connection_t *c /**< */,
|
||||
xcb_damage_query_version_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will not cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* saved for handling by xcb_request_check().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_damage_create_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_damage_damage_t damage
|
||||
** @param xcb_drawable_t drawable
|
||||
** @param uint8_t level
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_damage_create_checked (xcb_connection_t *c /**< */,
|
||||
xcb_damage_damage_t damage /**< */,
|
||||
xcb_drawable_t drawable /**< */,
|
||||
uint8_t level /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_damage_create
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_damage_damage_t damage
|
||||
** @param xcb_drawable_t drawable
|
||||
** @param uint8_t level
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_damage_create (xcb_connection_t *c /**< */,
|
||||
xcb_damage_damage_t damage /**< */,
|
||||
xcb_drawable_t drawable /**< */,
|
||||
uint8_t level /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will not cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* saved for handling by xcb_request_check().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_damage_destroy_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_damage_damage_t damage
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_damage_destroy_checked (xcb_connection_t *c /**< */,
|
||||
xcb_damage_damage_t damage /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_damage_destroy
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_damage_damage_t damage
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_damage_destroy (xcb_connection_t *c /**< */,
|
||||
xcb_damage_damage_t damage /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will not cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* saved for handling by xcb_request_check().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_damage_subtract_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_damage_damage_t damage
|
||||
** @param xcb_xfixes_region_t repair
|
||||
** @param xcb_xfixes_region_t parts
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_damage_subtract_checked (xcb_connection_t *c /**< */,
|
||||
xcb_damage_damage_t damage /**< */,
|
||||
xcb_xfixes_region_t repair /**< */,
|
||||
xcb_xfixes_region_t parts /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_damage_subtract
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_damage_damage_t damage
|
||||
** @param xcb_xfixes_region_t repair
|
||||
** @param xcb_xfixes_region_t parts
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_damage_subtract (xcb_connection_t *c /**< */,
|
||||
xcb_damage_damage_t damage /**< */,
|
||||
xcb_xfixes_region_t repair /**< */,
|
||||
xcb_xfixes_region_t parts /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will not cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* saved for handling by xcb_request_check().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_damage_add_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_drawable_t drawable
|
||||
** @param xcb_xfixes_region_t region
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_damage_add_checked (xcb_connection_t *c /**< */,
|
||||
xcb_drawable_t drawable /**< */,
|
||||
xcb_xfixes_region_t region /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_damage_add
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_drawable_t drawable
|
||||
** @param xcb_xfixes_region_t region
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_damage_add (xcb_connection_t *c /**< */,
|
||||
xcb_drawable_t drawable /**< */,
|
||||
xcb_xfixes_region_t region /**< */);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
656
external/mit/xorg/lib/libxcb/files/dpms.c
vendored
Normal file
656
external/mit/xorg/lib/libxcb/files/dpms.c
vendored
Normal file
@ -0,0 +1,656 @@
|
||||
/*
|
||||
* This file generated automatically from dpms.xml by c_client.py.
|
||||
* Edit at your peril.
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#include "xcbext.h"
|
||||
#include "dpms.h"
|
||||
|
||||
xcb_extension_t xcb_dpms_id = { "DPMS", 0 };
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_dpms_get_version_cookie_t xcb_dpms_get_version
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint16_t client_major_version
|
||||
** @param uint16_t client_minor_version
|
||||
** @returns xcb_dpms_get_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_dpms_get_version_cookie_t
|
||||
xcb_dpms_get_version (xcb_connection_t *c /**< */,
|
||||
uint16_t client_major_version /**< */,
|
||||
uint16_t client_minor_version /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_dpms_id,
|
||||
/* opcode */ XCB_DPMS_GET_VERSION,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_dpms_get_version_cookie_t xcb_ret;
|
||||
xcb_dpms_get_version_request_t xcb_out;
|
||||
|
||||
xcb_out.client_major_version = client_major_version;
|
||||
xcb_out.client_minor_version = client_minor_version;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_dpms_get_version_cookie_t xcb_dpms_get_version_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint16_t client_major_version
|
||||
** @param uint16_t client_minor_version
|
||||
** @returns xcb_dpms_get_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_dpms_get_version_cookie_t
|
||||
xcb_dpms_get_version_unchecked (xcb_connection_t *c /**< */,
|
||||
uint16_t client_major_version /**< */,
|
||||
uint16_t client_minor_version /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_dpms_id,
|
||||
/* opcode */ XCB_DPMS_GET_VERSION,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_dpms_get_version_cookie_t xcb_ret;
|
||||
xcb_dpms_get_version_request_t xcb_out;
|
||||
|
||||
xcb_out.client_major_version = client_major_version;
|
||||
xcb_out.client_minor_version = client_minor_version;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_dpms_get_version_reply_t * xcb_dpms_get_version_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_dpms_get_version_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_dpms_get_version_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_dpms_get_version_reply_t *
|
||||
xcb_dpms_get_version_reply (xcb_connection_t *c /**< */,
|
||||
xcb_dpms_get_version_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */)
|
||||
{
|
||||
return (xcb_dpms_get_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_dpms_capable_cookie_t xcb_dpms_capable
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_dpms_capable_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_dpms_capable_cookie_t
|
||||
xcb_dpms_capable (xcb_connection_t *c /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_dpms_id,
|
||||
/* opcode */ XCB_DPMS_CAPABLE,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_dpms_capable_cookie_t xcb_ret;
|
||||
xcb_dpms_capable_request_t xcb_out;
|
||||
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_dpms_capable_cookie_t xcb_dpms_capable_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_dpms_capable_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_dpms_capable_cookie_t
|
||||
xcb_dpms_capable_unchecked (xcb_connection_t *c /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_dpms_id,
|
||||
/* opcode */ XCB_DPMS_CAPABLE,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_dpms_capable_cookie_t xcb_ret;
|
||||
xcb_dpms_capable_request_t xcb_out;
|
||||
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_dpms_capable_reply_t * xcb_dpms_capable_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_dpms_capable_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_dpms_capable_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_dpms_capable_reply_t *
|
||||
xcb_dpms_capable_reply (xcb_connection_t *c /**< */,
|
||||
xcb_dpms_capable_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */)
|
||||
{
|
||||
return (xcb_dpms_capable_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_dpms_get_timeouts_cookie_t xcb_dpms_get_timeouts
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_dpms_get_timeouts_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_dpms_get_timeouts_cookie_t
|
||||
xcb_dpms_get_timeouts (xcb_connection_t *c /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_dpms_id,
|
||||
/* opcode */ XCB_DPMS_GET_TIMEOUTS,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_dpms_get_timeouts_cookie_t xcb_ret;
|
||||
xcb_dpms_get_timeouts_request_t xcb_out;
|
||||
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_dpms_get_timeouts_cookie_t xcb_dpms_get_timeouts_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_dpms_get_timeouts_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_dpms_get_timeouts_cookie_t
|
||||
xcb_dpms_get_timeouts_unchecked (xcb_connection_t *c /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_dpms_id,
|
||||
/* opcode */ XCB_DPMS_GET_TIMEOUTS,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_dpms_get_timeouts_cookie_t xcb_ret;
|
||||
xcb_dpms_get_timeouts_request_t xcb_out;
|
||||
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_dpms_get_timeouts_reply_t * xcb_dpms_get_timeouts_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_dpms_get_timeouts_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_dpms_get_timeouts_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_dpms_get_timeouts_reply_t *
|
||||
xcb_dpms_get_timeouts_reply (xcb_connection_t *c /**< */,
|
||||
xcb_dpms_get_timeouts_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */)
|
||||
{
|
||||
return (xcb_dpms_get_timeouts_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_dpms_set_timeouts_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint16_t standby_timeout
|
||||
** @param uint16_t suspend_timeout
|
||||
** @param uint16_t off_timeout
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_dpms_set_timeouts_checked (xcb_connection_t *c /**< */,
|
||||
uint16_t standby_timeout /**< */,
|
||||
uint16_t suspend_timeout /**< */,
|
||||
uint16_t off_timeout /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_dpms_id,
|
||||
/* opcode */ XCB_DPMS_SET_TIMEOUTS,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_dpms_set_timeouts_request_t xcb_out;
|
||||
|
||||
xcb_out.standby_timeout = standby_timeout;
|
||||
xcb_out.suspend_timeout = suspend_timeout;
|
||||
xcb_out.off_timeout = off_timeout;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_dpms_set_timeouts
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint16_t standby_timeout
|
||||
** @param uint16_t suspend_timeout
|
||||
** @param uint16_t off_timeout
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_dpms_set_timeouts (xcb_connection_t *c /**< */,
|
||||
uint16_t standby_timeout /**< */,
|
||||
uint16_t suspend_timeout /**< */,
|
||||
uint16_t off_timeout /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_dpms_id,
|
||||
/* opcode */ XCB_DPMS_SET_TIMEOUTS,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_dpms_set_timeouts_request_t xcb_out;
|
||||
|
||||
xcb_out.standby_timeout = standby_timeout;
|
||||
xcb_out.suspend_timeout = suspend_timeout;
|
||||
xcb_out.off_timeout = off_timeout;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_dpms_enable_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_dpms_enable_checked (xcb_connection_t *c /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_dpms_id,
|
||||
/* opcode */ XCB_DPMS_ENABLE,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_dpms_enable_request_t xcb_out;
|
||||
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_dpms_enable
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_dpms_enable (xcb_connection_t *c /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_dpms_id,
|
||||
/* opcode */ XCB_DPMS_ENABLE,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_dpms_enable_request_t xcb_out;
|
||||
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_dpms_disable_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_dpms_disable_checked (xcb_connection_t *c /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_dpms_id,
|
||||
/* opcode */ XCB_DPMS_DISABLE,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_dpms_disable_request_t xcb_out;
|
||||
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_dpms_disable
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_dpms_disable (xcb_connection_t *c /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_dpms_id,
|
||||
/* opcode */ XCB_DPMS_DISABLE,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_dpms_disable_request_t xcb_out;
|
||||
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_dpms_force_level_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint16_t power_level
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_dpms_force_level_checked (xcb_connection_t *c /**< */,
|
||||
uint16_t power_level /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_dpms_id,
|
||||
/* opcode */ XCB_DPMS_FORCE_LEVEL,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_dpms_force_level_request_t xcb_out;
|
||||
|
||||
xcb_out.power_level = power_level;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_dpms_force_level
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint16_t power_level
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_dpms_force_level (xcb_connection_t *c /**< */,
|
||||
uint16_t power_level /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_dpms_id,
|
||||
/* opcode */ XCB_DPMS_FORCE_LEVEL,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_dpms_force_level_request_t xcb_out;
|
||||
|
||||
xcb_out.power_level = power_level;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_dpms_info_cookie_t xcb_dpms_info
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_dpms_info_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_dpms_info_cookie_t
|
||||
xcb_dpms_info (xcb_connection_t *c /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_dpms_id,
|
||||
/* opcode */ XCB_DPMS_INFO,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_dpms_info_cookie_t xcb_ret;
|
||||
xcb_dpms_info_request_t xcb_out;
|
||||
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_dpms_info_cookie_t xcb_dpms_info_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_dpms_info_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_dpms_info_cookie_t
|
||||
xcb_dpms_info_unchecked (xcb_connection_t *c /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_dpms_id,
|
||||
/* opcode */ XCB_DPMS_INFO,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_dpms_info_cookie_t xcb_ret;
|
||||
xcb_dpms_info_request_t xcb_out;
|
||||
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_dpms_info_reply_t * xcb_dpms_info_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_dpms_info_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_dpms_info_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_dpms_info_reply_t *
|
||||
xcb_dpms_info_reply (xcb_connection_t *c /**< */,
|
||||
xcb_dpms_info_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */)
|
||||
{
|
||||
return (xcb_dpms_info_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
|
||||
}
|
||||
|
731
external/mit/xorg/lib/libxcb/files/dpms.h
vendored
Normal file
731
external/mit/xorg/lib/libxcb/files/dpms.h
vendored
Normal file
@ -0,0 +1,731 @@
|
||||
/*
|
||||
* This file generated automatically from dpms.xml by c_client.py.
|
||||
* Edit at your peril.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @defgroup XCB_DPMS_API XCB DPMS API
|
||||
* @brief DPMS XCB Protocol Implementation.
|
||||
* @{
|
||||
**/
|
||||
|
||||
#ifndef __DPMS_H
|
||||
#define __DPMS_H
|
||||
|
||||
#include "xcb.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define XCB_DPMS_MAJOR_VERSION 0
|
||||
#define XCB_DPMS_MINOR_VERSION 0
|
||||
|
||||
extern xcb_extension_t xcb_dpms_id;
|
||||
|
||||
/**
|
||||
* @brief xcb_dpms_get_version_cookie_t
|
||||
**/
|
||||
typedef struct xcb_dpms_get_version_cookie_t {
|
||||
unsigned int sequence; /**< */
|
||||
} xcb_dpms_get_version_cookie_t;
|
||||
|
||||
/** Opcode for xcb_dpms_get_version. */
|
||||
#define XCB_DPMS_GET_VERSION 0
|
||||
|
||||
/**
|
||||
* @brief xcb_dpms_get_version_request_t
|
||||
**/
|
||||
typedef struct xcb_dpms_get_version_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
uint16_t client_major_version; /**< */
|
||||
uint16_t client_minor_version; /**< */
|
||||
} xcb_dpms_get_version_request_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_dpms_get_version_reply_t
|
||||
**/
|
||||
typedef struct xcb_dpms_get_version_reply_t {
|
||||
uint8_t response_type; /**< */
|
||||
uint8_t pad0; /**< */
|
||||
uint16_t sequence; /**< */
|
||||
uint32_t length; /**< */
|
||||
uint16_t server_major_version; /**< */
|
||||
uint16_t server_minor_version; /**< */
|
||||
} xcb_dpms_get_version_reply_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_dpms_capable_cookie_t
|
||||
**/
|
||||
typedef struct xcb_dpms_capable_cookie_t {
|
||||
unsigned int sequence; /**< */
|
||||
} xcb_dpms_capable_cookie_t;
|
||||
|
||||
/** Opcode for xcb_dpms_capable. */
|
||||
#define XCB_DPMS_CAPABLE 1
|
||||
|
||||
/**
|
||||
* @brief xcb_dpms_capable_request_t
|
||||
**/
|
||||
typedef struct xcb_dpms_capable_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
} xcb_dpms_capable_request_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_dpms_capable_reply_t
|
||||
**/
|
||||
typedef struct xcb_dpms_capable_reply_t {
|
||||
uint8_t response_type; /**< */
|
||||
uint8_t pad0; /**< */
|
||||
uint16_t sequence; /**< */
|
||||
uint32_t length; /**< */
|
||||
uint8_t capable; /**< */
|
||||
uint8_t pad1[23]; /**< */
|
||||
} xcb_dpms_capable_reply_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_dpms_get_timeouts_cookie_t
|
||||
**/
|
||||
typedef struct xcb_dpms_get_timeouts_cookie_t {
|
||||
unsigned int sequence; /**< */
|
||||
} xcb_dpms_get_timeouts_cookie_t;
|
||||
|
||||
/** Opcode for xcb_dpms_get_timeouts. */
|
||||
#define XCB_DPMS_GET_TIMEOUTS 2
|
||||
|
||||
/**
|
||||
* @brief xcb_dpms_get_timeouts_request_t
|
||||
**/
|
||||
typedef struct xcb_dpms_get_timeouts_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
} xcb_dpms_get_timeouts_request_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_dpms_get_timeouts_reply_t
|
||||
**/
|
||||
typedef struct xcb_dpms_get_timeouts_reply_t {
|
||||
uint8_t response_type; /**< */
|
||||
uint8_t pad0; /**< */
|
||||
uint16_t sequence; /**< */
|
||||
uint32_t length; /**< */
|
||||
uint16_t standby_timeout; /**< */
|
||||
uint16_t suspend_timeout; /**< */
|
||||
uint16_t off_timeout; /**< */
|
||||
uint8_t pad1[18]; /**< */
|
||||
} xcb_dpms_get_timeouts_reply_t;
|
||||
|
||||
/** Opcode for xcb_dpms_set_timeouts. */
|
||||
#define XCB_DPMS_SET_TIMEOUTS 3
|
||||
|
||||
/**
|
||||
* @brief xcb_dpms_set_timeouts_request_t
|
||||
**/
|
||||
typedef struct xcb_dpms_set_timeouts_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
uint16_t standby_timeout; /**< */
|
||||
uint16_t suspend_timeout; /**< */
|
||||
uint16_t off_timeout; /**< */
|
||||
} xcb_dpms_set_timeouts_request_t;
|
||||
|
||||
/** Opcode for xcb_dpms_enable. */
|
||||
#define XCB_DPMS_ENABLE 4
|
||||
|
||||
/**
|
||||
* @brief xcb_dpms_enable_request_t
|
||||
**/
|
||||
typedef struct xcb_dpms_enable_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
} xcb_dpms_enable_request_t;
|
||||
|
||||
/** Opcode for xcb_dpms_disable. */
|
||||
#define XCB_DPMS_DISABLE 5
|
||||
|
||||
/**
|
||||
* @brief xcb_dpms_disable_request_t
|
||||
**/
|
||||
typedef struct xcb_dpms_disable_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
} xcb_dpms_disable_request_t;
|
||||
|
||||
typedef enum xcb_dpms_dpms_mode_t {
|
||||
XCB_DPMS_DPMS_MODE_ON,
|
||||
XCB_DPMS_DPMS_MODE_STANDBY,
|
||||
XCB_DPMS_DPMS_MODE_SUSPEND,
|
||||
XCB_DPMS_DPMS_MODE_OFF
|
||||
} xcb_dpms_dpms_mode_t;
|
||||
|
||||
/** Opcode for xcb_dpms_force_level. */
|
||||
#define XCB_DPMS_FORCE_LEVEL 6
|
||||
|
||||
/**
|
||||
* @brief xcb_dpms_force_level_request_t
|
||||
**/
|
||||
typedef struct xcb_dpms_force_level_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
uint16_t power_level; /**< */
|
||||
} xcb_dpms_force_level_request_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_dpms_info_cookie_t
|
||||
**/
|
||||
typedef struct xcb_dpms_info_cookie_t {
|
||||
unsigned int sequence; /**< */
|
||||
} xcb_dpms_info_cookie_t;
|
||||
|
||||
/** Opcode for xcb_dpms_info. */
|
||||
#define XCB_DPMS_INFO 7
|
||||
|
||||
/**
|
||||
* @brief xcb_dpms_info_request_t
|
||||
**/
|
||||
typedef struct xcb_dpms_info_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
} xcb_dpms_info_request_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_dpms_info_reply_t
|
||||
**/
|
||||
typedef struct xcb_dpms_info_reply_t {
|
||||
uint8_t response_type; /**< */
|
||||
uint8_t pad0; /**< */
|
||||
uint16_t sequence; /**< */
|
||||
uint32_t length; /**< */
|
||||
uint16_t power_level; /**< */
|
||||
uint8_t state; /**< */
|
||||
uint8_t pad1[21]; /**< */
|
||||
} xcb_dpms_info_reply_t;
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_dpms_get_version_cookie_t xcb_dpms_get_version
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint16_t client_major_version
|
||||
** @param uint16_t client_minor_version
|
||||
** @returns xcb_dpms_get_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_dpms_get_version_cookie_t
|
||||
xcb_dpms_get_version (xcb_connection_t *c /**< */,
|
||||
uint16_t client_major_version /**< */,
|
||||
uint16_t client_minor_version /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* placed in the event queue.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_dpms_get_version_cookie_t xcb_dpms_get_version_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint16_t client_major_version
|
||||
** @param uint16_t client_minor_version
|
||||
** @returns xcb_dpms_get_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_dpms_get_version_cookie_t
|
||||
xcb_dpms_get_version_unchecked (xcb_connection_t *c /**< */,
|
||||
uint16_t client_major_version /**< */,
|
||||
uint16_t client_minor_version /**< */);
|
||||
|
||||
/**
|
||||
* Return the reply
|
||||
* @param c The connection
|
||||
* @param cookie The cookie
|
||||
* @param e The xcb_generic_error_t supplied
|
||||
*
|
||||
* Returns the reply of the request asked by
|
||||
*
|
||||
* The parameter @p e supplied to this function must be NULL if
|
||||
* xcb_dpms_get_version_unchecked(). is used.
|
||||
* Otherwise, it stores the error if any.
|
||||
*
|
||||
* The returned value must be freed by the caller using free().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_dpms_get_version_reply_t * xcb_dpms_get_version_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_dpms_get_version_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_dpms_get_version_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_dpms_get_version_reply_t *
|
||||
xcb_dpms_get_version_reply (xcb_connection_t *c /**< */,
|
||||
xcb_dpms_get_version_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_dpms_capable_cookie_t xcb_dpms_capable
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_dpms_capable_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_dpms_capable_cookie_t
|
||||
xcb_dpms_capable (xcb_connection_t *c /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* placed in the event queue.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_dpms_capable_cookie_t xcb_dpms_capable_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_dpms_capable_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_dpms_capable_cookie_t
|
||||
xcb_dpms_capable_unchecked (xcb_connection_t *c /**< */);
|
||||
|
||||
/**
|
||||
* Return the reply
|
||||
* @param c The connection
|
||||
* @param cookie The cookie
|
||||
* @param e The xcb_generic_error_t supplied
|
||||
*
|
||||
* Returns the reply of the request asked by
|
||||
*
|
||||
* The parameter @p e supplied to this function must be NULL if
|
||||
* xcb_dpms_capable_unchecked(). is used.
|
||||
* Otherwise, it stores the error if any.
|
||||
*
|
||||
* The returned value must be freed by the caller using free().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_dpms_capable_reply_t * xcb_dpms_capable_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_dpms_capable_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_dpms_capable_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_dpms_capable_reply_t *
|
||||
xcb_dpms_capable_reply (xcb_connection_t *c /**< */,
|
||||
xcb_dpms_capable_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_dpms_get_timeouts_cookie_t xcb_dpms_get_timeouts
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_dpms_get_timeouts_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_dpms_get_timeouts_cookie_t
|
||||
xcb_dpms_get_timeouts (xcb_connection_t *c /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* placed in the event queue.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_dpms_get_timeouts_cookie_t xcb_dpms_get_timeouts_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_dpms_get_timeouts_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_dpms_get_timeouts_cookie_t
|
||||
xcb_dpms_get_timeouts_unchecked (xcb_connection_t *c /**< */);
|
||||
|
||||
/**
|
||||
* Return the reply
|
||||
* @param c The connection
|
||||
* @param cookie The cookie
|
||||
* @param e The xcb_generic_error_t supplied
|
||||
*
|
||||
* Returns the reply of the request asked by
|
||||
*
|
||||
* The parameter @p e supplied to this function must be NULL if
|
||||
* xcb_dpms_get_timeouts_unchecked(). is used.
|
||||
* Otherwise, it stores the error if any.
|
||||
*
|
||||
* The returned value must be freed by the caller using free().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_dpms_get_timeouts_reply_t * xcb_dpms_get_timeouts_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_dpms_get_timeouts_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_dpms_get_timeouts_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_dpms_get_timeouts_reply_t *
|
||||
xcb_dpms_get_timeouts_reply (xcb_connection_t *c /**< */,
|
||||
xcb_dpms_get_timeouts_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will not cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* saved for handling by xcb_request_check().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_dpms_set_timeouts_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint16_t standby_timeout
|
||||
** @param uint16_t suspend_timeout
|
||||
** @param uint16_t off_timeout
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_dpms_set_timeouts_checked (xcb_connection_t *c /**< */,
|
||||
uint16_t standby_timeout /**< */,
|
||||
uint16_t suspend_timeout /**< */,
|
||||
uint16_t off_timeout /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_dpms_set_timeouts
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint16_t standby_timeout
|
||||
** @param uint16_t suspend_timeout
|
||||
** @param uint16_t off_timeout
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_dpms_set_timeouts (xcb_connection_t *c /**< */,
|
||||
uint16_t standby_timeout /**< */,
|
||||
uint16_t suspend_timeout /**< */,
|
||||
uint16_t off_timeout /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will not cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* saved for handling by xcb_request_check().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_dpms_enable_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_dpms_enable_checked (xcb_connection_t *c /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_dpms_enable
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_dpms_enable (xcb_connection_t *c /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will not cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* saved for handling by xcb_request_check().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_dpms_disable_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_dpms_disable_checked (xcb_connection_t *c /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_dpms_disable
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_dpms_disable (xcb_connection_t *c /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will not cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* saved for handling by xcb_request_check().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_dpms_force_level_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint16_t power_level
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_dpms_force_level_checked (xcb_connection_t *c /**< */,
|
||||
uint16_t power_level /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_dpms_force_level
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint16_t power_level
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_dpms_force_level (xcb_connection_t *c /**< */,
|
||||
uint16_t power_level /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_dpms_info_cookie_t xcb_dpms_info
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_dpms_info_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_dpms_info_cookie_t
|
||||
xcb_dpms_info (xcb_connection_t *c /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* placed in the event queue.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_dpms_info_cookie_t xcb_dpms_info_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_dpms_info_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_dpms_info_cookie_t
|
||||
xcb_dpms_info_unchecked (xcb_connection_t *c /**< */);
|
||||
|
||||
/**
|
||||
* Return the reply
|
||||
* @param c The connection
|
||||
* @param cookie The cookie
|
||||
* @param e The xcb_generic_error_t supplied
|
||||
*
|
||||
* Returns the reply of the request asked by
|
||||
*
|
||||
* The parameter @p e supplied to this function must be NULL if
|
||||
* xcb_dpms_info_unchecked(). is used.
|
||||
* Otherwise, it stores the error if any.
|
||||
*
|
||||
* The returned value must be freed by the caller using free().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_dpms_info_reply_t * xcb_dpms_info_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_dpms_info_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_dpms_info_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_dpms_info_reply_t *
|
||||
xcb_dpms_info_reply (xcb_connection_t *c /**< */,
|
||||
xcb_dpms_info_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
1075
external/mit/xorg/lib/libxcb/files/dri2.c
vendored
Normal file
1075
external/mit/xorg/lib/libxcb/files/dri2.c
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1186
external/mit/xorg/lib/libxcb/files/dri2.h
vendored
Normal file
1186
external/mit/xorg/lib/libxcb/files/dri2.h
vendored
Normal file
File diff suppressed because it is too large
Load Diff
12747
external/mit/xorg/lib/libxcb/files/glx.c
vendored
Normal file
12747
external/mit/xorg/lib/libxcb/files/glx.c
vendored
Normal file
File diff suppressed because it is too large
Load Diff
13173
external/mit/xorg/lib/libxcb/files/glx.h
vendored
Normal file
13173
external/mit/xorg/lib/libxcb/files/glx.h
vendored
Normal file
File diff suppressed because it is too large
Load Diff
4827
external/mit/xorg/lib/libxcb/files/randr.c
vendored
Normal file
4827
external/mit/xorg/lib/libxcb/files/randr.c
vendored
Normal file
File diff suppressed because it is too large
Load Diff
5020
external/mit/xorg/lib/libxcb/files/randr.h
vendored
Normal file
5020
external/mit/xorg/lib/libxcb/files/randr.h
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1208
external/mit/xorg/lib/libxcb/files/record.c
vendored
Normal file
1208
external/mit/xorg/lib/libxcb/files/record.c
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1348
external/mit/xorg/lib/libxcb/files/record.h
vendored
Normal file
1348
external/mit/xorg/lib/libxcb/files/record.h
vendored
Normal file
File diff suppressed because it is too large
Load Diff
4353
external/mit/xorg/lib/libxcb/files/render.c
vendored
Normal file
4353
external/mit/xorg/lib/libxcb/files/render.c
vendored
Normal file
File diff suppressed because it is too large
Load Diff
4412
external/mit/xorg/lib/libxcb/files/render.h
vendored
Normal file
4412
external/mit/xorg/lib/libxcb/files/render.h
vendored
Normal file
File diff suppressed because it is too large
Load Diff
561
external/mit/xorg/lib/libxcb/files/res.c
vendored
Normal file
561
external/mit/xorg/lib/libxcb/files/res.c
vendored
Normal file
@ -0,0 +1,561 @@
|
||||
/*
|
||||
* This file generated automatically from res.xml by c_client.py.
|
||||
* Edit at your peril.
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#include "xcbext.h"
|
||||
#include "res.h"
|
||||
#include "xproto.h"
|
||||
|
||||
xcb_extension_t xcb_res_id = { "X-Resource", 0 };
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** void xcb_res_client_next
|
||||
**
|
||||
** @param xcb_res_client_iterator_t *i
|
||||
** @returns void
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
void
|
||||
xcb_res_client_next (xcb_res_client_iterator_t *i /**< */)
|
||||
{
|
||||
--i->rem;
|
||||
++i->data;
|
||||
i->index += sizeof(xcb_res_client_t);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_generic_iterator_t xcb_res_client_end
|
||||
**
|
||||
** @param xcb_res_client_iterator_t i
|
||||
** @returns xcb_generic_iterator_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_generic_iterator_t
|
||||
xcb_res_client_end (xcb_res_client_iterator_t i /**< */)
|
||||
{
|
||||
xcb_generic_iterator_t ret;
|
||||
ret.data = i.data + i.rem;
|
||||
ret.index = i.index + ((char *) ret.data - (char *) i.data);
|
||||
ret.rem = 0;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** void xcb_res_type_next
|
||||
**
|
||||
** @param xcb_res_type_iterator_t *i
|
||||
** @returns void
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
void
|
||||
xcb_res_type_next (xcb_res_type_iterator_t *i /**< */)
|
||||
{
|
||||
--i->rem;
|
||||
++i->data;
|
||||
i->index += sizeof(xcb_res_type_t);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_generic_iterator_t xcb_res_type_end
|
||||
**
|
||||
** @param xcb_res_type_iterator_t i
|
||||
** @returns xcb_generic_iterator_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_generic_iterator_t
|
||||
xcb_res_type_end (xcb_res_type_iterator_t i /**< */)
|
||||
{
|
||||
xcb_generic_iterator_t ret;
|
||||
ret.data = i.data + i.rem;
|
||||
ret.index = i.index + ((char *) ret.data - (char *) i.data);
|
||||
ret.rem = 0;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_res_query_version_cookie_t xcb_res_query_version
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint8_t client_major
|
||||
** @param uint8_t client_minor
|
||||
** @returns xcb_res_query_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_res_query_version_cookie_t
|
||||
xcb_res_query_version (xcb_connection_t *c /**< */,
|
||||
uint8_t client_major /**< */,
|
||||
uint8_t client_minor /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_res_id,
|
||||
/* opcode */ XCB_RES_QUERY_VERSION,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_res_query_version_cookie_t xcb_ret;
|
||||
xcb_res_query_version_request_t xcb_out;
|
||||
|
||||
xcb_out.client_major = client_major;
|
||||
xcb_out.client_minor = client_minor;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_res_query_version_cookie_t xcb_res_query_version_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint8_t client_major
|
||||
** @param uint8_t client_minor
|
||||
** @returns xcb_res_query_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_res_query_version_cookie_t
|
||||
xcb_res_query_version_unchecked (xcb_connection_t *c /**< */,
|
||||
uint8_t client_major /**< */,
|
||||
uint8_t client_minor /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_res_id,
|
||||
/* opcode */ XCB_RES_QUERY_VERSION,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_res_query_version_cookie_t xcb_ret;
|
||||
xcb_res_query_version_request_t xcb_out;
|
||||
|
||||
xcb_out.client_major = client_major;
|
||||
xcb_out.client_minor = client_minor;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_res_query_version_reply_t * xcb_res_query_version_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_res_query_version_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_res_query_version_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_res_query_version_reply_t *
|
||||
xcb_res_query_version_reply (xcb_connection_t *c /**< */,
|
||||
xcb_res_query_version_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */)
|
||||
{
|
||||
return (xcb_res_query_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_res_query_clients_cookie_t xcb_res_query_clients
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_res_query_clients_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_res_query_clients_cookie_t
|
||||
xcb_res_query_clients (xcb_connection_t *c /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_res_id,
|
||||
/* opcode */ XCB_RES_QUERY_CLIENTS,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_res_query_clients_cookie_t xcb_ret;
|
||||
xcb_res_query_clients_request_t xcb_out;
|
||||
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_res_query_clients_cookie_t xcb_res_query_clients_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_res_query_clients_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_res_query_clients_cookie_t
|
||||
xcb_res_query_clients_unchecked (xcb_connection_t *c /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_res_id,
|
||||
/* opcode */ XCB_RES_QUERY_CLIENTS,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_res_query_clients_cookie_t xcb_ret;
|
||||
xcb_res_query_clients_request_t xcb_out;
|
||||
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_res_client_t * xcb_res_query_clients_clients
|
||||
**
|
||||
** @param const xcb_res_query_clients_reply_t *R
|
||||
** @returns xcb_res_client_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_res_client_t *
|
||||
xcb_res_query_clients_clients (const xcb_res_query_clients_reply_t *R /**< */)
|
||||
{
|
||||
return (xcb_res_client_t *) (R + 1);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** int xcb_res_query_clients_clients_length
|
||||
**
|
||||
** @param const xcb_res_query_clients_reply_t *R
|
||||
** @returns int
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
int
|
||||
xcb_res_query_clients_clients_length (const xcb_res_query_clients_reply_t *R /**< */)
|
||||
{
|
||||
return R->num_clients;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_res_client_iterator_t xcb_res_query_clients_clients_iterator
|
||||
**
|
||||
** @param const xcb_res_query_clients_reply_t *R
|
||||
** @returns xcb_res_client_iterator_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_res_client_iterator_t
|
||||
xcb_res_query_clients_clients_iterator (const xcb_res_query_clients_reply_t *R /**< */)
|
||||
{
|
||||
xcb_res_client_iterator_t i;
|
||||
i.data = (xcb_res_client_t *) (R + 1);
|
||||
i.rem = R->num_clients;
|
||||
i.index = (char *) i.data - (char *) R;
|
||||
return i;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_res_query_clients_reply_t * xcb_res_query_clients_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_res_query_clients_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_res_query_clients_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_res_query_clients_reply_t *
|
||||
xcb_res_query_clients_reply (xcb_connection_t *c /**< */,
|
||||
xcb_res_query_clients_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */)
|
||||
{
|
||||
return (xcb_res_query_clients_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_res_query_client_resources_cookie_t xcb_res_query_client_resources
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint32_t xid
|
||||
** @returns xcb_res_query_client_resources_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_res_query_client_resources_cookie_t
|
||||
xcb_res_query_client_resources (xcb_connection_t *c /**< */,
|
||||
uint32_t xid /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_res_id,
|
||||
/* opcode */ XCB_RES_QUERY_CLIENT_RESOURCES,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_res_query_client_resources_cookie_t xcb_ret;
|
||||
xcb_res_query_client_resources_request_t xcb_out;
|
||||
|
||||
xcb_out.xid = xid;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_res_query_client_resources_cookie_t xcb_res_query_client_resources_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint32_t xid
|
||||
** @returns xcb_res_query_client_resources_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_res_query_client_resources_cookie_t
|
||||
xcb_res_query_client_resources_unchecked (xcb_connection_t *c /**< */,
|
||||
uint32_t xid /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_res_id,
|
||||
/* opcode */ XCB_RES_QUERY_CLIENT_RESOURCES,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_res_query_client_resources_cookie_t xcb_ret;
|
||||
xcb_res_query_client_resources_request_t xcb_out;
|
||||
|
||||
xcb_out.xid = xid;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_res_type_t * xcb_res_query_client_resources_types
|
||||
**
|
||||
** @param const xcb_res_query_client_resources_reply_t *R
|
||||
** @returns xcb_res_type_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_res_type_t *
|
||||
xcb_res_query_client_resources_types (const xcb_res_query_client_resources_reply_t *R /**< */)
|
||||
{
|
||||
return (xcb_res_type_t *) (R + 1);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** int xcb_res_query_client_resources_types_length
|
||||
**
|
||||
** @param const xcb_res_query_client_resources_reply_t *R
|
||||
** @returns int
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
int
|
||||
xcb_res_query_client_resources_types_length (const xcb_res_query_client_resources_reply_t *R /**< */)
|
||||
{
|
||||
return R->num_types;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_res_type_iterator_t xcb_res_query_client_resources_types_iterator
|
||||
**
|
||||
** @param const xcb_res_query_client_resources_reply_t *R
|
||||
** @returns xcb_res_type_iterator_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_res_type_iterator_t
|
||||
xcb_res_query_client_resources_types_iterator (const xcb_res_query_client_resources_reply_t *R /**< */)
|
||||
{
|
||||
xcb_res_type_iterator_t i;
|
||||
i.data = (xcb_res_type_t *) (R + 1);
|
||||
i.rem = R->num_types;
|
||||
i.index = (char *) i.data - (char *) R;
|
||||
return i;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_res_query_client_resources_reply_t * xcb_res_query_client_resources_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_res_query_client_resources_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_res_query_client_resources_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_res_query_client_resources_reply_t *
|
||||
xcb_res_query_client_resources_reply (xcb_connection_t *c /**< */,
|
||||
xcb_res_query_client_resources_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */)
|
||||
{
|
||||
return (xcb_res_query_client_resources_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_res_query_client_pixmap_bytes_cookie_t xcb_res_query_client_pixmap_bytes
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint32_t xid
|
||||
** @returns xcb_res_query_client_pixmap_bytes_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_res_query_client_pixmap_bytes_cookie_t
|
||||
xcb_res_query_client_pixmap_bytes (xcb_connection_t *c /**< */,
|
||||
uint32_t xid /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_res_id,
|
||||
/* opcode */ XCB_RES_QUERY_CLIENT_PIXMAP_BYTES,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_res_query_client_pixmap_bytes_cookie_t xcb_ret;
|
||||
xcb_res_query_client_pixmap_bytes_request_t xcb_out;
|
||||
|
||||
xcb_out.xid = xid;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_res_query_client_pixmap_bytes_cookie_t xcb_res_query_client_pixmap_bytes_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint32_t xid
|
||||
** @returns xcb_res_query_client_pixmap_bytes_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_res_query_client_pixmap_bytes_cookie_t
|
||||
xcb_res_query_client_pixmap_bytes_unchecked (xcb_connection_t *c /**< */,
|
||||
uint32_t xid /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_res_id,
|
||||
/* opcode */ XCB_RES_QUERY_CLIENT_PIXMAP_BYTES,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_res_query_client_pixmap_bytes_cookie_t xcb_ret;
|
||||
xcb_res_query_client_pixmap_bytes_request_t xcb_out;
|
||||
|
||||
xcb_out.xid = xid;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_res_query_client_pixmap_bytes_reply_t * xcb_res_query_client_pixmap_bytes_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_res_query_client_pixmap_bytes_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_res_query_client_pixmap_bytes_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_res_query_client_pixmap_bytes_reply_t *
|
||||
xcb_res_query_client_pixmap_bytes_reply (xcb_connection_t *c /**< */,
|
||||
xcb_res_query_client_pixmap_bytes_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */)
|
||||
{
|
||||
return (xcb_res_query_client_pixmap_bytes_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
|
||||
}
|
||||
|
682
external/mit/xorg/lib/libxcb/files/res.h
vendored
Normal file
682
external/mit/xorg/lib/libxcb/files/res.h
vendored
Normal file
@ -0,0 +1,682 @@
|
||||
/*
|
||||
* This file generated automatically from res.xml by c_client.py.
|
||||
* Edit at your peril.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @defgroup XCB_Res_API XCB Res API
|
||||
* @brief Res XCB Protocol Implementation.
|
||||
* @{
|
||||
**/
|
||||
|
||||
#ifndef __RES_H
|
||||
#define __RES_H
|
||||
|
||||
#include "xcb.h"
|
||||
#include "xproto.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define XCB_RES_MAJOR_VERSION 1
|
||||
#define XCB_RES_MINOR_VERSION 0
|
||||
|
||||
extern xcb_extension_t xcb_res_id;
|
||||
|
||||
/**
|
||||
* @brief xcb_res_client_t
|
||||
**/
|
||||
typedef struct xcb_res_client_t {
|
||||
uint32_t resource_base; /**< */
|
||||
uint32_t resource_mask; /**< */
|
||||
} xcb_res_client_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_res_client_iterator_t
|
||||
**/
|
||||
typedef struct xcb_res_client_iterator_t {
|
||||
xcb_res_client_t *data; /**< */
|
||||
int rem; /**< */
|
||||
int index; /**< */
|
||||
} xcb_res_client_iterator_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_res_type_t
|
||||
**/
|
||||
typedef struct xcb_res_type_t {
|
||||
xcb_atom_t resource_type; /**< */
|
||||
uint32_t count; /**< */
|
||||
} xcb_res_type_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_res_type_iterator_t
|
||||
**/
|
||||
typedef struct xcb_res_type_iterator_t {
|
||||
xcb_res_type_t *data; /**< */
|
||||
int rem; /**< */
|
||||
int index; /**< */
|
||||
} xcb_res_type_iterator_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_res_query_version_cookie_t
|
||||
**/
|
||||
typedef struct xcb_res_query_version_cookie_t {
|
||||
unsigned int sequence; /**< */
|
||||
} xcb_res_query_version_cookie_t;
|
||||
|
||||
/** Opcode for xcb_res_query_version. */
|
||||
#define XCB_RES_QUERY_VERSION 0
|
||||
|
||||
/**
|
||||
* @brief xcb_res_query_version_request_t
|
||||
**/
|
||||
typedef struct xcb_res_query_version_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
uint8_t client_major; /**< */
|
||||
uint8_t client_minor; /**< */
|
||||
} xcb_res_query_version_request_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_res_query_version_reply_t
|
||||
**/
|
||||
typedef struct xcb_res_query_version_reply_t {
|
||||
uint8_t response_type; /**< */
|
||||
uint8_t pad0; /**< */
|
||||
uint16_t sequence; /**< */
|
||||
uint32_t length; /**< */
|
||||
uint16_t server_major; /**< */
|
||||
uint16_t server_minor; /**< */
|
||||
} xcb_res_query_version_reply_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_res_query_clients_cookie_t
|
||||
**/
|
||||
typedef struct xcb_res_query_clients_cookie_t {
|
||||
unsigned int sequence; /**< */
|
||||
} xcb_res_query_clients_cookie_t;
|
||||
|
||||
/** Opcode for xcb_res_query_clients. */
|
||||
#define XCB_RES_QUERY_CLIENTS 1
|
||||
|
||||
/**
|
||||
* @brief xcb_res_query_clients_request_t
|
||||
**/
|
||||
typedef struct xcb_res_query_clients_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
} xcb_res_query_clients_request_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_res_query_clients_reply_t
|
||||
**/
|
||||
typedef struct xcb_res_query_clients_reply_t {
|
||||
uint8_t response_type; /**< */
|
||||
uint8_t pad0; /**< */
|
||||
uint16_t sequence; /**< */
|
||||
uint32_t length; /**< */
|
||||
uint32_t num_clients; /**< */
|
||||
uint8_t pad1[20]; /**< */
|
||||
} xcb_res_query_clients_reply_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_res_query_client_resources_cookie_t
|
||||
**/
|
||||
typedef struct xcb_res_query_client_resources_cookie_t {
|
||||
unsigned int sequence; /**< */
|
||||
} xcb_res_query_client_resources_cookie_t;
|
||||
|
||||
/** Opcode for xcb_res_query_client_resources. */
|
||||
#define XCB_RES_QUERY_CLIENT_RESOURCES 2
|
||||
|
||||
/**
|
||||
* @brief xcb_res_query_client_resources_request_t
|
||||
**/
|
||||
typedef struct xcb_res_query_client_resources_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
uint32_t xid; /**< */
|
||||
} xcb_res_query_client_resources_request_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_res_query_client_resources_reply_t
|
||||
**/
|
||||
typedef struct xcb_res_query_client_resources_reply_t {
|
||||
uint8_t response_type; /**< */
|
||||
uint8_t pad0; /**< */
|
||||
uint16_t sequence; /**< */
|
||||
uint32_t length; /**< */
|
||||
uint32_t num_types; /**< */
|
||||
uint8_t pad1[20]; /**< */
|
||||
} xcb_res_query_client_resources_reply_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_res_query_client_pixmap_bytes_cookie_t
|
||||
**/
|
||||
typedef struct xcb_res_query_client_pixmap_bytes_cookie_t {
|
||||
unsigned int sequence; /**< */
|
||||
} xcb_res_query_client_pixmap_bytes_cookie_t;
|
||||
|
||||
/** Opcode for xcb_res_query_client_pixmap_bytes. */
|
||||
#define XCB_RES_QUERY_CLIENT_PIXMAP_BYTES 3
|
||||
|
||||
/**
|
||||
* @brief xcb_res_query_client_pixmap_bytes_request_t
|
||||
**/
|
||||
typedef struct xcb_res_query_client_pixmap_bytes_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
uint32_t xid; /**< */
|
||||
} xcb_res_query_client_pixmap_bytes_request_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_res_query_client_pixmap_bytes_reply_t
|
||||
**/
|
||||
typedef struct xcb_res_query_client_pixmap_bytes_reply_t {
|
||||
uint8_t response_type; /**< */
|
||||
uint8_t pad0; /**< */
|
||||
uint16_t sequence; /**< */
|
||||
uint32_t length; /**< */
|
||||
uint32_t bytes; /**< */
|
||||
uint32_t bytes_overflow; /**< */
|
||||
} xcb_res_query_client_pixmap_bytes_reply_t;
|
||||
|
||||
/**
|
||||
* Get the next element of the iterator
|
||||
* @param i Pointer to a xcb_res_client_iterator_t
|
||||
*
|
||||
* Get the next element in the iterator. The member rem is
|
||||
* decreased by one. The member data points to the next
|
||||
* element. The member index is increased by sizeof(xcb_res_client_t)
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** void xcb_res_client_next
|
||||
**
|
||||
** @param xcb_res_client_iterator_t *i
|
||||
** @returns void
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
void
|
||||
xcb_res_client_next (xcb_res_client_iterator_t *i /**< */);
|
||||
|
||||
/**
|
||||
* Return the iterator pointing to the last element
|
||||
* @param i An xcb_res_client_iterator_t
|
||||
* @return The iterator pointing to the last element
|
||||
*
|
||||
* Set the current element in the iterator to the last element.
|
||||
* The member rem is set to 0. The member data points to the
|
||||
* last element.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_generic_iterator_t xcb_res_client_end
|
||||
**
|
||||
** @param xcb_res_client_iterator_t i
|
||||
** @returns xcb_generic_iterator_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_generic_iterator_t
|
||||
xcb_res_client_end (xcb_res_client_iterator_t i /**< */);
|
||||
|
||||
/**
|
||||
* Get the next element of the iterator
|
||||
* @param i Pointer to a xcb_res_type_iterator_t
|
||||
*
|
||||
* Get the next element in the iterator. The member rem is
|
||||
* decreased by one. The member data points to the next
|
||||
* element. The member index is increased by sizeof(xcb_res_type_t)
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** void xcb_res_type_next
|
||||
**
|
||||
** @param xcb_res_type_iterator_t *i
|
||||
** @returns void
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
void
|
||||
xcb_res_type_next (xcb_res_type_iterator_t *i /**< */);
|
||||
|
||||
/**
|
||||
* Return the iterator pointing to the last element
|
||||
* @param i An xcb_res_type_iterator_t
|
||||
* @return The iterator pointing to the last element
|
||||
*
|
||||
* Set the current element in the iterator to the last element.
|
||||
* The member rem is set to 0. The member data points to the
|
||||
* last element.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_generic_iterator_t xcb_res_type_end
|
||||
**
|
||||
** @param xcb_res_type_iterator_t i
|
||||
** @returns xcb_generic_iterator_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_generic_iterator_t
|
||||
xcb_res_type_end (xcb_res_type_iterator_t i /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_res_query_version_cookie_t xcb_res_query_version
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint8_t client_major
|
||||
** @param uint8_t client_minor
|
||||
** @returns xcb_res_query_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_res_query_version_cookie_t
|
||||
xcb_res_query_version (xcb_connection_t *c /**< */,
|
||||
uint8_t client_major /**< */,
|
||||
uint8_t client_minor /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* placed in the event queue.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_res_query_version_cookie_t xcb_res_query_version_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint8_t client_major
|
||||
** @param uint8_t client_minor
|
||||
** @returns xcb_res_query_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_res_query_version_cookie_t
|
||||
xcb_res_query_version_unchecked (xcb_connection_t *c /**< */,
|
||||
uint8_t client_major /**< */,
|
||||
uint8_t client_minor /**< */);
|
||||
|
||||
/**
|
||||
* Return the reply
|
||||
* @param c The connection
|
||||
* @param cookie The cookie
|
||||
* @param e The xcb_generic_error_t supplied
|
||||
*
|
||||
* Returns the reply of the request asked by
|
||||
*
|
||||
* The parameter @p e supplied to this function must be NULL if
|
||||
* xcb_res_query_version_unchecked(). is used.
|
||||
* Otherwise, it stores the error if any.
|
||||
*
|
||||
* The returned value must be freed by the caller using free().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_res_query_version_reply_t * xcb_res_query_version_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_res_query_version_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_res_query_version_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_res_query_version_reply_t *
|
||||
xcb_res_query_version_reply (xcb_connection_t *c /**< */,
|
||||
xcb_res_query_version_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_res_query_clients_cookie_t xcb_res_query_clients
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_res_query_clients_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_res_query_clients_cookie_t
|
||||
xcb_res_query_clients (xcb_connection_t *c /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* placed in the event queue.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_res_query_clients_cookie_t xcb_res_query_clients_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_res_query_clients_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_res_query_clients_cookie_t
|
||||
xcb_res_query_clients_unchecked (xcb_connection_t *c /**< */);
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_res_client_t * xcb_res_query_clients_clients
|
||||
**
|
||||
** @param const xcb_res_query_clients_reply_t *R
|
||||
** @returns xcb_res_client_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_res_client_t *
|
||||
xcb_res_query_clients_clients (const xcb_res_query_clients_reply_t *R /**< */);
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** int xcb_res_query_clients_clients_length
|
||||
**
|
||||
** @param const xcb_res_query_clients_reply_t *R
|
||||
** @returns int
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
int
|
||||
xcb_res_query_clients_clients_length (const xcb_res_query_clients_reply_t *R /**< */);
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_res_client_iterator_t xcb_res_query_clients_clients_iterator
|
||||
**
|
||||
** @param const xcb_res_query_clients_reply_t *R
|
||||
** @returns xcb_res_client_iterator_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_res_client_iterator_t
|
||||
xcb_res_query_clients_clients_iterator (const xcb_res_query_clients_reply_t *R /**< */);
|
||||
|
||||
/**
|
||||
* Return the reply
|
||||
* @param c The connection
|
||||
* @param cookie The cookie
|
||||
* @param e The xcb_generic_error_t supplied
|
||||
*
|
||||
* Returns the reply of the request asked by
|
||||
*
|
||||
* The parameter @p e supplied to this function must be NULL if
|
||||
* xcb_res_query_clients_unchecked(). is used.
|
||||
* Otherwise, it stores the error if any.
|
||||
*
|
||||
* The returned value must be freed by the caller using free().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_res_query_clients_reply_t * xcb_res_query_clients_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_res_query_clients_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_res_query_clients_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_res_query_clients_reply_t *
|
||||
xcb_res_query_clients_reply (xcb_connection_t *c /**< */,
|
||||
xcb_res_query_clients_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_res_query_client_resources_cookie_t xcb_res_query_client_resources
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint32_t xid
|
||||
** @returns xcb_res_query_client_resources_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_res_query_client_resources_cookie_t
|
||||
xcb_res_query_client_resources (xcb_connection_t *c /**< */,
|
||||
uint32_t xid /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* placed in the event queue.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_res_query_client_resources_cookie_t xcb_res_query_client_resources_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint32_t xid
|
||||
** @returns xcb_res_query_client_resources_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_res_query_client_resources_cookie_t
|
||||
xcb_res_query_client_resources_unchecked (xcb_connection_t *c /**< */,
|
||||
uint32_t xid /**< */);
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_res_type_t * xcb_res_query_client_resources_types
|
||||
**
|
||||
** @param const xcb_res_query_client_resources_reply_t *R
|
||||
** @returns xcb_res_type_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_res_type_t *
|
||||
xcb_res_query_client_resources_types (const xcb_res_query_client_resources_reply_t *R /**< */);
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** int xcb_res_query_client_resources_types_length
|
||||
**
|
||||
** @param const xcb_res_query_client_resources_reply_t *R
|
||||
** @returns int
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
int
|
||||
xcb_res_query_client_resources_types_length (const xcb_res_query_client_resources_reply_t *R /**< */);
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_res_type_iterator_t xcb_res_query_client_resources_types_iterator
|
||||
**
|
||||
** @param const xcb_res_query_client_resources_reply_t *R
|
||||
** @returns xcb_res_type_iterator_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_res_type_iterator_t
|
||||
xcb_res_query_client_resources_types_iterator (const xcb_res_query_client_resources_reply_t *R /**< */);
|
||||
|
||||
/**
|
||||
* Return the reply
|
||||
* @param c The connection
|
||||
* @param cookie The cookie
|
||||
* @param e The xcb_generic_error_t supplied
|
||||
*
|
||||
* Returns the reply of the request asked by
|
||||
*
|
||||
* The parameter @p e supplied to this function must be NULL if
|
||||
* xcb_res_query_client_resources_unchecked(). is used.
|
||||
* Otherwise, it stores the error if any.
|
||||
*
|
||||
* The returned value must be freed by the caller using free().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_res_query_client_resources_reply_t * xcb_res_query_client_resources_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_res_query_client_resources_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_res_query_client_resources_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_res_query_client_resources_reply_t *
|
||||
xcb_res_query_client_resources_reply (xcb_connection_t *c /**< */,
|
||||
xcb_res_query_client_resources_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_res_query_client_pixmap_bytes_cookie_t xcb_res_query_client_pixmap_bytes
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint32_t xid
|
||||
** @returns xcb_res_query_client_pixmap_bytes_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_res_query_client_pixmap_bytes_cookie_t
|
||||
xcb_res_query_client_pixmap_bytes (xcb_connection_t *c /**< */,
|
||||
uint32_t xid /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* placed in the event queue.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_res_query_client_pixmap_bytes_cookie_t xcb_res_query_client_pixmap_bytes_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint32_t xid
|
||||
** @returns xcb_res_query_client_pixmap_bytes_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_res_query_client_pixmap_bytes_cookie_t
|
||||
xcb_res_query_client_pixmap_bytes_unchecked (xcb_connection_t *c /**< */,
|
||||
uint32_t xid /**< */);
|
||||
|
||||
/**
|
||||
* Return the reply
|
||||
* @param c The connection
|
||||
* @param cookie The cookie
|
||||
* @param e The xcb_generic_error_t supplied
|
||||
*
|
||||
* Returns the reply of the request asked by
|
||||
*
|
||||
* The parameter @p e supplied to this function must be NULL if
|
||||
* xcb_res_query_client_pixmap_bytes_unchecked(). is used.
|
||||
* Otherwise, it stores the error if any.
|
||||
*
|
||||
* The returned value must be freed by the caller using free().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_res_query_client_pixmap_bytes_reply_t * xcb_res_query_client_pixmap_bytes_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_res_query_client_pixmap_bytes_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_res_query_client_pixmap_bytes_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_res_query_client_pixmap_bytes_reply_t *
|
||||
xcb_res_query_client_pixmap_bytes_reply (xcb_connection_t *c /**< */,
|
||||
xcb_res_query_client_pixmap_bytes_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
567
external/mit/xorg/lib/libxcb/files/screensaver.c
vendored
Normal file
567
external/mit/xorg/lib/libxcb/files/screensaver.c
vendored
Normal file
@ -0,0 +1,567 @@
|
||||
/*
|
||||
* This file generated automatically from screensaver.xml by c_client.py.
|
||||
* Edit at your peril.
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#include "xcbext.h"
|
||||
#include "screensaver.h"
|
||||
#include "xproto.h"
|
||||
|
||||
xcb_extension_t xcb_screensaver_id = { "MIT-SCREEN-SAVER", 0 };
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_screensaver_query_version_cookie_t xcb_screensaver_query_version
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint8_t client_major_version
|
||||
** @param uint8_t client_minor_version
|
||||
** @returns xcb_screensaver_query_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_screensaver_query_version_cookie_t
|
||||
xcb_screensaver_query_version (xcb_connection_t *c /**< */,
|
||||
uint8_t client_major_version /**< */,
|
||||
uint8_t client_minor_version /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_screensaver_id,
|
||||
/* opcode */ XCB_SCREENSAVER_QUERY_VERSION,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_screensaver_query_version_cookie_t xcb_ret;
|
||||
xcb_screensaver_query_version_request_t xcb_out;
|
||||
|
||||
xcb_out.client_major_version = client_major_version;
|
||||
xcb_out.client_minor_version = client_minor_version;
|
||||
memset(xcb_out.pad0, 0, 2);
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_screensaver_query_version_cookie_t xcb_screensaver_query_version_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint8_t client_major_version
|
||||
** @param uint8_t client_minor_version
|
||||
** @returns xcb_screensaver_query_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_screensaver_query_version_cookie_t
|
||||
xcb_screensaver_query_version_unchecked (xcb_connection_t *c /**< */,
|
||||
uint8_t client_major_version /**< */,
|
||||
uint8_t client_minor_version /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_screensaver_id,
|
||||
/* opcode */ XCB_SCREENSAVER_QUERY_VERSION,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_screensaver_query_version_cookie_t xcb_ret;
|
||||
xcb_screensaver_query_version_request_t xcb_out;
|
||||
|
||||
xcb_out.client_major_version = client_major_version;
|
||||
xcb_out.client_minor_version = client_minor_version;
|
||||
memset(xcb_out.pad0, 0, 2);
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_screensaver_query_version_reply_t * xcb_screensaver_query_version_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_screensaver_query_version_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_screensaver_query_version_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_screensaver_query_version_reply_t *
|
||||
xcb_screensaver_query_version_reply (xcb_connection_t *c /**< */,
|
||||
xcb_screensaver_query_version_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */)
|
||||
{
|
||||
return (xcb_screensaver_query_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_screensaver_query_info_cookie_t xcb_screensaver_query_info
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_drawable_t drawable
|
||||
** @returns xcb_screensaver_query_info_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_screensaver_query_info_cookie_t
|
||||
xcb_screensaver_query_info (xcb_connection_t *c /**< */,
|
||||
xcb_drawable_t drawable /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_screensaver_id,
|
||||
/* opcode */ XCB_SCREENSAVER_QUERY_INFO,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_screensaver_query_info_cookie_t xcb_ret;
|
||||
xcb_screensaver_query_info_request_t xcb_out;
|
||||
|
||||
xcb_out.drawable = drawable;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_screensaver_query_info_cookie_t xcb_screensaver_query_info_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_drawable_t drawable
|
||||
** @returns xcb_screensaver_query_info_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_screensaver_query_info_cookie_t
|
||||
xcb_screensaver_query_info_unchecked (xcb_connection_t *c /**< */,
|
||||
xcb_drawable_t drawable /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_screensaver_id,
|
||||
/* opcode */ XCB_SCREENSAVER_QUERY_INFO,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_screensaver_query_info_cookie_t xcb_ret;
|
||||
xcb_screensaver_query_info_request_t xcb_out;
|
||||
|
||||
xcb_out.drawable = drawable;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_screensaver_query_info_reply_t * xcb_screensaver_query_info_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_screensaver_query_info_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_screensaver_query_info_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_screensaver_query_info_reply_t *
|
||||
xcb_screensaver_query_info_reply (xcb_connection_t *c /**< */,
|
||||
xcb_screensaver_query_info_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */)
|
||||
{
|
||||
return (xcb_screensaver_query_info_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_screensaver_select_input_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_drawable_t drawable
|
||||
** @param uint32_t event_mask
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_screensaver_select_input_checked (xcb_connection_t *c /**< */,
|
||||
xcb_drawable_t drawable /**< */,
|
||||
uint32_t event_mask /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_screensaver_id,
|
||||
/* opcode */ XCB_SCREENSAVER_SELECT_INPUT,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_screensaver_select_input_request_t xcb_out;
|
||||
|
||||
xcb_out.drawable = drawable;
|
||||
xcb_out.event_mask = event_mask;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_screensaver_select_input
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_drawable_t drawable
|
||||
** @param uint32_t event_mask
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_screensaver_select_input (xcb_connection_t *c /**< */,
|
||||
xcb_drawable_t drawable /**< */,
|
||||
uint32_t event_mask /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_screensaver_id,
|
||||
/* opcode */ XCB_SCREENSAVER_SELECT_INPUT,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_screensaver_select_input_request_t xcb_out;
|
||||
|
||||
xcb_out.drawable = drawable;
|
||||
xcb_out.event_mask = event_mask;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_screensaver_set_attributes_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_drawable_t drawable
|
||||
** @param int16_t x
|
||||
** @param int16_t y
|
||||
** @param uint16_t width
|
||||
** @param uint16_t height
|
||||
** @param uint16_t border_width
|
||||
** @param uint8_t _class
|
||||
** @param uint8_t depth
|
||||
** @param xcb_visualid_t visual
|
||||
** @param uint32_t value_mask
|
||||
** @param const uint32_t *value_list
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_screensaver_set_attributes_checked (xcb_connection_t *c /**< */,
|
||||
xcb_drawable_t drawable /**< */,
|
||||
int16_t x /**< */,
|
||||
int16_t y /**< */,
|
||||
uint16_t width /**< */,
|
||||
uint16_t height /**< */,
|
||||
uint16_t border_width /**< */,
|
||||
uint8_t _class /**< */,
|
||||
uint8_t depth /**< */,
|
||||
xcb_visualid_t visual /**< */,
|
||||
uint32_t value_mask /**< */,
|
||||
const uint32_t *value_list /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 4,
|
||||
/* ext */ &xcb_screensaver_id,
|
||||
/* opcode */ XCB_SCREENSAVER_SET_ATTRIBUTES,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[6];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_screensaver_set_attributes_request_t xcb_out;
|
||||
|
||||
xcb_out.drawable = drawable;
|
||||
xcb_out.x = x;
|
||||
xcb_out.y = y;
|
||||
xcb_out.width = width;
|
||||
xcb_out.height = height;
|
||||
xcb_out.border_width = border_width;
|
||||
xcb_out._class = _class;
|
||||
xcb_out.depth = depth;
|
||||
xcb_out.visual = visual;
|
||||
xcb_out.value_mask = value_mask;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_parts[4].iov_base = (char *) value_list;
|
||||
xcb_parts[4].iov_len = xcb_popcount(value_mask) * sizeof(uint32_t);
|
||||
xcb_parts[5].iov_base = 0;
|
||||
xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_screensaver_set_attributes
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_drawable_t drawable
|
||||
** @param int16_t x
|
||||
** @param int16_t y
|
||||
** @param uint16_t width
|
||||
** @param uint16_t height
|
||||
** @param uint16_t border_width
|
||||
** @param uint8_t _class
|
||||
** @param uint8_t depth
|
||||
** @param xcb_visualid_t visual
|
||||
** @param uint32_t value_mask
|
||||
** @param const uint32_t *value_list
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_screensaver_set_attributes (xcb_connection_t *c /**< */,
|
||||
xcb_drawable_t drawable /**< */,
|
||||
int16_t x /**< */,
|
||||
int16_t y /**< */,
|
||||
uint16_t width /**< */,
|
||||
uint16_t height /**< */,
|
||||
uint16_t border_width /**< */,
|
||||
uint8_t _class /**< */,
|
||||
uint8_t depth /**< */,
|
||||
xcb_visualid_t visual /**< */,
|
||||
uint32_t value_mask /**< */,
|
||||
const uint32_t *value_list /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 4,
|
||||
/* ext */ &xcb_screensaver_id,
|
||||
/* opcode */ XCB_SCREENSAVER_SET_ATTRIBUTES,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[6];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_screensaver_set_attributes_request_t xcb_out;
|
||||
|
||||
xcb_out.drawable = drawable;
|
||||
xcb_out.x = x;
|
||||
xcb_out.y = y;
|
||||
xcb_out.width = width;
|
||||
xcb_out.height = height;
|
||||
xcb_out.border_width = border_width;
|
||||
xcb_out._class = _class;
|
||||
xcb_out.depth = depth;
|
||||
xcb_out.visual = visual;
|
||||
xcb_out.value_mask = value_mask;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_parts[4].iov_base = (char *) value_list;
|
||||
xcb_parts[4].iov_len = xcb_popcount(value_mask) * sizeof(uint32_t);
|
||||
xcb_parts[5].iov_base = 0;
|
||||
xcb_parts[5].iov_len = -xcb_parts[4].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_screensaver_unset_attributes_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_drawable_t drawable
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_screensaver_unset_attributes_checked (xcb_connection_t *c /**< */,
|
||||
xcb_drawable_t drawable /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_screensaver_id,
|
||||
/* opcode */ XCB_SCREENSAVER_UNSET_ATTRIBUTES,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_screensaver_unset_attributes_request_t xcb_out;
|
||||
|
||||
xcb_out.drawable = drawable;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_screensaver_unset_attributes
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_drawable_t drawable
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_screensaver_unset_attributes (xcb_connection_t *c /**< */,
|
||||
xcb_drawable_t drawable /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_screensaver_id,
|
||||
/* opcode */ XCB_SCREENSAVER_UNSET_ATTRIBUTES,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_screensaver_unset_attributes_request_t xcb_out;
|
||||
|
||||
xcb_out.drawable = drawable;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_screensaver_suspend_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint8_t suspend
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_screensaver_suspend_checked (xcb_connection_t *c /**< */,
|
||||
uint8_t suspend /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_screensaver_id,
|
||||
/* opcode */ XCB_SCREENSAVER_SUSPEND,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_screensaver_suspend_request_t xcb_out;
|
||||
|
||||
xcb_out.suspend = suspend;
|
||||
memset(xcb_out.pad0, 0, 3);
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_screensaver_suspend
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint8_t suspend
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_screensaver_suspend (xcb_connection_t *c /**< */,
|
||||
uint8_t suspend /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_screensaver_id,
|
||||
/* opcode */ XCB_SCREENSAVER_SUSPEND,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_screensaver_suspend_request_t xcb_out;
|
||||
|
||||
xcb_out.suspend = suspend;
|
||||
memset(xcb_out.pad0, 0, 3);
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
613
external/mit/xorg/lib/libxcb/files/screensaver.h
vendored
Normal file
613
external/mit/xorg/lib/libxcb/files/screensaver.h
vendored
Normal file
@ -0,0 +1,613 @@
|
||||
/*
|
||||
* This file generated automatically from screensaver.xml by c_client.py.
|
||||
* Edit at your peril.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @defgroup XCB_ScreenSaver_API XCB ScreenSaver API
|
||||
* @brief ScreenSaver XCB Protocol Implementation.
|
||||
* @{
|
||||
**/
|
||||
|
||||
#ifndef __SCREENSAVER_H
|
||||
#define __SCREENSAVER_H
|
||||
|
||||
#include "xcb.h"
|
||||
#include "xproto.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define XCB_SCREENSAVER_MAJOR_VERSION 1
|
||||
#define XCB_SCREENSAVER_MINOR_VERSION 1
|
||||
|
||||
extern xcb_extension_t xcb_screensaver_id;
|
||||
|
||||
typedef enum xcb_screensaver_kind_t {
|
||||
XCB_SCREENSAVER_KIND_BLANKED,
|
||||
XCB_SCREENSAVER_KIND_INTERNAL,
|
||||
XCB_SCREENSAVER_KIND_EXTERNAL
|
||||
} xcb_screensaver_kind_t;
|
||||
|
||||
typedef enum xcb_screensaver_event_t {
|
||||
XCB_SCREENSAVER_EVENT_NOTIFY_MASK = 1,
|
||||
XCB_SCREENSAVER_EVENT_CYCLE_MASK = 2
|
||||
} xcb_screensaver_event_t;
|
||||
|
||||
typedef enum xcb_screensaver_state_t {
|
||||
XCB_SCREENSAVER_STATE_OFF,
|
||||
XCB_SCREENSAVER_STATE_ON,
|
||||
XCB_SCREENSAVER_STATE_CYCLE,
|
||||
XCB_SCREENSAVER_STATE_DISABLED
|
||||
} xcb_screensaver_state_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_screensaver_query_version_cookie_t
|
||||
**/
|
||||
typedef struct xcb_screensaver_query_version_cookie_t {
|
||||
unsigned int sequence; /**< */
|
||||
} xcb_screensaver_query_version_cookie_t;
|
||||
|
||||
/** Opcode for xcb_screensaver_query_version. */
|
||||
#define XCB_SCREENSAVER_QUERY_VERSION 0
|
||||
|
||||
/**
|
||||
* @brief xcb_screensaver_query_version_request_t
|
||||
**/
|
||||
typedef struct xcb_screensaver_query_version_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
uint8_t client_major_version; /**< */
|
||||
uint8_t client_minor_version; /**< */
|
||||
uint8_t pad0[2]; /**< */
|
||||
} xcb_screensaver_query_version_request_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_screensaver_query_version_reply_t
|
||||
**/
|
||||
typedef struct xcb_screensaver_query_version_reply_t {
|
||||
uint8_t response_type; /**< */
|
||||
uint8_t pad0; /**< */
|
||||
uint16_t sequence; /**< */
|
||||
uint32_t length; /**< */
|
||||
uint16_t server_major_version; /**< */
|
||||
uint16_t server_minor_version; /**< */
|
||||
uint8_t pad1[20]; /**< */
|
||||
} xcb_screensaver_query_version_reply_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_screensaver_query_info_cookie_t
|
||||
**/
|
||||
typedef struct xcb_screensaver_query_info_cookie_t {
|
||||
unsigned int sequence; /**< */
|
||||
} xcb_screensaver_query_info_cookie_t;
|
||||
|
||||
/** Opcode for xcb_screensaver_query_info. */
|
||||
#define XCB_SCREENSAVER_QUERY_INFO 1
|
||||
|
||||
/**
|
||||
* @brief xcb_screensaver_query_info_request_t
|
||||
**/
|
||||
typedef struct xcb_screensaver_query_info_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
xcb_drawable_t drawable; /**< */
|
||||
} xcb_screensaver_query_info_request_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_screensaver_query_info_reply_t
|
||||
**/
|
||||
typedef struct xcb_screensaver_query_info_reply_t {
|
||||
uint8_t response_type; /**< */
|
||||
uint8_t state; /**< */
|
||||
uint16_t sequence; /**< */
|
||||
uint32_t length; /**< */
|
||||
xcb_window_t saver_window; /**< */
|
||||
uint32_t ms_until_server; /**< */
|
||||
uint32_t ms_since_user_input; /**< */
|
||||
uint32_t event_mask; /**< */
|
||||
uint8_t kind; /**< */
|
||||
uint8_t pad0[7]; /**< */
|
||||
} xcb_screensaver_query_info_reply_t;
|
||||
|
||||
/** Opcode for xcb_screensaver_select_input. */
|
||||
#define XCB_SCREENSAVER_SELECT_INPUT 2
|
||||
|
||||
/**
|
||||
* @brief xcb_screensaver_select_input_request_t
|
||||
**/
|
||||
typedef struct xcb_screensaver_select_input_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
xcb_drawable_t drawable; /**< */
|
||||
uint32_t event_mask; /**< */
|
||||
} xcb_screensaver_select_input_request_t;
|
||||
|
||||
/** Opcode for xcb_screensaver_set_attributes. */
|
||||
#define XCB_SCREENSAVER_SET_ATTRIBUTES 3
|
||||
|
||||
/**
|
||||
* @brief xcb_screensaver_set_attributes_request_t
|
||||
**/
|
||||
typedef struct xcb_screensaver_set_attributes_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
xcb_drawable_t drawable; /**< */
|
||||
int16_t x; /**< */
|
||||
int16_t y; /**< */
|
||||
uint16_t width; /**< */
|
||||
uint16_t height; /**< */
|
||||
uint16_t border_width; /**< */
|
||||
uint8_t _class; /**< */
|
||||
uint8_t depth; /**< */
|
||||
xcb_visualid_t visual; /**< */
|
||||
uint32_t value_mask; /**< */
|
||||
} xcb_screensaver_set_attributes_request_t;
|
||||
|
||||
/** Opcode for xcb_screensaver_unset_attributes. */
|
||||
#define XCB_SCREENSAVER_UNSET_ATTRIBUTES 4
|
||||
|
||||
/**
|
||||
* @brief xcb_screensaver_unset_attributes_request_t
|
||||
**/
|
||||
typedef struct xcb_screensaver_unset_attributes_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
xcb_drawable_t drawable; /**< */
|
||||
} xcb_screensaver_unset_attributes_request_t;
|
||||
|
||||
/** Opcode for xcb_screensaver_suspend. */
|
||||
#define XCB_SCREENSAVER_SUSPEND 5
|
||||
|
||||
/**
|
||||
* @brief xcb_screensaver_suspend_request_t
|
||||
**/
|
||||
typedef struct xcb_screensaver_suspend_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
uint8_t suspend; /**< */
|
||||
uint8_t pad0[3]; /**< */
|
||||
} xcb_screensaver_suspend_request_t;
|
||||
|
||||
/** Opcode for xcb_screensaver_notify. */
|
||||
#define XCB_SCREENSAVER_NOTIFY 0
|
||||
|
||||
/**
|
||||
* @brief xcb_screensaver_notify_event_t
|
||||
**/
|
||||
typedef struct xcb_screensaver_notify_event_t {
|
||||
uint8_t response_type; /**< */
|
||||
uint8_t code; /**< */
|
||||
uint16_t sequence; /**< */
|
||||
uint8_t state; /**< */
|
||||
uint8_t pad0; /**< */
|
||||
uint16_t sequence_number; /**< */
|
||||
xcb_timestamp_t time; /**< */
|
||||
xcb_window_t root; /**< */
|
||||
xcb_window_t window; /**< */
|
||||
uint8_t kind; /**< */
|
||||
uint8_t forced; /**< */
|
||||
uint8_t pad1[14]; /**< */
|
||||
} xcb_screensaver_notify_event_t;
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_screensaver_query_version_cookie_t xcb_screensaver_query_version
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint8_t client_major_version
|
||||
** @param uint8_t client_minor_version
|
||||
** @returns xcb_screensaver_query_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_screensaver_query_version_cookie_t
|
||||
xcb_screensaver_query_version (xcb_connection_t *c /**< */,
|
||||
uint8_t client_major_version /**< */,
|
||||
uint8_t client_minor_version /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* placed in the event queue.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_screensaver_query_version_cookie_t xcb_screensaver_query_version_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint8_t client_major_version
|
||||
** @param uint8_t client_minor_version
|
||||
** @returns xcb_screensaver_query_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_screensaver_query_version_cookie_t
|
||||
xcb_screensaver_query_version_unchecked (xcb_connection_t *c /**< */,
|
||||
uint8_t client_major_version /**< */,
|
||||
uint8_t client_minor_version /**< */);
|
||||
|
||||
/**
|
||||
* Return the reply
|
||||
* @param c The connection
|
||||
* @param cookie The cookie
|
||||
* @param e The xcb_generic_error_t supplied
|
||||
*
|
||||
* Returns the reply of the request asked by
|
||||
*
|
||||
* The parameter @p e supplied to this function must be NULL if
|
||||
* xcb_screensaver_query_version_unchecked(). is used.
|
||||
* Otherwise, it stores the error if any.
|
||||
*
|
||||
* The returned value must be freed by the caller using free().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_screensaver_query_version_reply_t * xcb_screensaver_query_version_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_screensaver_query_version_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_screensaver_query_version_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_screensaver_query_version_reply_t *
|
||||
xcb_screensaver_query_version_reply (xcb_connection_t *c /**< */,
|
||||
xcb_screensaver_query_version_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_screensaver_query_info_cookie_t xcb_screensaver_query_info
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_drawable_t drawable
|
||||
** @returns xcb_screensaver_query_info_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_screensaver_query_info_cookie_t
|
||||
xcb_screensaver_query_info (xcb_connection_t *c /**< */,
|
||||
xcb_drawable_t drawable /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* placed in the event queue.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_screensaver_query_info_cookie_t xcb_screensaver_query_info_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_drawable_t drawable
|
||||
** @returns xcb_screensaver_query_info_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_screensaver_query_info_cookie_t
|
||||
xcb_screensaver_query_info_unchecked (xcb_connection_t *c /**< */,
|
||||
xcb_drawable_t drawable /**< */);
|
||||
|
||||
/**
|
||||
* Return the reply
|
||||
* @param c The connection
|
||||
* @param cookie The cookie
|
||||
* @param e The xcb_generic_error_t supplied
|
||||
*
|
||||
* Returns the reply of the request asked by
|
||||
*
|
||||
* The parameter @p e supplied to this function must be NULL if
|
||||
* xcb_screensaver_query_info_unchecked(). is used.
|
||||
* Otherwise, it stores the error if any.
|
||||
*
|
||||
* The returned value must be freed by the caller using free().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_screensaver_query_info_reply_t * xcb_screensaver_query_info_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_screensaver_query_info_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_screensaver_query_info_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_screensaver_query_info_reply_t *
|
||||
xcb_screensaver_query_info_reply (xcb_connection_t *c /**< */,
|
||||
xcb_screensaver_query_info_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will not cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* saved for handling by xcb_request_check().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_screensaver_select_input_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_drawable_t drawable
|
||||
** @param uint32_t event_mask
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_screensaver_select_input_checked (xcb_connection_t *c /**< */,
|
||||
xcb_drawable_t drawable /**< */,
|
||||
uint32_t event_mask /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_screensaver_select_input
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_drawable_t drawable
|
||||
** @param uint32_t event_mask
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_screensaver_select_input (xcb_connection_t *c /**< */,
|
||||
xcb_drawable_t drawable /**< */,
|
||||
uint32_t event_mask /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will not cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* saved for handling by xcb_request_check().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_screensaver_set_attributes_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_drawable_t drawable
|
||||
** @param int16_t x
|
||||
** @param int16_t y
|
||||
** @param uint16_t width
|
||||
** @param uint16_t height
|
||||
** @param uint16_t border_width
|
||||
** @param uint8_t _class
|
||||
** @param uint8_t depth
|
||||
** @param xcb_visualid_t visual
|
||||
** @param uint32_t value_mask
|
||||
** @param const uint32_t *value_list
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_screensaver_set_attributes_checked (xcb_connection_t *c /**< */,
|
||||
xcb_drawable_t drawable /**< */,
|
||||
int16_t x /**< */,
|
||||
int16_t y /**< */,
|
||||
uint16_t width /**< */,
|
||||
uint16_t height /**< */,
|
||||
uint16_t border_width /**< */,
|
||||
uint8_t _class /**< */,
|
||||
uint8_t depth /**< */,
|
||||
xcb_visualid_t visual /**< */,
|
||||
uint32_t value_mask /**< */,
|
||||
const uint32_t *value_list /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_screensaver_set_attributes
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_drawable_t drawable
|
||||
** @param int16_t x
|
||||
** @param int16_t y
|
||||
** @param uint16_t width
|
||||
** @param uint16_t height
|
||||
** @param uint16_t border_width
|
||||
** @param uint8_t _class
|
||||
** @param uint8_t depth
|
||||
** @param xcb_visualid_t visual
|
||||
** @param uint32_t value_mask
|
||||
** @param const uint32_t *value_list
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_screensaver_set_attributes (xcb_connection_t *c /**< */,
|
||||
xcb_drawable_t drawable /**< */,
|
||||
int16_t x /**< */,
|
||||
int16_t y /**< */,
|
||||
uint16_t width /**< */,
|
||||
uint16_t height /**< */,
|
||||
uint16_t border_width /**< */,
|
||||
uint8_t _class /**< */,
|
||||
uint8_t depth /**< */,
|
||||
xcb_visualid_t visual /**< */,
|
||||
uint32_t value_mask /**< */,
|
||||
const uint32_t *value_list /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will not cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* saved for handling by xcb_request_check().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_screensaver_unset_attributes_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_drawable_t drawable
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_screensaver_unset_attributes_checked (xcb_connection_t *c /**< */,
|
||||
xcb_drawable_t drawable /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_screensaver_unset_attributes
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_drawable_t drawable
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_screensaver_unset_attributes (xcb_connection_t *c /**< */,
|
||||
xcb_drawable_t drawable /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will not cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* saved for handling by xcb_request_check().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_screensaver_suspend_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint8_t suspend
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_screensaver_suspend_checked (xcb_connection_t *c /**< */,
|
||||
uint8_t suspend /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_screensaver_suspend
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint8_t suspend
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_screensaver_suspend (xcb_connection_t *c /**< */,
|
||||
uint8_t suspend /**< */);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
1017
external/mit/xorg/lib/libxcb/files/shape.c
vendored
Normal file
1017
external/mit/xorg/lib/libxcb/files/shape.c
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1096
external/mit/xorg/lib/libxcb/files/shape.h
vendored
Normal file
1096
external/mit/xorg/lib/libxcb/files/shape.h
vendored
Normal file
File diff suppressed because it is too large
Load Diff
705
external/mit/xorg/lib/libxcb/files/shm.c
vendored
Normal file
705
external/mit/xorg/lib/libxcb/files/shm.c
vendored
Normal file
@ -0,0 +1,705 @@
|
||||
/*
|
||||
* This file generated automatically from shm.xml by c_client.py.
|
||||
* Edit at your peril.
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#include "xcbext.h"
|
||||
#include "shm.h"
|
||||
#include "xproto.h"
|
||||
|
||||
xcb_extension_t xcb_shm_id = { "MIT-SHM", 0 };
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** void xcb_shm_seg_next
|
||||
**
|
||||
** @param xcb_shm_seg_iterator_t *i
|
||||
** @returns void
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
void
|
||||
xcb_shm_seg_next (xcb_shm_seg_iterator_t *i /**< */)
|
||||
{
|
||||
--i->rem;
|
||||
++i->data;
|
||||
i->index += sizeof(xcb_shm_seg_t);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_generic_iterator_t xcb_shm_seg_end
|
||||
**
|
||||
** @param xcb_shm_seg_iterator_t i
|
||||
** @returns xcb_generic_iterator_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_generic_iterator_t
|
||||
xcb_shm_seg_end (xcb_shm_seg_iterator_t i /**< */)
|
||||
{
|
||||
xcb_generic_iterator_t ret;
|
||||
ret.data = i.data + i.rem;
|
||||
ret.index = i.index + ((char *) ret.data - (char *) i.data);
|
||||
ret.rem = 0;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_shm_query_version_cookie_t xcb_shm_query_version
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_shm_query_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_shm_query_version_cookie_t
|
||||
xcb_shm_query_version (xcb_connection_t *c /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_shm_id,
|
||||
/* opcode */ XCB_SHM_QUERY_VERSION,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_shm_query_version_cookie_t xcb_ret;
|
||||
xcb_shm_query_version_request_t xcb_out;
|
||||
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_shm_query_version_cookie_t xcb_shm_query_version_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_shm_query_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_shm_query_version_cookie_t
|
||||
xcb_shm_query_version_unchecked (xcb_connection_t *c /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_shm_id,
|
||||
/* opcode */ XCB_SHM_QUERY_VERSION,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_shm_query_version_cookie_t xcb_ret;
|
||||
xcb_shm_query_version_request_t xcb_out;
|
||||
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_shm_query_version_reply_t * xcb_shm_query_version_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_shm_query_version_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_shm_query_version_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_shm_query_version_reply_t *
|
||||
xcb_shm_query_version_reply (xcb_connection_t *c /**< */,
|
||||
xcb_shm_query_version_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */)
|
||||
{
|
||||
return (xcb_shm_query_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_shm_attach_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_shm_seg_t shmseg
|
||||
** @param uint32_t shmid
|
||||
** @param uint8_t read_only
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_shm_attach_checked (xcb_connection_t *c /**< */,
|
||||
xcb_shm_seg_t shmseg /**< */,
|
||||
uint32_t shmid /**< */,
|
||||
uint8_t read_only /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_shm_id,
|
||||
/* opcode */ XCB_SHM_ATTACH,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_shm_attach_request_t xcb_out;
|
||||
|
||||
xcb_out.shmseg = shmseg;
|
||||
xcb_out.shmid = shmid;
|
||||
xcb_out.read_only = read_only;
|
||||
memset(xcb_out.pad0, 0, 3);
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_shm_attach
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_shm_seg_t shmseg
|
||||
** @param uint32_t shmid
|
||||
** @param uint8_t read_only
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_shm_attach (xcb_connection_t *c /**< */,
|
||||
xcb_shm_seg_t shmseg /**< */,
|
||||
uint32_t shmid /**< */,
|
||||
uint8_t read_only /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_shm_id,
|
||||
/* opcode */ XCB_SHM_ATTACH,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_shm_attach_request_t xcb_out;
|
||||
|
||||
xcb_out.shmseg = shmseg;
|
||||
xcb_out.shmid = shmid;
|
||||
xcb_out.read_only = read_only;
|
||||
memset(xcb_out.pad0, 0, 3);
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_shm_detach_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_shm_seg_t shmseg
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_shm_detach_checked (xcb_connection_t *c /**< */,
|
||||
xcb_shm_seg_t shmseg /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_shm_id,
|
||||
/* opcode */ XCB_SHM_DETACH,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_shm_detach_request_t xcb_out;
|
||||
|
||||
xcb_out.shmseg = shmseg;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_shm_detach
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_shm_seg_t shmseg
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_shm_detach (xcb_connection_t *c /**< */,
|
||||
xcb_shm_seg_t shmseg /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_shm_id,
|
||||
/* opcode */ XCB_SHM_DETACH,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_shm_detach_request_t xcb_out;
|
||||
|
||||
xcb_out.shmseg = shmseg;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_shm_put_image_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_drawable_t drawable
|
||||
** @param xcb_gcontext_t gc
|
||||
** @param uint16_t total_width
|
||||
** @param uint16_t total_height
|
||||
** @param uint16_t src_x
|
||||
** @param uint16_t src_y
|
||||
** @param uint16_t src_width
|
||||
** @param uint16_t src_height
|
||||
** @param int16_t dst_x
|
||||
** @param int16_t dst_y
|
||||
** @param uint8_t depth
|
||||
** @param uint8_t format
|
||||
** @param uint8_t send_event
|
||||
** @param xcb_shm_seg_t shmseg
|
||||
** @param uint32_t offset
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_shm_put_image_checked (xcb_connection_t *c /**< */,
|
||||
xcb_drawable_t drawable /**< */,
|
||||
xcb_gcontext_t gc /**< */,
|
||||
uint16_t total_width /**< */,
|
||||
uint16_t total_height /**< */,
|
||||
uint16_t src_x /**< */,
|
||||
uint16_t src_y /**< */,
|
||||
uint16_t src_width /**< */,
|
||||
uint16_t src_height /**< */,
|
||||
int16_t dst_x /**< */,
|
||||
int16_t dst_y /**< */,
|
||||
uint8_t depth /**< */,
|
||||
uint8_t format /**< */,
|
||||
uint8_t send_event /**< */,
|
||||
xcb_shm_seg_t shmseg /**< */,
|
||||
uint32_t offset /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_shm_id,
|
||||
/* opcode */ XCB_SHM_PUT_IMAGE,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_shm_put_image_request_t xcb_out;
|
||||
|
||||
xcb_out.drawable = drawable;
|
||||
xcb_out.gc = gc;
|
||||
xcb_out.total_width = total_width;
|
||||
xcb_out.total_height = total_height;
|
||||
xcb_out.src_x = src_x;
|
||||
xcb_out.src_y = src_y;
|
||||
xcb_out.src_width = src_width;
|
||||
xcb_out.src_height = src_height;
|
||||
xcb_out.dst_x = dst_x;
|
||||
xcb_out.dst_y = dst_y;
|
||||
xcb_out.depth = depth;
|
||||
xcb_out.format = format;
|
||||
xcb_out.send_event = send_event;
|
||||
xcb_out.pad0 = 0;
|
||||
xcb_out.shmseg = shmseg;
|
||||
xcb_out.offset = offset;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_shm_put_image
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_drawable_t drawable
|
||||
** @param xcb_gcontext_t gc
|
||||
** @param uint16_t total_width
|
||||
** @param uint16_t total_height
|
||||
** @param uint16_t src_x
|
||||
** @param uint16_t src_y
|
||||
** @param uint16_t src_width
|
||||
** @param uint16_t src_height
|
||||
** @param int16_t dst_x
|
||||
** @param int16_t dst_y
|
||||
** @param uint8_t depth
|
||||
** @param uint8_t format
|
||||
** @param uint8_t send_event
|
||||
** @param xcb_shm_seg_t shmseg
|
||||
** @param uint32_t offset
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_shm_put_image (xcb_connection_t *c /**< */,
|
||||
xcb_drawable_t drawable /**< */,
|
||||
xcb_gcontext_t gc /**< */,
|
||||
uint16_t total_width /**< */,
|
||||
uint16_t total_height /**< */,
|
||||
uint16_t src_x /**< */,
|
||||
uint16_t src_y /**< */,
|
||||
uint16_t src_width /**< */,
|
||||
uint16_t src_height /**< */,
|
||||
int16_t dst_x /**< */,
|
||||
int16_t dst_y /**< */,
|
||||
uint8_t depth /**< */,
|
||||
uint8_t format /**< */,
|
||||
uint8_t send_event /**< */,
|
||||
xcb_shm_seg_t shmseg /**< */,
|
||||
uint32_t offset /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_shm_id,
|
||||
/* opcode */ XCB_SHM_PUT_IMAGE,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_shm_put_image_request_t xcb_out;
|
||||
|
||||
xcb_out.drawable = drawable;
|
||||
xcb_out.gc = gc;
|
||||
xcb_out.total_width = total_width;
|
||||
xcb_out.total_height = total_height;
|
||||
xcb_out.src_x = src_x;
|
||||
xcb_out.src_y = src_y;
|
||||
xcb_out.src_width = src_width;
|
||||
xcb_out.src_height = src_height;
|
||||
xcb_out.dst_x = dst_x;
|
||||
xcb_out.dst_y = dst_y;
|
||||
xcb_out.depth = depth;
|
||||
xcb_out.format = format;
|
||||
xcb_out.send_event = send_event;
|
||||
xcb_out.pad0 = 0;
|
||||
xcb_out.shmseg = shmseg;
|
||||
xcb_out.offset = offset;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_shm_get_image_cookie_t xcb_shm_get_image
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_drawable_t drawable
|
||||
** @param int16_t x
|
||||
** @param int16_t y
|
||||
** @param uint16_t width
|
||||
** @param uint16_t height
|
||||
** @param uint32_t plane_mask
|
||||
** @param uint8_t format
|
||||
** @param xcb_shm_seg_t shmseg
|
||||
** @param uint32_t offset
|
||||
** @returns xcb_shm_get_image_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_shm_get_image_cookie_t
|
||||
xcb_shm_get_image (xcb_connection_t *c /**< */,
|
||||
xcb_drawable_t drawable /**< */,
|
||||
int16_t x /**< */,
|
||||
int16_t y /**< */,
|
||||
uint16_t width /**< */,
|
||||
uint16_t height /**< */,
|
||||
uint32_t plane_mask /**< */,
|
||||
uint8_t format /**< */,
|
||||
xcb_shm_seg_t shmseg /**< */,
|
||||
uint32_t offset /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_shm_id,
|
||||
/* opcode */ XCB_SHM_GET_IMAGE,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_shm_get_image_cookie_t xcb_ret;
|
||||
xcb_shm_get_image_request_t xcb_out;
|
||||
|
||||
xcb_out.drawable = drawable;
|
||||
xcb_out.x = x;
|
||||
xcb_out.y = y;
|
||||
xcb_out.width = width;
|
||||
xcb_out.height = height;
|
||||
xcb_out.plane_mask = plane_mask;
|
||||
xcb_out.format = format;
|
||||
memset(xcb_out.pad0, 0, 3);
|
||||
xcb_out.shmseg = shmseg;
|
||||
xcb_out.offset = offset;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_shm_get_image_cookie_t xcb_shm_get_image_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_drawable_t drawable
|
||||
** @param int16_t x
|
||||
** @param int16_t y
|
||||
** @param uint16_t width
|
||||
** @param uint16_t height
|
||||
** @param uint32_t plane_mask
|
||||
** @param uint8_t format
|
||||
** @param xcb_shm_seg_t shmseg
|
||||
** @param uint32_t offset
|
||||
** @returns xcb_shm_get_image_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_shm_get_image_cookie_t
|
||||
xcb_shm_get_image_unchecked (xcb_connection_t *c /**< */,
|
||||
xcb_drawable_t drawable /**< */,
|
||||
int16_t x /**< */,
|
||||
int16_t y /**< */,
|
||||
uint16_t width /**< */,
|
||||
uint16_t height /**< */,
|
||||
uint32_t plane_mask /**< */,
|
||||
uint8_t format /**< */,
|
||||
xcb_shm_seg_t shmseg /**< */,
|
||||
uint32_t offset /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_shm_id,
|
||||
/* opcode */ XCB_SHM_GET_IMAGE,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_shm_get_image_cookie_t xcb_ret;
|
||||
xcb_shm_get_image_request_t xcb_out;
|
||||
|
||||
xcb_out.drawable = drawable;
|
||||
xcb_out.x = x;
|
||||
xcb_out.y = y;
|
||||
xcb_out.width = width;
|
||||
xcb_out.height = height;
|
||||
xcb_out.plane_mask = plane_mask;
|
||||
xcb_out.format = format;
|
||||
memset(xcb_out.pad0, 0, 3);
|
||||
xcb_out.shmseg = shmseg;
|
||||
xcb_out.offset = offset;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_shm_get_image_reply_t * xcb_shm_get_image_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_shm_get_image_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_shm_get_image_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_shm_get_image_reply_t *
|
||||
xcb_shm_get_image_reply (xcb_connection_t *c /**< */,
|
||||
xcb_shm_get_image_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */)
|
||||
{
|
||||
return (xcb_shm_get_image_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_shm_create_pixmap_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_pixmap_t pid
|
||||
** @param xcb_drawable_t drawable
|
||||
** @param uint16_t width
|
||||
** @param uint16_t height
|
||||
** @param uint8_t depth
|
||||
** @param xcb_shm_seg_t shmseg
|
||||
** @param uint32_t offset
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_shm_create_pixmap_checked (xcb_connection_t *c /**< */,
|
||||
xcb_pixmap_t pid /**< */,
|
||||
xcb_drawable_t drawable /**< */,
|
||||
uint16_t width /**< */,
|
||||
uint16_t height /**< */,
|
||||
uint8_t depth /**< */,
|
||||
xcb_shm_seg_t shmseg /**< */,
|
||||
uint32_t offset /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_shm_id,
|
||||
/* opcode */ XCB_SHM_CREATE_PIXMAP,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_shm_create_pixmap_request_t xcb_out;
|
||||
|
||||
xcb_out.pid = pid;
|
||||
xcb_out.drawable = drawable;
|
||||
xcb_out.width = width;
|
||||
xcb_out.height = height;
|
||||
xcb_out.depth = depth;
|
||||
memset(xcb_out.pad0, 0, 3);
|
||||
xcb_out.shmseg = shmseg;
|
||||
xcb_out.offset = offset;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_shm_create_pixmap
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_pixmap_t pid
|
||||
** @param xcb_drawable_t drawable
|
||||
** @param uint16_t width
|
||||
** @param uint16_t height
|
||||
** @param uint8_t depth
|
||||
** @param xcb_shm_seg_t shmseg
|
||||
** @param uint32_t offset
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_shm_create_pixmap (xcb_connection_t *c /**< */,
|
||||
xcb_pixmap_t pid /**< */,
|
||||
xcb_drawable_t drawable /**< */,
|
||||
uint16_t width /**< */,
|
||||
uint16_t height /**< */,
|
||||
uint8_t depth /**< */,
|
||||
xcb_shm_seg_t shmseg /**< */,
|
||||
uint32_t offset /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_shm_id,
|
||||
/* opcode */ XCB_SHM_CREATE_PIXMAP,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_shm_create_pixmap_request_t xcb_out;
|
||||
|
||||
xcb_out.pid = pid;
|
||||
xcb_out.drawable = drawable;
|
||||
xcb_out.width = width;
|
||||
xcb_out.height = height;
|
||||
xcb_out.depth = depth;
|
||||
memset(xcb_out.pad0, 0, 3);
|
||||
xcb_out.shmseg = shmseg;
|
||||
xcb_out.offset = offset;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
738
external/mit/xorg/lib/libxcb/files/shm.h
vendored
Normal file
738
external/mit/xorg/lib/libxcb/files/shm.h
vendored
Normal file
@ -0,0 +1,738 @@
|
||||
/*
|
||||
* This file generated automatically from shm.xml by c_client.py.
|
||||
* Edit at your peril.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @defgroup XCB_Shm_API XCB Shm API
|
||||
* @brief Shm XCB Protocol Implementation.
|
||||
* @{
|
||||
**/
|
||||
|
||||
#ifndef __SHM_H
|
||||
#define __SHM_H
|
||||
|
||||
#include "xcb.h"
|
||||
#include "xproto.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define XCB_SHM_MAJOR_VERSION 1
|
||||
#define XCB_SHM_MINOR_VERSION 1
|
||||
|
||||
extern xcb_extension_t xcb_shm_id;
|
||||
|
||||
typedef uint32_t xcb_shm_seg_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_shm_seg_iterator_t
|
||||
**/
|
||||
typedef struct xcb_shm_seg_iterator_t {
|
||||
xcb_shm_seg_t *data; /**< */
|
||||
int rem; /**< */
|
||||
int index; /**< */
|
||||
} xcb_shm_seg_iterator_t;
|
||||
|
||||
/** Opcode for xcb_shm_completion. */
|
||||
#define XCB_SHM_COMPLETION 0
|
||||
|
||||
/**
|
||||
* @brief xcb_shm_completion_event_t
|
||||
**/
|
||||
typedef struct xcb_shm_completion_event_t {
|
||||
uint8_t response_type; /**< */
|
||||
uint8_t pad0; /**< */
|
||||
uint16_t sequence; /**< */
|
||||
xcb_drawable_t drawable; /**< */
|
||||
uint16_t minor_event; /**< */
|
||||
uint8_t major_event; /**< */
|
||||
uint8_t pad1; /**< */
|
||||
xcb_shm_seg_t shmseg; /**< */
|
||||
uint32_t offset; /**< */
|
||||
} xcb_shm_completion_event_t;
|
||||
|
||||
/** Opcode for xcb_shm_bad_seg. */
|
||||
#define XCB_SHM_BAD_SEG 0
|
||||
|
||||
typedef xcb_value_error_t xcb_shm_bad_seg_error_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_shm_query_version_cookie_t
|
||||
**/
|
||||
typedef struct xcb_shm_query_version_cookie_t {
|
||||
unsigned int sequence; /**< */
|
||||
} xcb_shm_query_version_cookie_t;
|
||||
|
||||
/** Opcode for xcb_shm_query_version. */
|
||||
#define XCB_SHM_QUERY_VERSION 0
|
||||
|
||||
/**
|
||||
* @brief xcb_shm_query_version_request_t
|
||||
**/
|
||||
typedef struct xcb_shm_query_version_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
} xcb_shm_query_version_request_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_shm_query_version_reply_t
|
||||
**/
|
||||
typedef struct xcb_shm_query_version_reply_t {
|
||||
uint8_t response_type; /**< */
|
||||
uint8_t shared_pixmaps; /**< */
|
||||
uint16_t sequence; /**< */
|
||||
uint32_t length; /**< */
|
||||
uint16_t major_version; /**< */
|
||||
uint16_t minor_version; /**< */
|
||||
uint16_t uid; /**< */
|
||||
uint16_t gid; /**< */
|
||||
uint8_t pixmap_format; /**< */
|
||||
uint8_t pad0[15]; /**< */
|
||||
} xcb_shm_query_version_reply_t;
|
||||
|
||||
/** Opcode for xcb_shm_attach. */
|
||||
#define XCB_SHM_ATTACH 1
|
||||
|
||||
/**
|
||||
* @brief xcb_shm_attach_request_t
|
||||
**/
|
||||
typedef struct xcb_shm_attach_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
xcb_shm_seg_t shmseg; /**< */
|
||||
uint32_t shmid; /**< */
|
||||
uint8_t read_only; /**< */
|
||||
uint8_t pad0[3]; /**< */
|
||||
} xcb_shm_attach_request_t;
|
||||
|
||||
/** Opcode for xcb_shm_detach. */
|
||||
#define XCB_SHM_DETACH 2
|
||||
|
||||
/**
|
||||
* @brief xcb_shm_detach_request_t
|
||||
**/
|
||||
typedef struct xcb_shm_detach_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
xcb_shm_seg_t shmseg; /**< */
|
||||
} xcb_shm_detach_request_t;
|
||||
|
||||
/** Opcode for xcb_shm_put_image. */
|
||||
#define XCB_SHM_PUT_IMAGE 3
|
||||
|
||||
/**
|
||||
* @brief xcb_shm_put_image_request_t
|
||||
**/
|
||||
typedef struct xcb_shm_put_image_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
xcb_drawable_t drawable; /**< */
|
||||
xcb_gcontext_t gc; /**< */
|
||||
uint16_t total_width; /**< */
|
||||
uint16_t total_height; /**< */
|
||||
uint16_t src_x; /**< */
|
||||
uint16_t src_y; /**< */
|
||||
uint16_t src_width; /**< */
|
||||
uint16_t src_height; /**< */
|
||||
int16_t dst_x; /**< */
|
||||
int16_t dst_y; /**< */
|
||||
uint8_t depth; /**< */
|
||||
uint8_t format; /**< */
|
||||
uint8_t send_event; /**< */
|
||||
uint8_t pad0; /**< */
|
||||
xcb_shm_seg_t shmseg; /**< */
|
||||
uint32_t offset; /**< */
|
||||
} xcb_shm_put_image_request_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_shm_get_image_cookie_t
|
||||
**/
|
||||
typedef struct xcb_shm_get_image_cookie_t {
|
||||
unsigned int sequence; /**< */
|
||||
} xcb_shm_get_image_cookie_t;
|
||||
|
||||
/** Opcode for xcb_shm_get_image. */
|
||||
#define XCB_SHM_GET_IMAGE 4
|
||||
|
||||
/**
|
||||
* @brief xcb_shm_get_image_request_t
|
||||
**/
|
||||
typedef struct xcb_shm_get_image_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
xcb_drawable_t drawable; /**< */
|
||||
int16_t x; /**< */
|
||||
int16_t y; /**< */
|
||||
uint16_t width; /**< */
|
||||
uint16_t height; /**< */
|
||||
uint32_t plane_mask; /**< */
|
||||
uint8_t format; /**< */
|
||||
uint8_t pad0[3]; /**< */
|
||||
xcb_shm_seg_t shmseg; /**< */
|
||||
uint32_t offset; /**< */
|
||||
} xcb_shm_get_image_request_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_shm_get_image_reply_t
|
||||
**/
|
||||
typedef struct xcb_shm_get_image_reply_t {
|
||||
uint8_t response_type; /**< */
|
||||
uint8_t depth; /**< */
|
||||
uint16_t sequence; /**< */
|
||||
uint32_t length; /**< */
|
||||
xcb_visualid_t visual; /**< */
|
||||
uint32_t size; /**< */
|
||||
} xcb_shm_get_image_reply_t;
|
||||
|
||||
/** Opcode for xcb_shm_create_pixmap. */
|
||||
#define XCB_SHM_CREATE_PIXMAP 5
|
||||
|
||||
/**
|
||||
* @brief xcb_shm_create_pixmap_request_t
|
||||
**/
|
||||
typedef struct xcb_shm_create_pixmap_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
xcb_pixmap_t pid; /**< */
|
||||
xcb_drawable_t drawable; /**< */
|
||||
uint16_t width; /**< */
|
||||
uint16_t height; /**< */
|
||||
uint8_t depth; /**< */
|
||||
uint8_t pad0[3]; /**< */
|
||||
xcb_shm_seg_t shmseg; /**< */
|
||||
uint32_t offset; /**< */
|
||||
} xcb_shm_create_pixmap_request_t;
|
||||
|
||||
/**
|
||||
* Get the next element of the iterator
|
||||
* @param i Pointer to a xcb_shm_seg_iterator_t
|
||||
*
|
||||
* Get the next element in the iterator. The member rem is
|
||||
* decreased by one. The member data points to the next
|
||||
* element. The member index is increased by sizeof(xcb_shm_seg_t)
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** void xcb_shm_seg_next
|
||||
**
|
||||
** @param xcb_shm_seg_iterator_t *i
|
||||
** @returns void
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
void
|
||||
xcb_shm_seg_next (xcb_shm_seg_iterator_t *i /**< */);
|
||||
|
||||
/**
|
||||
* Return the iterator pointing to the last element
|
||||
* @param i An xcb_shm_seg_iterator_t
|
||||
* @return The iterator pointing to the last element
|
||||
*
|
||||
* Set the current element in the iterator to the last element.
|
||||
* The member rem is set to 0. The member data points to the
|
||||
* last element.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_generic_iterator_t xcb_shm_seg_end
|
||||
**
|
||||
** @param xcb_shm_seg_iterator_t i
|
||||
** @returns xcb_generic_iterator_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_generic_iterator_t
|
||||
xcb_shm_seg_end (xcb_shm_seg_iterator_t i /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_shm_query_version_cookie_t xcb_shm_query_version
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_shm_query_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_shm_query_version_cookie_t
|
||||
xcb_shm_query_version (xcb_connection_t *c /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* placed in the event queue.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_shm_query_version_cookie_t xcb_shm_query_version_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_shm_query_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_shm_query_version_cookie_t
|
||||
xcb_shm_query_version_unchecked (xcb_connection_t *c /**< */);
|
||||
|
||||
/**
|
||||
* Return the reply
|
||||
* @param c The connection
|
||||
* @param cookie The cookie
|
||||
* @param e The xcb_generic_error_t supplied
|
||||
*
|
||||
* Returns the reply of the request asked by
|
||||
*
|
||||
* The parameter @p e supplied to this function must be NULL if
|
||||
* xcb_shm_query_version_unchecked(). is used.
|
||||
* Otherwise, it stores the error if any.
|
||||
*
|
||||
* The returned value must be freed by the caller using free().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_shm_query_version_reply_t * xcb_shm_query_version_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_shm_query_version_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_shm_query_version_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_shm_query_version_reply_t *
|
||||
xcb_shm_query_version_reply (xcb_connection_t *c /**< */,
|
||||
xcb_shm_query_version_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will not cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* saved for handling by xcb_request_check().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_shm_attach_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_shm_seg_t shmseg
|
||||
** @param uint32_t shmid
|
||||
** @param uint8_t read_only
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_shm_attach_checked (xcb_connection_t *c /**< */,
|
||||
xcb_shm_seg_t shmseg /**< */,
|
||||
uint32_t shmid /**< */,
|
||||
uint8_t read_only /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_shm_attach
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_shm_seg_t shmseg
|
||||
** @param uint32_t shmid
|
||||
** @param uint8_t read_only
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_shm_attach (xcb_connection_t *c /**< */,
|
||||
xcb_shm_seg_t shmseg /**< */,
|
||||
uint32_t shmid /**< */,
|
||||
uint8_t read_only /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will not cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* saved for handling by xcb_request_check().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_shm_detach_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_shm_seg_t shmseg
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_shm_detach_checked (xcb_connection_t *c /**< */,
|
||||
xcb_shm_seg_t shmseg /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_shm_detach
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_shm_seg_t shmseg
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_shm_detach (xcb_connection_t *c /**< */,
|
||||
xcb_shm_seg_t shmseg /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will not cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* saved for handling by xcb_request_check().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_shm_put_image_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_drawable_t drawable
|
||||
** @param xcb_gcontext_t gc
|
||||
** @param uint16_t total_width
|
||||
** @param uint16_t total_height
|
||||
** @param uint16_t src_x
|
||||
** @param uint16_t src_y
|
||||
** @param uint16_t src_width
|
||||
** @param uint16_t src_height
|
||||
** @param int16_t dst_x
|
||||
** @param int16_t dst_y
|
||||
** @param uint8_t depth
|
||||
** @param uint8_t format
|
||||
** @param uint8_t send_event
|
||||
** @param xcb_shm_seg_t shmseg
|
||||
** @param uint32_t offset
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_shm_put_image_checked (xcb_connection_t *c /**< */,
|
||||
xcb_drawable_t drawable /**< */,
|
||||
xcb_gcontext_t gc /**< */,
|
||||
uint16_t total_width /**< */,
|
||||
uint16_t total_height /**< */,
|
||||
uint16_t src_x /**< */,
|
||||
uint16_t src_y /**< */,
|
||||
uint16_t src_width /**< */,
|
||||
uint16_t src_height /**< */,
|
||||
int16_t dst_x /**< */,
|
||||
int16_t dst_y /**< */,
|
||||
uint8_t depth /**< */,
|
||||
uint8_t format /**< */,
|
||||
uint8_t send_event /**< */,
|
||||
xcb_shm_seg_t shmseg /**< */,
|
||||
uint32_t offset /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_shm_put_image
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_drawable_t drawable
|
||||
** @param xcb_gcontext_t gc
|
||||
** @param uint16_t total_width
|
||||
** @param uint16_t total_height
|
||||
** @param uint16_t src_x
|
||||
** @param uint16_t src_y
|
||||
** @param uint16_t src_width
|
||||
** @param uint16_t src_height
|
||||
** @param int16_t dst_x
|
||||
** @param int16_t dst_y
|
||||
** @param uint8_t depth
|
||||
** @param uint8_t format
|
||||
** @param uint8_t send_event
|
||||
** @param xcb_shm_seg_t shmseg
|
||||
** @param uint32_t offset
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_shm_put_image (xcb_connection_t *c /**< */,
|
||||
xcb_drawable_t drawable /**< */,
|
||||
xcb_gcontext_t gc /**< */,
|
||||
uint16_t total_width /**< */,
|
||||
uint16_t total_height /**< */,
|
||||
uint16_t src_x /**< */,
|
||||
uint16_t src_y /**< */,
|
||||
uint16_t src_width /**< */,
|
||||
uint16_t src_height /**< */,
|
||||
int16_t dst_x /**< */,
|
||||
int16_t dst_y /**< */,
|
||||
uint8_t depth /**< */,
|
||||
uint8_t format /**< */,
|
||||
uint8_t send_event /**< */,
|
||||
xcb_shm_seg_t shmseg /**< */,
|
||||
uint32_t offset /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_shm_get_image_cookie_t xcb_shm_get_image
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_drawable_t drawable
|
||||
** @param int16_t x
|
||||
** @param int16_t y
|
||||
** @param uint16_t width
|
||||
** @param uint16_t height
|
||||
** @param uint32_t plane_mask
|
||||
** @param uint8_t format
|
||||
** @param xcb_shm_seg_t shmseg
|
||||
** @param uint32_t offset
|
||||
** @returns xcb_shm_get_image_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_shm_get_image_cookie_t
|
||||
xcb_shm_get_image (xcb_connection_t *c /**< */,
|
||||
xcb_drawable_t drawable /**< */,
|
||||
int16_t x /**< */,
|
||||
int16_t y /**< */,
|
||||
uint16_t width /**< */,
|
||||
uint16_t height /**< */,
|
||||
uint32_t plane_mask /**< */,
|
||||
uint8_t format /**< */,
|
||||
xcb_shm_seg_t shmseg /**< */,
|
||||
uint32_t offset /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* placed in the event queue.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_shm_get_image_cookie_t xcb_shm_get_image_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_drawable_t drawable
|
||||
** @param int16_t x
|
||||
** @param int16_t y
|
||||
** @param uint16_t width
|
||||
** @param uint16_t height
|
||||
** @param uint32_t plane_mask
|
||||
** @param uint8_t format
|
||||
** @param xcb_shm_seg_t shmseg
|
||||
** @param uint32_t offset
|
||||
** @returns xcb_shm_get_image_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_shm_get_image_cookie_t
|
||||
xcb_shm_get_image_unchecked (xcb_connection_t *c /**< */,
|
||||
xcb_drawable_t drawable /**< */,
|
||||
int16_t x /**< */,
|
||||
int16_t y /**< */,
|
||||
uint16_t width /**< */,
|
||||
uint16_t height /**< */,
|
||||
uint32_t plane_mask /**< */,
|
||||
uint8_t format /**< */,
|
||||
xcb_shm_seg_t shmseg /**< */,
|
||||
uint32_t offset /**< */);
|
||||
|
||||
/**
|
||||
* Return the reply
|
||||
* @param c The connection
|
||||
* @param cookie The cookie
|
||||
* @param e The xcb_generic_error_t supplied
|
||||
*
|
||||
* Returns the reply of the request asked by
|
||||
*
|
||||
* The parameter @p e supplied to this function must be NULL if
|
||||
* xcb_shm_get_image_unchecked(). is used.
|
||||
* Otherwise, it stores the error if any.
|
||||
*
|
||||
* The returned value must be freed by the caller using free().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_shm_get_image_reply_t * xcb_shm_get_image_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_shm_get_image_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_shm_get_image_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_shm_get_image_reply_t *
|
||||
xcb_shm_get_image_reply (xcb_connection_t *c /**< */,
|
||||
xcb_shm_get_image_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will not cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* saved for handling by xcb_request_check().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_shm_create_pixmap_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_pixmap_t pid
|
||||
** @param xcb_drawable_t drawable
|
||||
** @param uint16_t width
|
||||
** @param uint16_t height
|
||||
** @param uint8_t depth
|
||||
** @param xcb_shm_seg_t shmseg
|
||||
** @param uint32_t offset
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_shm_create_pixmap_checked (xcb_connection_t *c /**< */,
|
||||
xcb_pixmap_t pid /**< */,
|
||||
xcb_drawable_t drawable /**< */,
|
||||
uint16_t width /**< */,
|
||||
uint16_t height /**< */,
|
||||
uint8_t depth /**< */,
|
||||
xcb_shm_seg_t shmseg /**< */,
|
||||
uint32_t offset /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_shm_create_pixmap
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_pixmap_t pid
|
||||
** @param xcb_drawable_t drawable
|
||||
** @param uint16_t width
|
||||
** @param uint16_t height
|
||||
** @param uint8_t depth
|
||||
** @param xcb_shm_seg_t shmseg
|
||||
** @param uint32_t offset
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_shm_create_pixmap (xcb_connection_t *c /**< */,
|
||||
xcb_pixmap_t pid /**< */,
|
||||
xcb_drawable_t drawable /**< */,
|
||||
uint16_t width /**< */,
|
||||
uint16_t height /**< */,
|
||||
uint8_t depth /**< */,
|
||||
xcb_shm_seg_t shmseg /**< */,
|
||||
uint32_t offset /**< */);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
1511
external/mit/xorg/lib/libxcb/files/sync.c
vendored
Normal file
1511
external/mit/xorg/lib/libxcb/files/sync.c
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1707
external/mit/xorg/lib/libxcb/files/sync.h
vendored
Normal file
1707
external/mit/xorg/lib/libxcb/files/sync.h
vendored
Normal file
File diff suppressed because it is too large
Load Diff
340
external/mit/xorg/lib/libxcb/files/xc_misc.c
vendored
Normal file
340
external/mit/xorg/lib/libxcb/files/xc_misc.c
vendored
Normal file
@ -0,0 +1,340 @@
|
||||
/*
|
||||
* This file generated automatically from xc_misc.xml by c_client.py.
|
||||
* Edit at your peril.
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#include "xcbext.h"
|
||||
#include "xc_misc.h"
|
||||
|
||||
xcb_extension_t xcb_xc_misc_id = { "XC-MISC", 0 };
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xc_misc_get_version_cookie_t xcb_xc_misc_get_version
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint16_t client_major_version
|
||||
** @param uint16_t client_minor_version
|
||||
** @returns xcb_xc_misc_get_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xc_misc_get_version_cookie_t
|
||||
xcb_xc_misc_get_version (xcb_connection_t *c /**< */,
|
||||
uint16_t client_major_version /**< */,
|
||||
uint16_t client_minor_version /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_xc_misc_id,
|
||||
/* opcode */ XCB_XC_MISC_GET_VERSION,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_xc_misc_get_version_cookie_t xcb_ret;
|
||||
xcb_xc_misc_get_version_request_t xcb_out;
|
||||
|
||||
xcb_out.client_major_version = client_major_version;
|
||||
xcb_out.client_minor_version = client_minor_version;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xc_misc_get_version_cookie_t xcb_xc_misc_get_version_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint16_t client_major_version
|
||||
** @param uint16_t client_minor_version
|
||||
** @returns xcb_xc_misc_get_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xc_misc_get_version_cookie_t
|
||||
xcb_xc_misc_get_version_unchecked (xcb_connection_t *c /**< */,
|
||||
uint16_t client_major_version /**< */,
|
||||
uint16_t client_minor_version /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_xc_misc_id,
|
||||
/* opcode */ XCB_XC_MISC_GET_VERSION,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_xc_misc_get_version_cookie_t xcb_ret;
|
||||
xcb_xc_misc_get_version_request_t xcb_out;
|
||||
|
||||
xcb_out.client_major_version = client_major_version;
|
||||
xcb_out.client_minor_version = client_minor_version;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xc_misc_get_version_reply_t * xcb_xc_misc_get_version_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_xc_misc_get_version_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_xc_misc_get_version_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xc_misc_get_version_reply_t *
|
||||
xcb_xc_misc_get_version_reply (xcb_connection_t *c /**< */,
|
||||
xcb_xc_misc_get_version_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */)
|
||||
{
|
||||
return (xcb_xc_misc_get_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xc_misc_get_xid_range_cookie_t xcb_xc_misc_get_xid_range
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_xc_misc_get_xid_range_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xc_misc_get_xid_range_cookie_t
|
||||
xcb_xc_misc_get_xid_range (xcb_connection_t *c /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_xc_misc_id,
|
||||
/* opcode */ XCB_XC_MISC_GET_XID_RANGE,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_xc_misc_get_xid_range_cookie_t xcb_ret;
|
||||
xcb_xc_misc_get_xid_range_request_t xcb_out;
|
||||
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xc_misc_get_xid_range_cookie_t xcb_xc_misc_get_xid_range_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_xc_misc_get_xid_range_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xc_misc_get_xid_range_cookie_t
|
||||
xcb_xc_misc_get_xid_range_unchecked (xcb_connection_t *c /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_xc_misc_id,
|
||||
/* opcode */ XCB_XC_MISC_GET_XID_RANGE,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_xc_misc_get_xid_range_cookie_t xcb_ret;
|
||||
xcb_xc_misc_get_xid_range_request_t xcb_out;
|
||||
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xc_misc_get_xid_range_reply_t * xcb_xc_misc_get_xid_range_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_xc_misc_get_xid_range_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_xc_misc_get_xid_range_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xc_misc_get_xid_range_reply_t *
|
||||
xcb_xc_misc_get_xid_range_reply (xcb_connection_t *c /**< */,
|
||||
xcb_xc_misc_get_xid_range_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */)
|
||||
{
|
||||
return (xcb_xc_misc_get_xid_range_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xc_misc_get_xid_list_cookie_t xcb_xc_misc_get_xid_list
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint32_t count
|
||||
** @returns xcb_xc_misc_get_xid_list_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xc_misc_get_xid_list_cookie_t
|
||||
xcb_xc_misc_get_xid_list (xcb_connection_t *c /**< */,
|
||||
uint32_t count /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_xc_misc_id,
|
||||
/* opcode */ XCB_XC_MISC_GET_XID_LIST,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_xc_misc_get_xid_list_cookie_t xcb_ret;
|
||||
xcb_xc_misc_get_xid_list_request_t xcb_out;
|
||||
|
||||
xcb_out.count = count;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xc_misc_get_xid_list_cookie_t xcb_xc_misc_get_xid_list_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint32_t count
|
||||
** @returns xcb_xc_misc_get_xid_list_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xc_misc_get_xid_list_cookie_t
|
||||
xcb_xc_misc_get_xid_list_unchecked (xcb_connection_t *c /**< */,
|
||||
uint32_t count /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_xc_misc_id,
|
||||
/* opcode */ XCB_XC_MISC_GET_XID_LIST,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_xc_misc_get_xid_list_cookie_t xcb_ret;
|
||||
xcb_xc_misc_get_xid_list_request_t xcb_out;
|
||||
|
||||
xcb_out.count = count;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** uint32_t * xcb_xc_misc_get_xid_list_ids
|
||||
**
|
||||
** @param const xcb_xc_misc_get_xid_list_reply_t *R
|
||||
** @returns uint32_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
uint32_t *
|
||||
xcb_xc_misc_get_xid_list_ids (const xcb_xc_misc_get_xid_list_reply_t *R /**< */)
|
||||
{
|
||||
return (uint32_t *) (R + 1);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** int xcb_xc_misc_get_xid_list_ids_length
|
||||
**
|
||||
** @param const xcb_xc_misc_get_xid_list_reply_t *R
|
||||
** @returns int
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
int
|
||||
xcb_xc_misc_get_xid_list_ids_length (const xcb_xc_misc_get_xid_list_reply_t *R /**< */)
|
||||
{
|
||||
return R->ids_len;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_generic_iterator_t xcb_xc_misc_get_xid_list_ids_end
|
||||
**
|
||||
** @param const xcb_xc_misc_get_xid_list_reply_t *R
|
||||
** @returns xcb_generic_iterator_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_generic_iterator_t
|
||||
xcb_xc_misc_get_xid_list_ids_end (const xcb_xc_misc_get_xid_list_reply_t *R /**< */)
|
||||
{
|
||||
xcb_generic_iterator_t i;
|
||||
i.data = ((uint32_t *) (R + 1)) + (R->ids_len);
|
||||
i.rem = 0;
|
||||
i.index = (char *) i.data - (char *) R;
|
||||
return i;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xc_misc_get_xid_list_reply_t * xcb_xc_misc_get_xid_list_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_xc_misc_get_xid_list_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_xc_misc_get_xid_list_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xc_misc_get_xid_list_reply_t *
|
||||
xcb_xc_misc_get_xid_list_reply (xcb_connection_t *c /**< */,
|
||||
xcb_xc_misc_get_xid_list_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */)
|
||||
{
|
||||
return (xcb_xc_misc_get_xid_list_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
|
||||
}
|
||||
|
410
external/mit/xorg/lib/libxcb/files/xc_misc.h
vendored
Normal file
410
external/mit/xorg/lib/libxcb/files/xc_misc.h
vendored
Normal file
@ -0,0 +1,410 @@
|
||||
/*
|
||||
* This file generated automatically from xc_misc.xml by c_client.py.
|
||||
* Edit at your peril.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @defgroup XCB_XCMisc_API XCB XCMisc API
|
||||
* @brief XCMisc XCB Protocol Implementation.
|
||||
* @{
|
||||
**/
|
||||
|
||||
#ifndef __XC_MISC_H
|
||||
#define __XC_MISC_H
|
||||
|
||||
#include "xcb.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define XCB_XCMISC_MAJOR_VERSION 1
|
||||
#define XCB_XCMISC_MINOR_VERSION 1
|
||||
|
||||
extern xcb_extension_t xcb_xc_misc_id;
|
||||
|
||||
/**
|
||||
* @brief xcb_xc_misc_get_version_cookie_t
|
||||
**/
|
||||
typedef struct xcb_xc_misc_get_version_cookie_t {
|
||||
unsigned int sequence; /**< */
|
||||
} xcb_xc_misc_get_version_cookie_t;
|
||||
|
||||
/** Opcode for xcb_xc_misc_get_version. */
|
||||
#define XCB_XC_MISC_GET_VERSION 0
|
||||
|
||||
/**
|
||||
* @brief xcb_xc_misc_get_version_request_t
|
||||
**/
|
||||
typedef struct xcb_xc_misc_get_version_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
uint16_t client_major_version; /**< */
|
||||
uint16_t client_minor_version; /**< */
|
||||
} xcb_xc_misc_get_version_request_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_xc_misc_get_version_reply_t
|
||||
**/
|
||||
typedef struct xcb_xc_misc_get_version_reply_t {
|
||||
uint8_t response_type; /**< */
|
||||
uint8_t pad0; /**< */
|
||||
uint16_t sequence; /**< */
|
||||
uint32_t length; /**< */
|
||||
uint16_t server_major_version; /**< */
|
||||
uint16_t server_minor_version; /**< */
|
||||
} xcb_xc_misc_get_version_reply_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_xc_misc_get_xid_range_cookie_t
|
||||
**/
|
||||
typedef struct xcb_xc_misc_get_xid_range_cookie_t {
|
||||
unsigned int sequence; /**< */
|
||||
} xcb_xc_misc_get_xid_range_cookie_t;
|
||||
|
||||
/** Opcode for xcb_xc_misc_get_xid_range. */
|
||||
#define XCB_XC_MISC_GET_XID_RANGE 1
|
||||
|
||||
/**
|
||||
* @brief xcb_xc_misc_get_xid_range_request_t
|
||||
**/
|
||||
typedef struct xcb_xc_misc_get_xid_range_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
} xcb_xc_misc_get_xid_range_request_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_xc_misc_get_xid_range_reply_t
|
||||
**/
|
||||
typedef struct xcb_xc_misc_get_xid_range_reply_t {
|
||||
uint8_t response_type; /**< */
|
||||
uint8_t pad0; /**< */
|
||||
uint16_t sequence; /**< */
|
||||
uint32_t length; /**< */
|
||||
uint32_t start_id; /**< */
|
||||
uint32_t count; /**< */
|
||||
} xcb_xc_misc_get_xid_range_reply_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_xc_misc_get_xid_list_cookie_t
|
||||
**/
|
||||
typedef struct xcb_xc_misc_get_xid_list_cookie_t {
|
||||
unsigned int sequence; /**< */
|
||||
} xcb_xc_misc_get_xid_list_cookie_t;
|
||||
|
||||
/** Opcode for xcb_xc_misc_get_xid_list. */
|
||||
#define XCB_XC_MISC_GET_XID_LIST 2
|
||||
|
||||
/**
|
||||
* @brief xcb_xc_misc_get_xid_list_request_t
|
||||
**/
|
||||
typedef struct xcb_xc_misc_get_xid_list_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
uint32_t count; /**< */
|
||||
} xcb_xc_misc_get_xid_list_request_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_xc_misc_get_xid_list_reply_t
|
||||
**/
|
||||
typedef struct xcb_xc_misc_get_xid_list_reply_t {
|
||||
uint8_t response_type; /**< */
|
||||
uint8_t pad0; /**< */
|
||||
uint16_t sequence; /**< */
|
||||
uint32_t length; /**< */
|
||||
uint32_t ids_len; /**< */
|
||||
uint8_t pad1[20]; /**< */
|
||||
} xcb_xc_misc_get_xid_list_reply_t;
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xc_misc_get_version_cookie_t xcb_xc_misc_get_version
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint16_t client_major_version
|
||||
** @param uint16_t client_minor_version
|
||||
** @returns xcb_xc_misc_get_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xc_misc_get_version_cookie_t
|
||||
xcb_xc_misc_get_version (xcb_connection_t *c /**< */,
|
||||
uint16_t client_major_version /**< */,
|
||||
uint16_t client_minor_version /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* placed in the event queue.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xc_misc_get_version_cookie_t xcb_xc_misc_get_version_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint16_t client_major_version
|
||||
** @param uint16_t client_minor_version
|
||||
** @returns xcb_xc_misc_get_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xc_misc_get_version_cookie_t
|
||||
xcb_xc_misc_get_version_unchecked (xcb_connection_t *c /**< */,
|
||||
uint16_t client_major_version /**< */,
|
||||
uint16_t client_minor_version /**< */);
|
||||
|
||||
/**
|
||||
* Return the reply
|
||||
* @param c The connection
|
||||
* @param cookie The cookie
|
||||
* @param e The xcb_generic_error_t supplied
|
||||
*
|
||||
* Returns the reply of the request asked by
|
||||
*
|
||||
* The parameter @p e supplied to this function must be NULL if
|
||||
* xcb_xc_misc_get_version_unchecked(). is used.
|
||||
* Otherwise, it stores the error if any.
|
||||
*
|
||||
* The returned value must be freed by the caller using free().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xc_misc_get_version_reply_t * xcb_xc_misc_get_version_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_xc_misc_get_version_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_xc_misc_get_version_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xc_misc_get_version_reply_t *
|
||||
xcb_xc_misc_get_version_reply (xcb_connection_t *c /**< */,
|
||||
xcb_xc_misc_get_version_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xc_misc_get_xid_range_cookie_t xcb_xc_misc_get_xid_range
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_xc_misc_get_xid_range_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xc_misc_get_xid_range_cookie_t
|
||||
xcb_xc_misc_get_xid_range (xcb_connection_t *c /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* placed in the event queue.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xc_misc_get_xid_range_cookie_t xcb_xc_misc_get_xid_range_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_xc_misc_get_xid_range_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xc_misc_get_xid_range_cookie_t
|
||||
xcb_xc_misc_get_xid_range_unchecked (xcb_connection_t *c /**< */);
|
||||
|
||||
/**
|
||||
* Return the reply
|
||||
* @param c The connection
|
||||
* @param cookie The cookie
|
||||
* @param e The xcb_generic_error_t supplied
|
||||
*
|
||||
* Returns the reply of the request asked by
|
||||
*
|
||||
* The parameter @p e supplied to this function must be NULL if
|
||||
* xcb_xc_misc_get_xid_range_unchecked(). is used.
|
||||
* Otherwise, it stores the error if any.
|
||||
*
|
||||
* The returned value must be freed by the caller using free().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xc_misc_get_xid_range_reply_t * xcb_xc_misc_get_xid_range_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_xc_misc_get_xid_range_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_xc_misc_get_xid_range_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xc_misc_get_xid_range_reply_t *
|
||||
xcb_xc_misc_get_xid_range_reply (xcb_connection_t *c /**< */,
|
||||
xcb_xc_misc_get_xid_range_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xc_misc_get_xid_list_cookie_t xcb_xc_misc_get_xid_list
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint32_t count
|
||||
** @returns xcb_xc_misc_get_xid_list_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xc_misc_get_xid_list_cookie_t
|
||||
xcb_xc_misc_get_xid_list (xcb_connection_t *c /**< */,
|
||||
uint32_t count /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* placed in the event queue.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xc_misc_get_xid_list_cookie_t xcb_xc_misc_get_xid_list_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint32_t count
|
||||
** @returns xcb_xc_misc_get_xid_list_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xc_misc_get_xid_list_cookie_t
|
||||
xcb_xc_misc_get_xid_list_unchecked (xcb_connection_t *c /**< */,
|
||||
uint32_t count /**< */);
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** uint32_t * xcb_xc_misc_get_xid_list_ids
|
||||
**
|
||||
** @param const xcb_xc_misc_get_xid_list_reply_t *R
|
||||
** @returns uint32_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
uint32_t *
|
||||
xcb_xc_misc_get_xid_list_ids (const xcb_xc_misc_get_xid_list_reply_t *R /**< */);
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** int xcb_xc_misc_get_xid_list_ids_length
|
||||
**
|
||||
** @param const xcb_xc_misc_get_xid_list_reply_t *R
|
||||
** @returns int
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
int
|
||||
xcb_xc_misc_get_xid_list_ids_length (const xcb_xc_misc_get_xid_list_reply_t *R /**< */);
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_generic_iterator_t xcb_xc_misc_get_xid_list_ids_end
|
||||
**
|
||||
** @param const xcb_xc_misc_get_xid_list_reply_t *R
|
||||
** @returns xcb_generic_iterator_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_generic_iterator_t
|
||||
xcb_xc_misc_get_xid_list_ids_end (const xcb_xc_misc_get_xid_list_reply_t *R /**< */);
|
||||
|
||||
/**
|
||||
* Return the reply
|
||||
* @param c The connection
|
||||
* @param cookie The cookie
|
||||
* @param e The xcb_generic_error_t supplied
|
||||
*
|
||||
* Returns the reply of the request asked by
|
||||
*
|
||||
* The parameter @p e supplied to this function must be NULL if
|
||||
* xcb_xc_misc_get_xid_list_unchecked(). is used.
|
||||
* Otherwise, it stores the error if any.
|
||||
*
|
||||
* The returned value must be freed by the caller using free().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xc_misc_get_xid_list_reply_t * xcb_xc_misc_get_xid_list_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_xc_misc_get_xid_list_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_xc_misc_get_xid_list_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xc_misc_get_xid_list_reply_t *
|
||||
xcb_xc_misc_get_xid_list_reply (xcb_connection_t *c /**< */,
|
||||
xcb_xc_misc_get_xid_list_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
524
external/mit/xorg/lib/libxcb/files/xevie.c
vendored
Normal file
524
external/mit/xorg/lib/libxcb/files/xevie.c
vendored
Normal file
@ -0,0 +1,524 @@
|
||||
/*
|
||||
* This file generated automatically from xevie.xml by c_client.py.
|
||||
* Edit at your peril.
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#include "xcbext.h"
|
||||
#include "xevie.h"
|
||||
|
||||
xcb_extension_t xcb_xevie_id = { "XEVIE", 0 };
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xevie_query_version_cookie_t xcb_xevie_query_version
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint16_t client_major_version
|
||||
** @param uint16_t client_minor_version
|
||||
** @returns xcb_xevie_query_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xevie_query_version_cookie_t
|
||||
xcb_xevie_query_version (xcb_connection_t *c /**< */,
|
||||
uint16_t client_major_version /**< */,
|
||||
uint16_t client_minor_version /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_xevie_id,
|
||||
/* opcode */ XCB_XEVIE_QUERY_VERSION,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_xevie_query_version_cookie_t xcb_ret;
|
||||
xcb_xevie_query_version_request_t xcb_out;
|
||||
|
||||
xcb_out.client_major_version = client_major_version;
|
||||
xcb_out.client_minor_version = client_minor_version;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xevie_query_version_cookie_t xcb_xevie_query_version_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint16_t client_major_version
|
||||
** @param uint16_t client_minor_version
|
||||
** @returns xcb_xevie_query_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xevie_query_version_cookie_t
|
||||
xcb_xevie_query_version_unchecked (xcb_connection_t *c /**< */,
|
||||
uint16_t client_major_version /**< */,
|
||||
uint16_t client_minor_version /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_xevie_id,
|
||||
/* opcode */ XCB_XEVIE_QUERY_VERSION,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_xevie_query_version_cookie_t xcb_ret;
|
||||
xcb_xevie_query_version_request_t xcb_out;
|
||||
|
||||
xcb_out.client_major_version = client_major_version;
|
||||
xcb_out.client_minor_version = client_minor_version;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xevie_query_version_reply_t * xcb_xevie_query_version_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_xevie_query_version_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_xevie_query_version_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xevie_query_version_reply_t *
|
||||
xcb_xevie_query_version_reply (xcb_connection_t *c /**< */,
|
||||
xcb_xevie_query_version_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */)
|
||||
{
|
||||
return (xcb_xevie_query_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xevie_start_cookie_t xcb_xevie_start
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint32_t screen
|
||||
** @returns xcb_xevie_start_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xevie_start_cookie_t
|
||||
xcb_xevie_start (xcb_connection_t *c /**< */,
|
||||
uint32_t screen /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_xevie_id,
|
||||
/* opcode */ XCB_XEVIE_START,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_xevie_start_cookie_t xcb_ret;
|
||||
xcb_xevie_start_request_t xcb_out;
|
||||
|
||||
xcb_out.screen = screen;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xevie_start_cookie_t xcb_xevie_start_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint32_t screen
|
||||
** @returns xcb_xevie_start_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xevie_start_cookie_t
|
||||
xcb_xevie_start_unchecked (xcb_connection_t *c /**< */,
|
||||
uint32_t screen /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_xevie_id,
|
||||
/* opcode */ XCB_XEVIE_START,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_xevie_start_cookie_t xcb_ret;
|
||||
xcb_xevie_start_request_t xcb_out;
|
||||
|
||||
xcb_out.screen = screen;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xevie_start_reply_t * xcb_xevie_start_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_xevie_start_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_xevie_start_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xevie_start_reply_t *
|
||||
xcb_xevie_start_reply (xcb_connection_t *c /**< */,
|
||||
xcb_xevie_start_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */)
|
||||
{
|
||||
return (xcb_xevie_start_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xevie_end_cookie_t xcb_xevie_end
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint32_t cmap
|
||||
** @returns xcb_xevie_end_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xevie_end_cookie_t
|
||||
xcb_xevie_end (xcb_connection_t *c /**< */,
|
||||
uint32_t cmap /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_xevie_id,
|
||||
/* opcode */ XCB_XEVIE_END,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_xevie_end_cookie_t xcb_ret;
|
||||
xcb_xevie_end_request_t xcb_out;
|
||||
|
||||
xcb_out.cmap = cmap;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xevie_end_cookie_t xcb_xevie_end_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint32_t cmap
|
||||
** @returns xcb_xevie_end_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xevie_end_cookie_t
|
||||
xcb_xevie_end_unchecked (xcb_connection_t *c /**< */,
|
||||
uint32_t cmap /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_xevie_id,
|
||||
/* opcode */ XCB_XEVIE_END,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_xevie_end_cookie_t xcb_ret;
|
||||
xcb_xevie_end_request_t xcb_out;
|
||||
|
||||
xcb_out.cmap = cmap;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xevie_end_reply_t * xcb_xevie_end_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_xevie_end_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_xevie_end_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xevie_end_reply_t *
|
||||
xcb_xevie_end_reply (xcb_connection_t *c /**< */,
|
||||
xcb_xevie_end_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */)
|
||||
{
|
||||
return (xcb_xevie_end_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** void xcb_xevie_event_next
|
||||
**
|
||||
** @param xcb_xevie_event_iterator_t *i
|
||||
** @returns void
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
void
|
||||
xcb_xevie_event_next (xcb_xevie_event_iterator_t *i /**< */)
|
||||
{
|
||||
--i->rem;
|
||||
++i->data;
|
||||
i->index += sizeof(xcb_xevie_event_t);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_generic_iterator_t xcb_xevie_event_end
|
||||
**
|
||||
** @param xcb_xevie_event_iterator_t i
|
||||
** @returns xcb_generic_iterator_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_generic_iterator_t
|
||||
xcb_xevie_event_end (xcb_xevie_event_iterator_t i /**< */)
|
||||
{
|
||||
xcb_generic_iterator_t ret;
|
||||
ret.data = i.data + i.rem;
|
||||
ret.index = i.index + ((char *) ret.data - (char *) i.data);
|
||||
ret.rem = 0;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xevie_send_cookie_t xcb_xevie_send
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_xevie_event_t event
|
||||
** @param uint32_t data_type
|
||||
** @returns xcb_xevie_send_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xevie_send_cookie_t
|
||||
xcb_xevie_send (xcb_connection_t *c /**< */,
|
||||
xcb_xevie_event_t event /**< */,
|
||||
uint32_t data_type /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_xevie_id,
|
||||
/* opcode */ XCB_XEVIE_SEND,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_xevie_send_cookie_t xcb_ret;
|
||||
xcb_xevie_send_request_t xcb_out;
|
||||
|
||||
xcb_out.event = event;
|
||||
xcb_out.data_type = data_type;
|
||||
memset(xcb_out.pad0, 0, 64);
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xevie_send_cookie_t xcb_xevie_send_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_xevie_event_t event
|
||||
** @param uint32_t data_type
|
||||
** @returns xcb_xevie_send_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xevie_send_cookie_t
|
||||
xcb_xevie_send_unchecked (xcb_connection_t *c /**< */,
|
||||
xcb_xevie_event_t event /**< */,
|
||||
uint32_t data_type /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_xevie_id,
|
||||
/* opcode */ XCB_XEVIE_SEND,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_xevie_send_cookie_t xcb_ret;
|
||||
xcb_xevie_send_request_t xcb_out;
|
||||
|
||||
xcb_out.event = event;
|
||||
xcb_out.data_type = data_type;
|
||||
memset(xcb_out.pad0, 0, 64);
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xevie_send_reply_t * xcb_xevie_send_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_xevie_send_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_xevie_send_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xevie_send_reply_t *
|
||||
xcb_xevie_send_reply (xcb_connection_t *c /**< */,
|
||||
xcb_xevie_send_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */)
|
||||
{
|
||||
return (xcb_xevie_send_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xevie_select_input_cookie_t xcb_xevie_select_input
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint32_t event_mask
|
||||
** @returns xcb_xevie_select_input_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xevie_select_input_cookie_t
|
||||
xcb_xevie_select_input (xcb_connection_t *c /**< */,
|
||||
uint32_t event_mask /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_xevie_id,
|
||||
/* opcode */ XCB_XEVIE_SELECT_INPUT,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_xevie_select_input_cookie_t xcb_ret;
|
||||
xcb_xevie_select_input_request_t xcb_out;
|
||||
|
||||
xcb_out.event_mask = event_mask;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xevie_select_input_cookie_t xcb_xevie_select_input_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint32_t event_mask
|
||||
** @returns xcb_xevie_select_input_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xevie_select_input_cookie_t
|
||||
xcb_xevie_select_input_unchecked (xcb_connection_t *c /**< */,
|
||||
uint32_t event_mask /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_xevie_id,
|
||||
/* opcode */ XCB_XEVIE_SELECT_INPUT,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_xevie_select_input_cookie_t xcb_ret;
|
||||
xcb_xevie_select_input_request_t xcb_out;
|
||||
|
||||
xcb_out.event_mask = event_mask;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xevie_select_input_reply_t * xcb_xevie_select_input_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_xevie_select_input_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_xevie_select_input_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xevie_select_input_reply_t *
|
||||
xcb_xevie_select_input_reply (xcb_connection_t *c /**< */,
|
||||
xcb_xevie_select_input_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */)
|
||||
{
|
||||
return (xcb_xevie_select_input_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
|
||||
}
|
||||
|
667
external/mit/xorg/lib/libxcb/files/xevie.h
vendored
Normal file
667
external/mit/xorg/lib/libxcb/files/xevie.h
vendored
Normal file
@ -0,0 +1,667 @@
|
||||
/*
|
||||
* This file generated automatically from xevie.xml by c_client.py.
|
||||
* Edit at your peril.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @defgroup XCB_Xevie_API XCB Xevie API
|
||||
* @brief Xevie XCB Protocol Implementation.
|
||||
* @{
|
||||
**/
|
||||
|
||||
#ifndef __XEVIE_H
|
||||
#define __XEVIE_H
|
||||
|
||||
#include "xcb.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define XCB_XEVIE_MAJOR_VERSION 1
|
||||
#define XCB_XEVIE_MINOR_VERSION 0
|
||||
|
||||
extern xcb_extension_t xcb_xevie_id;
|
||||
|
||||
/**
|
||||
* @brief xcb_xevie_query_version_cookie_t
|
||||
**/
|
||||
typedef struct xcb_xevie_query_version_cookie_t {
|
||||
unsigned int sequence; /**< */
|
||||
} xcb_xevie_query_version_cookie_t;
|
||||
|
||||
/** Opcode for xcb_xevie_query_version. */
|
||||
#define XCB_XEVIE_QUERY_VERSION 0
|
||||
|
||||
/**
|
||||
* @brief xcb_xevie_query_version_request_t
|
||||
**/
|
||||
typedef struct xcb_xevie_query_version_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
uint16_t client_major_version; /**< */
|
||||
uint16_t client_minor_version; /**< */
|
||||
} xcb_xevie_query_version_request_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_xevie_query_version_reply_t
|
||||
**/
|
||||
typedef struct xcb_xevie_query_version_reply_t {
|
||||
uint8_t response_type; /**< */
|
||||
uint8_t pad0; /**< */
|
||||
uint16_t sequence; /**< */
|
||||
uint32_t length; /**< */
|
||||
uint16_t server_major_version; /**< */
|
||||
uint16_t server_minor_version; /**< */
|
||||
uint8_t pad1[20]; /**< */
|
||||
} xcb_xevie_query_version_reply_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_xevie_start_cookie_t
|
||||
**/
|
||||
typedef struct xcb_xevie_start_cookie_t {
|
||||
unsigned int sequence; /**< */
|
||||
} xcb_xevie_start_cookie_t;
|
||||
|
||||
/** Opcode for xcb_xevie_start. */
|
||||
#define XCB_XEVIE_START 1
|
||||
|
||||
/**
|
||||
* @brief xcb_xevie_start_request_t
|
||||
**/
|
||||
typedef struct xcb_xevie_start_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
uint32_t screen; /**< */
|
||||
} xcb_xevie_start_request_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_xevie_start_reply_t
|
||||
**/
|
||||
typedef struct xcb_xevie_start_reply_t {
|
||||
uint8_t response_type; /**< */
|
||||
uint8_t pad0; /**< */
|
||||
uint16_t sequence; /**< */
|
||||
uint32_t length; /**< */
|
||||
uint8_t pad1[24]; /**< */
|
||||
} xcb_xevie_start_reply_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_xevie_end_cookie_t
|
||||
**/
|
||||
typedef struct xcb_xevie_end_cookie_t {
|
||||
unsigned int sequence; /**< */
|
||||
} xcb_xevie_end_cookie_t;
|
||||
|
||||
/** Opcode for xcb_xevie_end. */
|
||||
#define XCB_XEVIE_END 2
|
||||
|
||||
/**
|
||||
* @brief xcb_xevie_end_request_t
|
||||
**/
|
||||
typedef struct xcb_xevie_end_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
uint32_t cmap; /**< */
|
||||
} xcb_xevie_end_request_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_xevie_end_reply_t
|
||||
**/
|
||||
typedef struct xcb_xevie_end_reply_t {
|
||||
uint8_t response_type; /**< */
|
||||
uint8_t pad0; /**< */
|
||||
uint16_t sequence; /**< */
|
||||
uint32_t length; /**< */
|
||||
uint8_t pad1[24]; /**< */
|
||||
} xcb_xevie_end_reply_t;
|
||||
|
||||
typedef enum xcb_xevie_datatype_t {
|
||||
XCB_XEVIE_DATATYPE_UNMODIFIED,
|
||||
XCB_XEVIE_DATATYPE_MODIFIED
|
||||
} xcb_xevie_datatype_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_xevie_event_t
|
||||
**/
|
||||
typedef struct xcb_xevie_event_t {
|
||||
uint8_t pad0[32]; /**< */
|
||||
} xcb_xevie_event_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_xevie_event_iterator_t
|
||||
**/
|
||||
typedef struct xcb_xevie_event_iterator_t {
|
||||
xcb_xevie_event_t *data; /**< */
|
||||
int rem; /**< */
|
||||
int index; /**< */
|
||||
} xcb_xevie_event_iterator_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_xevie_send_cookie_t
|
||||
**/
|
||||
typedef struct xcb_xevie_send_cookie_t {
|
||||
unsigned int sequence; /**< */
|
||||
} xcb_xevie_send_cookie_t;
|
||||
|
||||
/** Opcode for xcb_xevie_send. */
|
||||
#define XCB_XEVIE_SEND 3
|
||||
|
||||
/**
|
||||
* @brief xcb_xevie_send_request_t
|
||||
**/
|
||||
typedef struct xcb_xevie_send_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
xcb_xevie_event_t event; /**< */
|
||||
uint32_t data_type; /**< */
|
||||
uint8_t pad0[64]; /**< */
|
||||
} xcb_xevie_send_request_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_xevie_send_reply_t
|
||||
**/
|
||||
typedef struct xcb_xevie_send_reply_t {
|
||||
uint8_t response_type; /**< */
|
||||
uint8_t pad0; /**< */
|
||||
uint16_t sequence; /**< */
|
||||
uint32_t length; /**< */
|
||||
uint8_t pad1[24]; /**< */
|
||||
} xcb_xevie_send_reply_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_xevie_select_input_cookie_t
|
||||
**/
|
||||
typedef struct xcb_xevie_select_input_cookie_t {
|
||||
unsigned int sequence; /**< */
|
||||
} xcb_xevie_select_input_cookie_t;
|
||||
|
||||
/** Opcode for xcb_xevie_select_input. */
|
||||
#define XCB_XEVIE_SELECT_INPUT 4
|
||||
|
||||
/**
|
||||
* @brief xcb_xevie_select_input_request_t
|
||||
**/
|
||||
typedef struct xcb_xevie_select_input_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
uint32_t event_mask; /**< */
|
||||
} xcb_xevie_select_input_request_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_xevie_select_input_reply_t
|
||||
**/
|
||||
typedef struct xcb_xevie_select_input_reply_t {
|
||||
uint8_t response_type; /**< */
|
||||
uint8_t pad0; /**< */
|
||||
uint16_t sequence; /**< */
|
||||
uint32_t length; /**< */
|
||||
uint8_t pad1[24]; /**< */
|
||||
} xcb_xevie_select_input_reply_t;
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xevie_query_version_cookie_t xcb_xevie_query_version
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint16_t client_major_version
|
||||
** @param uint16_t client_minor_version
|
||||
** @returns xcb_xevie_query_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xevie_query_version_cookie_t
|
||||
xcb_xevie_query_version (xcb_connection_t *c /**< */,
|
||||
uint16_t client_major_version /**< */,
|
||||
uint16_t client_minor_version /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* placed in the event queue.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xevie_query_version_cookie_t xcb_xevie_query_version_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint16_t client_major_version
|
||||
** @param uint16_t client_minor_version
|
||||
** @returns xcb_xevie_query_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xevie_query_version_cookie_t
|
||||
xcb_xevie_query_version_unchecked (xcb_connection_t *c /**< */,
|
||||
uint16_t client_major_version /**< */,
|
||||
uint16_t client_minor_version /**< */);
|
||||
|
||||
/**
|
||||
* Return the reply
|
||||
* @param c The connection
|
||||
* @param cookie The cookie
|
||||
* @param e The xcb_generic_error_t supplied
|
||||
*
|
||||
* Returns the reply of the request asked by
|
||||
*
|
||||
* The parameter @p e supplied to this function must be NULL if
|
||||
* xcb_xevie_query_version_unchecked(). is used.
|
||||
* Otherwise, it stores the error if any.
|
||||
*
|
||||
* The returned value must be freed by the caller using free().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xevie_query_version_reply_t * xcb_xevie_query_version_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_xevie_query_version_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_xevie_query_version_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xevie_query_version_reply_t *
|
||||
xcb_xevie_query_version_reply (xcb_connection_t *c /**< */,
|
||||
xcb_xevie_query_version_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xevie_start_cookie_t xcb_xevie_start
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint32_t screen
|
||||
** @returns xcb_xevie_start_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xevie_start_cookie_t
|
||||
xcb_xevie_start (xcb_connection_t *c /**< */,
|
||||
uint32_t screen /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* placed in the event queue.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xevie_start_cookie_t xcb_xevie_start_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint32_t screen
|
||||
** @returns xcb_xevie_start_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xevie_start_cookie_t
|
||||
xcb_xevie_start_unchecked (xcb_connection_t *c /**< */,
|
||||
uint32_t screen /**< */);
|
||||
|
||||
/**
|
||||
* Return the reply
|
||||
* @param c The connection
|
||||
* @param cookie The cookie
|
||||
* @param e The xcb_generic_error_t supplied
|
||||
*
|
||||
* Returns the reply of the request asked by
|
||||
*
|
||||
* The parameter @p e supplied to this function must be NULL if
|
||||
* xcb_xevie_start_unchecked(). is used.
|
||||
* Otherwise, it stores the error if any.
|
||||
*
|
||||
* The returned value must be freed by the caller using free().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xevie_start_reply_t * xcb_xevie_start_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_xevie_start_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_xevie_start_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xevie_start_reply_t *
|
||||
xcb_xevie_start_reply (xcb_connection_t *c /**< */,
|
||||
xcb_xevie_start_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xevie_end_cookie_t xcb_xevie_end
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint32_t cmap
|
||||
** @returns xcb_xevie_end_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xevie_end_cookie_t
|
||||
xcb_xevie_end (xcb_connection_t *c /**< */,
|
||||
uint32_t cmap /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* placed in the event queue.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xevie_end_cookie_t xcb_xevie_end_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint32_t cmap
|
||||
** @returns xcb_xevie_end_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xevie_end_cookie_t
|
||||
xcb_xevie_end_unchecked (xcb_connection_t *c /**< */,
|
||||
uint32_t cmap /**< */);
|
||||
|
||||
/**
|
||||
* Return the reply
|
||||
* @param c The connection
|
||||
* @param cookie The cookie
|
||||
* @param e The xcb_generic_error_t supplied
|
||||
*
|
||||
* Returns the reply of the request asked by
|
||||
*
|
||||
* The parameter @p e supplied to this function must be NULL if
|
||||
* xcb_xevie_end_unchecked(). is used.
|
||||
* Otherwise, it stores the error if any.
|
||||
*
|
||||
* The returned value must be freed by the caller using free().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xevie_end_reply_t * xcb_xevie_end_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_xevie_end_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_xevie_end_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xevie_end_reply_t *
|
||||
xcb_xevie_end_reply (xcb_connection_t *c /**< */,
|
||||
xcb_xevie_end_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */);
|
||||
|
||||
/**
|
||||
* Get the next element of the iterator
|
||||
* @param i Pointer to a xcb_xevie_event_iterator_t
|
||||
*
|
||||
* Get the next element in the iterator. The member rem is
|
||||
* decreased by one. The member data points to the next
|
||||
* element. The member index is increased by sizeof(xcb_xevie_event_t)
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** void xcb_xevie_event_next
|
||||
**
|
||||
** @param xcb_xevie_event_iterator_t *i
|
||||
** @returns void
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
void
|
||||
xcb_xevie_event_next (xcb_xevie_event_iterator_t *i /**< */);
|
||||
|
||||
/**
|
||||
* Return the iterator pointing to the last element
|
||||
* @param i An xcb_xevie_event_iterator_t
|
||||
* @return The iterator pointing to the last element
|
||||
*
|
||||
* Set the current element in the iterator to the last element.
|
||||
* The member rem is set to 0. The member data points to the
|
||||
* last element.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_generic_iterator_t xcb_xevie_event_end
|
||||
**
|
||||
** @param xcb_xevie_event_iterator_t i
|
||||
** @returns xcb_generic_iterator_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_generic_iterator_t
|
||||
xcb_xevie_event_end (xcb_xevie_event_iterator_t i /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xevie_send_cookie_t xcb_xevie_send
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_xevie_event_t event
|
||||
** @param uint32_t data_type
|
||||
** @returns xcb_xevie_send_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xevie_send_cookie_t
|
||||
xcb_xevie_send (xcb_connection_t *c /**< */,
|
||||
xcb_xevie_event_t event /**< */,
|
||||
uint32_t data_type /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* placed in the event queue.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xevie_send_cookie_t xcb_xevie_send_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_xevie_event_t event
|
||||
** @param uint32_t data_type
|
||||
** @returns xcb_xevie_send_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xevie_send_cookie_t
|
||||
xcb_xevie_send_unchecked (xcb_connection_t *c /**< */,
|
||||
xcb_xevie_event_t event /**< */,
|
||||
uint32_t data_type /**< */);
|
||||
|
||||
/**
|
||||
* Return the reply
|
||||
* @param c The connection
|
||||
* @param cookie The cookie
|
||||
* @param e The xcb_generic_error_t supplied
|
||||
*
|
||||
* Returns the reply of the request asked by
|
||||
*
|
||||
* The parameter @p e supplied to this function must be NULL if
|
||||
* xcb_xevie_send_unchecked(). is used.
|
||||
* Otherwise, it stores the error if any.
|
||||
*
|
||||
* The returned value must be freed by the caller using free().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xevie_send_reply_t * xcb_xevie_send_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_xevie_send_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_xevie_send_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xevie_send_reply_t *
|
||||
xcb_xevie_send_reply (xcb_connection_t *c /**< */,
|
||||
xcb_xevie_send_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xevie_select_input_cookie_t xcb_xevie_select_input
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint32_t event_mask
|
||||
** @returns xcb_xevie_select_input_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xevie_select_input_cookie_t
|
||||
xcb_xevie_select_input (xcb_connection_t *c /**< */,
|
||||
uint32_t event_mask /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* placed in the event queue.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xevie_select_input_cookie_t xcb_xevie_select_input_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint32_t event_mask
|
||||
** @returns xcb_xevie_select_input_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xevie_select_input_cookie_t
|
||||
xcb_xevie_select_input_unchecked (xcb_connection_t *c /**< */,
|
||||
uint32_t event_mask /**< */);
|
||||
|
||||
/**
|
||||
* Return the reply
|
||||
* @param c The connection
|
||||
* @param cookie The cookie
|
||||
* @param e The xcb_generic_error_t supplied
|
||||
*
|
||||
* Returns the reply of the request asked by
|
||||
*
|
||||
* The parameter @p e supplied to this function must be NULL if
|
||||
* xcb_xevie_select_input_unchecked(). is used.
|
||||
* Otherwise, it stores the error if any.
|
||||
*
|
||||
* The returned value must be freed by the caller using free().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xevie_select_input_reply_t * xcb_xevie_select_input_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_xevie_select_input_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_xevie_select_input_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xevie_select_input_reply_t *
|
||||
xcb_xevie_select_input_reply (xcb_connection_t *c /**< */,
|
||||
xcb_xevie_select_input_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
1338
external/mit/xorg/lib/libxcb/files/xf86dri.c
vendored
Normal file
1338
external/mit/xorg/lib/libxcb/files/xf86dri.c
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1489
external/mit/xorg/lib/libxcb/files/xf86dri.h
vendored
Normal file
1489
external/mit/xorg/lib/libxcb/files/xf86dri.h
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2953
external/mit/xorg/lib/libxcb/files/xfixes.c
vendored
Normal file
2953
external/mit/xorg/lib/libxcb/files/xfixes.c
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2790
external/mit/xorg/lib/libxcb/files/xfixes.h
vendored
Normal file
2790
external/mit/xorg/lib/libxcb/files/xfixes.h
vendored
Normal file
File diff suppressed because it is too large
Load Diff
655
external/mit/xorg/lib/libxcb/files/xinerama.c
vendored
Normal file
655
external/mit/xorg/lib/libxcb/files/xinerama.c
vendored
Normal file
@ -0,0 +1,655 @@
|
||||
/*
|
||||
* This file generated automatically from xinerama.xml by c_client.py.
|
||||
* Edit at your peril.
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#include "xcbext.h"
|
||||
#include "xinerama.h"
|
||||
#include "xproto.h"
|
||||
|
||||
xcb_extension_t xcb_xinerama_id = { "XINERAMA", 0 };
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** void xcb_xinerama_screen_info_next
|
||||
**
|
||||
** @param xcb_xinerama_screen_info_iterator_t *i
|
||||
** @returns void
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
void
|
||||
xcb_xinerama_screen_info_next (xcb_xinerama_screen_info_iterator_t *i /**< */)
|
||||
{
|
||||
--i->rem;
|
||||
++i->data;
|
||||
i->index += sizeof(xcb_xinerama_screen_info_t);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_generic_iterator_t xcb_xinerama_screen_info_end
|
||||
**
|
||||
** @param xcb_xinerama_screen_info_iterator_t i
|
||||
** @returns xcb_generic_iterator_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_generic_iterator_t
|
||||
xcb_xinerama_screen_info_end (xcb_xinerama_screen_info_iterator_t i /**< */)
|
||||
{
|
||||
xcb_generic_iterator_t ret;
|
||||
ret.data = i.data + i.rem;
|
||||
ret.index = i.index + ((char *) ret.data - (char *) i.data);
|
||||
ret.rem = 0;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_query_version_cookie_t xcb_xinerama_query_version
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint8_t major
|
||||
** @param uint8_t minor
|
||||
** @returns xcb_xinerama_query_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_query_version_cookie_t
|
||||
xcb_xinerama_query_version (xcb_connection_t *c /**< */,
|
||||
uint8_t major /**< */,
|
||||
uint8_t minor /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_xinerama_id,
|
||||
/* opcode */ XCB_XINERAMA_QUERY_VERSION,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_xinerama_query_version_cookie_t xcb_ret;
|
||||
xcb_xinerama_query_version_request_t xcb_out;
|
||||
|
||||
xcb_out.major = major;
|
||||
xcb_out.minor = minor;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_query_version_cookie_t xcb_xinerama_query_version_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint8_t major
|
||||
** @param uint8_t minor
|
||||
** @returns xcb_xinerama_query_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_query_version_cookie_t
|
||||
xcb_xinerama_query_version_unchecked (xcb_connection_t *c /**< */,
|
||||
uint8_t major /**< */,
|
||||
uint8_t minor /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_xinerama_id,
|
||||
/* opcode */ XCB_XINERAMA_QUERY_VERSION,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_xinerama_query_version_cookie_t xcb_ret;
|
||||
xcb_xinerama_query_version_request_t xcb_out;
|
||||
|
||||
xcb_out.major = major;
|
||||
xcb_out.minor = minor;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_query_version_reply_t * xcb_xinerama_query_version_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_xinerama_query_version_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_xinerama_query_version_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_query_version_reply_t *
|
||||
xcb_xinerama_query_version_reply (xcb_connection_t *c /**< */,
|
||||
xcb_xinerama_query_version_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */)
|
||||
{
|
||||
return (xcb_xinerama_query_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_get_state_cookie_t xcb_xinerama_get_state
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @returns xcb_xinerama_get_state_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_get_state_cookie_t
|
||||
xcb_xinerama_get_state (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_xinerama_id,
|
||||
/* opcode */ XCB_XINERAMA_GET_STATE,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_xinerama_get_state_cookie_t xcb_ret;
|
||||
xcb_xinerama_get_state_request_t xcb_out;
|
||||
|
||||
xcb_out.window = window;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_get_state_cookie_t xcb_xinerama_get_state_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @returns xcb_xinerama_get_state_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_get_state_cookie_t
|
||||
xcb_xinerama_get_state_unchecked (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_xinerama_id,
|
||||
/* opcode */ XCB_XINERAMA_GET_STATE,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_xinerama_get_state_cookie_t xcb_ret;
|
||||
xcb_xinerama_get_state_request_t xcb_out;
|
||||
|
||||
xcb_out.window = window;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_get_state_reply_t * xcb_xinerama_get_state_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_xinerama_get_state_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_xinerama_get_state_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_get_state_reply_t *
|
||||
xcb_xinerama_get_state_reply (xcb_connection_t *c /**< */,
|
||||
xcb_xinerama_get_state_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */)
|
||||
{
|
||||
return (xcb_xinerama_get_state_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_get_screen_count_cookie_t xcb_xinerama_get_screen_count
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @returns xcb_xinerama_get_screen_count_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_get_screen_count_cookie_t
|
||||
xcb_xinerama_get_screen_count (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_xinerama_id,
|
||||
/* opcode */ XCB_XINERAMA_GET_SCREEN_COUNT,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_xinerama_get_screen_count_cookie_t xcb_ret;
|
||||
xcb_xinerama_get_screen_count_request_t xcb_out;
|
||||
|
||||
xcb_out.window = window;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_get_screen_count_cookie_t xcb_xinerama_get_screen_count_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @returns xcb_xinerama_get_screen_count_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_get_screen_count_cookie_t
|
||||
xcb_xinerama_get_screen_count_unchecked (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_xinerama_id,
|
||||
/* opcode */ XCB_XINERAMA_GET_SCREEN_COUNT,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_xinerama_get_screen_count_cookie_t xcb_ret;
|
||||
xcb_xinerama_get_screen_count_request_t xcb_out;
|
||||
|
||||
xcb_out.window = window;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_get_screen_count_reply_t * xcb_xinerama_get_screen_count_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_xinerama_get_screen_count_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_xinerama_get_screen_count_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_get_screen_count_reply_t *
|
||||
xcb_xinerama_get_screen_count_reply (xcb_connection_t *c /**< */,
|
||||
xcb_xinerama_get_screen_count_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */)
|
||||
{
|
||||
return (xcb_xinerama_get_screen_count_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_get_screen_size_cookie_t xcb_xinerama_get_screen_size
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @param uint32_t screen
|
||||
** @returns xcb_xinerama_get_screen_size_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_get_screen_size_cookie_t
|
||||
xcb_xinerama_get_screen_size (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */,
|
||||
uint32_t screen /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_xinerama_id,
|
||||
/* opcode */ XCB_XINERAMA_GET_SCREEN_SIZE,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_xinerama_get_screen_size_cookie_t xcb_ret;
|
||||
xcb_xinerama_get_screen_size_request_t xcb_out;
|
||||
|
||||
xcb_out.window = window;
|
||||
xcb_out.screen = screen;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_get_screen_size_cookie_t xcb_xinerama_get_screen_size_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @param uint32_t screen
|
||||
** @returns xcb_xinerama_get_screen_size_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_get_screen_size_cookie_t
|
||||
xcb_xinerama_get_screen_size_unchecked (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */,
|
||||
uint32_t screen /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_xinerama_id,
|
||||
/* opcode */ XCB_XINERAMA_GET_SCREEN_SIZE,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_xinerama_get_screen_size_cookie_t xcb_ret;
|
||||
xcb_xinerama_get_screen_size_request_t xcb_out;
|
||||
|
||||
xcb_out.window = window;
|
||||
xcb_out.screen = screen;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_get_screen_size_reply_t * xcb_xinerama_get_screen_size_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_xinerama_get_screen_size_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_xinerama_get_screen_size_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_get_screen_size_reply_t *
|
||||
xcb_xinerama_get_screen_size_reply (xcb_connection_t *c /**< */,
|
||||
xcb_xinerama_get_screen_size_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */)
|
||||
{
|
||||
return (xcb_xinerama_get_screen_size_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_is_active_cookie_t xcb_xinerama_is_active
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_xinerama_is_active_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_is_active_cookie_t
|
||||
xcb_xinerama_is_active (xcb_connection_t *c /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_xinerama_id,
|
||||
/* opcode */ XCB_XINERAMA_IS_ACTIVE,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_xinerama_is_active_cookie_t xcb_ret;
|
||||
xcb_xinerama_is_active_request_t xcb_out;
|
||||
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_is_active_cookie_t xcb_xinerama_is_active_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_xinerama_is_active_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_is_active_cookie_t
|
||||
xcb_xinerama_is_active_unchecked (xcb_connection_t *c /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_xinerama_id,
|
||||
/* opcode */ XCB_XINERAMA_IS_ACTIVE,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_xinerama_is_active_cookie_t xcb_ret;
|
||||
xcb_xinerama_is_active_request_t xcb_out;
|
||||
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_is_active_reply_t * xcb_xinerama_is_active_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_xinerama_is_active_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_xinerama_is_active_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_is_active_reply_t *
|
||||
xcb_xinerama_is_active_reply (xcb_connection_t *c /**< */,
|
||||
xcb_xinerama_is_active_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */)
|
||||
{
|
||||
return (xcb_xinerama_is_active_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_query_screens_cookie_t xcb_xinerama_query_screens
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_xinerama_query_screens_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_query_screens_cookie_t
|
||||
xcb_xinerama_query_screens (xcb_connection_t *c /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_xinerama_id,
|
||||
/* opcode */ XCB_XINERAMA_QUERY_SCREENS,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_xinerama_query_screens_cookie_t xcb_ret;
|
||||
xcb_xinerama_query_screens_request_t xcb_out;
|
||||
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_query_screens_cookie_t xcb_xinerama_query_screens_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_xinerama_query_screens_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_query_screens_cookie_t
|
||||
xcb_xinerama_query_screens_unchecked (xcb_connection_t *c /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_xinerama_id,
|
||||
/* opcode */ XCB_XINERAMA_QUERY_SCREENS,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_xinerama_query_screens_cookie_t xcb_ret;
|
||||
xcb_xinerama_query_screens_request_t xcb_out;
|
||||
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_screen_info_t * xcb_xinerama_query_screens_screen_info
|
||||
**
|
||||
** @param const xcb_xinerama_query_screens_reply_t *R
|
||||
** @returns xcb_xinerama_screen_info_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_screen_info_t *
|
||||
xcb_xinerama_query_screens_screen_info (const xcb_xinerama_query_screens_reply_t *R /**< */)
|
||||
{
|
||||
return (xcb_xinerama_screen_info_t *) (R + 1);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** int xcb_xinerama_query_screens_screen_info_length
|
||||
**
|
||||
** @param const xcb_xinerama_query_screens_reply_t *R
|
||||
** @returns int
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
int
|
||||
xcb_xinerama_query_screens_screen_info_length (const xcb_xinerama_query_screens_reply_t *R /**< */)
|
||||
{
|
||||
return R->number;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_screen_info_iterator_t xcb_xinerama_query_screens_screen_info_iterator
|
||||
**
|
||||
** @param const xcb_xinerama_query_screens_reply_t *R
|
||||
** @returns xcb_xinerama_screen_info_iterator_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_screen_info_iterator_t
|
||||
xcb_xinerama_query_screens_screen_info_iterator (const xcb_xinerama_query_screens_reply_t *R /**< */)
|
||||
{
|
||||
xcb_xinerama_screen_info_iterator_t i;
|
||||
i.data = (xcb_xinerama_screen_info_t *) (R + 1);
|
||||
i.rem = R->number;
|
||||
i.index = (char *) i.data - (char *) R;
|
||||
return i;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_query_screens_reply_t * xcb_xinerama_query_screens_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_xinerama_query_screens_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_xinerama_query_screens_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_query_screens_reply_t *
|
||||
xcb_xinerama_query_screens_reply (xcb_connection_t *c /**< */,
|
||||
xcb_xinerama_query_screens_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */)
|
||||
{
|
||||
return (xcb_xinerama_query_screens_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
|
||||
}
|
||||
|
808
external/mit/xorg/lib/libxcb/files/xinerama.h
vendored
Normal file
808
external/mit/xorg/lib/libxcb/files/xinerama.h
vendored
Normal file
@ -0,0 +1,808 @@
|
||||
/*
|
||||
* This file generated automatically from xinerama.xml by c_client.py.
|
||||
* Edit at your peril.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @defgroup XCB_Xinerama_API XCB Xinerama API
|
||||
* @brief Xinerama XCB Protocol Implementation.
|
||||
* @{
|
||||
**/
|
||||
|
||||
#ifndef __XINERAMA_H
|
||||
#define __XINERAMA_H
|
||||
|
||||
#include "xcb.h"
|
||||
#include "xproto.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define XCB_XINERAMA_MAJOR_VERSION 1
|
||||
#define XCB_XINERAMA_MINOR_VERSION 1
|
||||
|
||||
extern xcb_extension_t xcb_xinerama_id;
|
||||
|
||||
/**
|
||||
* @brief xcb_xinerama_screen_info_t
|
||||
**/
|
||||
typedef struct xcb_xinerama_screen_info_t {
|
||||
int16_t x_org; /**< */
|
||||
int16_t y_org; /**< */
|
||||
uint16_t width; /**< */
|
||||
uint16_t height; /**< */
|
||||
} xcb_xinerama_screen_info_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_xinerama_screen_info_iterator_t
|
||||
**/
|
||||
typedef struct xcb_xinerama_screen_info_iterator_t {
|
||||
xcb_xinerama_screen_info_t *data; /**< */
|
||||
int rem; /**< */
|
||||
int index; /**< */
|
||||
} xcb_xinerama_screen_info_iterator_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_xinerama_query_version_cookie_t
|
||||
**/
|
||||
typedef struct xcb_xinerama_query_version_cookie_t {
|
||||
unsigned int sequence; /**< */
|
||||
} xcb_xinerama_query_version_cookie_t;
|
||||
|
||||
/** Opcode for xcb_xinerama_query_version. */
|
||||
#define XCB_XINERAMA_QUERY_VERSION 0
|
||||
|
||||
/**
|
||||
* @brief xcb_xinerama_query_version_request_t
|
||||
**/
|
||||
typedef struct xcb_xinerama_query_version_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
uint8_t major; /**< */
|
||||
uint8_t minor; /**< */
|
||||
} xcb_xinerama_query_version_request_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_xinerama_query_version_reply_t
|
||||
**/
|
||||
typedef struct xcb_xinerama_query_version_reply_t {
|
||||
uint8_t response_type; /**< */
|
||||
uint8_t pad0; /**< */
|
||||
uint16_t sequence; /**< */
|
||||
uint32_t length; /**< */
|
||||
uint16_t major; /**< */
|
||||
uint16_t minor; /**< */
|
||||
} xcb_xinerama_query_version_reply_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_xinerama_get_state_cookie_t
|
||||
**/
|
||||
typedef struct xcb_xinerama_get_state_cookie_t {
|
||||
unsigned int sequence; /**< */
|
||||
} xcb_xinerama_get_state_cookie_t;
|
||||
|
||||
/** Opcode for xcb_xinerama_get_state. */
|
||||
#define XCB_XINERAMA_GET_STATE 1
|
||||
|
||||
/**
|
||||
* @brief xcb_xinerama_get_state_request_t
|
||||
**/
|
||||
typedef struct xcb_xinerama_get_state_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
xcb_window_t window; /**< */
|
||||
} xcb_xinerama_get_state_request_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_xinerama_get_state_reply_t
|
||||
**/
|
||||
typedef struct xcb_xinerama_get_state_reply_t {
|
||||
uint8_t response_type; /**< */
|
||||
uint8_t state; /**< */
|
||||
uint16_t sequence; /**< */
|
||||
uint32_t length; /**< */
|
||||
xcb_window_t window; /**< */
|
||||
} xcb_xinerama_get_state_reply_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_xinerama_get_screen_count_cookie_t
|
||||
**/
|
||||
typedef struct xcb_xinerama_get_screen_count_cookie_t {
|
||||
unsigned int sequence; /**< */
|
||||
} xcb_xinerama_get_screen_count_cookie_t;
|
||||
|
||||
/** Opcode for xcb_xinerama_get_screen_count. */
|
||||
#define XCB_XINERAMA_GET_SCREEN_COUNT 2
|
||||
|
||||
/**
|
||||
* @brief xcb_xinerama_get_screen_count_request_t
|
||||
**/
|
||||
typedef struct xcb_xinerama_get_screen_count_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
xcb_window_t window; /**< */
|
||||
} xcb_xinerama_get_screen_count_request_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_xinerama_get_screen_count_reply_t
|
||||
**/
|
||||
typedef struct xcb_xinerama_get_screen_count_reply_t {
|
||||
uint8_t response_type; /**< */
|
||||
uint8_t screen_count; /**< */
|
||||
uint16_t sequence; /**< */
|
||||
uint32_t length; /**< */
|
||||
xcb_window_t window; /**< */
|
||||
} xcb_xinerama_get_screen_count_reply_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_xinerama_get_screen_size_cookie_t
|
||||
**/
|
||||
typedef struct xcb_xinerama_get_screen_size_cookie_t {
|
||||
unsigned int sequence; /**< */
|
||||
} xcb_xinerama_get_screen_size_cookie_t;
|
||||
|
||||
/** Opcode for xcb_xinerama_get_screen_size. */
|
||||
#define XCB_XINERAMA_GET_SCREEN_SIZE 3
|
||||
|
||||
/**
|
||||
* @brief xcb_xinerama_get_screen_size_request_t
|
||||
**/
|
||||
typedef struct xcb_xinerama_get_screen_size_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
xcb_window_t window; /**< */
|
||||
uint32_t screen; /**< */
|
||||
} xcb_xinerama_get_screen_size_request_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_xinerama_get_screen_size_reply_t
|
||||
**/
|
||||
typedef struct xcb_xinerama_get_screen_size_reply_t {
|
||||
uint8_t response_type; /**< */
|
||||
uint8_t pad0; /**< */
|
||||
uint16_t sequence; /**< */
|
||||
uint32_t length; /**< */
|
||||
uint32_t width; /**< */
|
||||
uint32_t height; /**< */
|
||||
xcb_window_t window; /**< */
|
||||
uint32_t screen; /**< */
|
||||
} xcb_xinerama_get_screen_size_reply_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_xinerama_is_active_cookie_t
|
||||
**/
|
||||
typedef struct xcb_xinerama_is_active_cookie_t {
|
||||
unsigned int sequence; /**< */
|
||||
} xcb_xinerama_is_active_cookie_t;
|
||||
|
||||
/** Opcode for xcb_xinerama_is_active. */
|
||||
#define XCB_XINERAMA_IS_ACTIVE 4
|
||||
|
||||
/**
|
||||
* @brief xcb_xinerama_is_active_request_t
|
||||
**/
|
||||
typedef struct xcb_xinerama_is_active_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
} xcb_xinerama_is_active_request_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_xinerama_is_active_reply_t
|
||||
**/
|
||||
typedef struct xcb_xinerama_is_active_reply_t {
|
||||
uint8_t response_type; /**< */
|
||||
uint8_t pad0; /**< */
|
||||
uint16_t sequence; /**< */
|
||||
uint32_t length; /**< */
|
||||
uint32_t state; /**< */
|
||||
} xcb_xinerama_is_active_reply_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_xinerama_query_screens_cookie_t
|
||||
**/
|
||||
typedef struct xcb_xinerama_query_screens_cookie_t {
|
||||
unsigned int sequence; /**< */
|
||||
} xcb_xinerama_query_screens_cookie_t;
|
||||
|
||||
/** Opcode for xcb_xinerama_query_screens. */
|
||||
#define XCB_XINERAMA_QUERY_SCREENS 5
|
||||
|
||||
/**
|
||||
* @brief xcb_xinerama_query_screens_request_t
|
||||
**/
|
||||
typedef struct xcb_xinerama_query_screens_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
} xcb_xinerama_query_screens_request_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_xinerama_query_screens_reply_t
|
||||
**/
|
||||
typedef struct xcb_xinerama_query_screens_reply_t {
|
||||
uint8_t response_type; /**< */
|
||||
uint8_t pad0; /**< */
|
||||
uint16_t sequence; /**< */
|
||||
uint32_t length; /**< */
|
||||
uint32_t number; /**< */
|
||||
uint8_t pad1[20]; /**< */
|
||||
} xcb_xinerama_query_screens_reply_t;
|
||||
|
||||
/**
|
||||
* Get the next element of the iterator
|
||||
* @param i Pointer to a xcb_xinerama_screen_info_iterator_t
|
||||
*
|
||||
* Get the next element in the iterator. The member rem is
|
||||
* decreased by one. The member data points to the next
|
||||
* element. The member index is increased by sizeof(xcb_xinerama_screen_info_t)
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** void xcb_xinerama_screen_info_next
|
||||
**
|
||||
** @param xcb_xinerama_screen_info_iterator_t *i
|
||||
** @returns void
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
void
|
||||
xcb_xinerama_screen_info_next (xcb_xinerama_screen_info_iterator_t *i /**< */);
|
||||
|
||||
/**
|
||||
* Return the iterator pointing to the last element
|
||||
* @param i An xcb_xinerama_screen_info_iterator_t
|
||||
* @return The iterator pointing to the last element
|
||||
*
|
||||
* Set the current element in the iterator to the last element.
|
||||
* The member rem is set to 0. The member data points to the
|
||||
* last element.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_generic_iterator_t xcb_xinerama_screen_info_end
|
||||
**
|
||||
** @param xcb_xinerama_screen_info_iterator_t i
|
||||
** @returns xcb_generic_iterator_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_generic_iterator_t
|
||||
xcb_xinerama_screen_info_end (xcb_xinerama_screen_info_iterator_t i /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_query_version_cookie_t xcb_xinerama_query_version
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint8_t major
|
||||
** @param uint8_t minor
|
||||
** @returns xcb_xinerama_query_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_query_version_cookie_t
|
||||
xcb_xinerama_query_version (xcb_connection_t *c /**< */,
|
||||
uint8_t major /**< */,
|
||||
uint8_t minor /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* placed in the event queue.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_query_version_cookie_t xcb_xinerama_query_version_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint8_t major
|
||||
** @param uint8_t minor
|
||||
** @returns xcb_xinerama_query_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_query_version_cookie_t
|
||||
xcb_xinerama_query_version_unchecked (xcb_connection_t *c /**< */,
|
||||
uint8_t major /**< */,
|
||||
uint8_t minor /**< */);
|
||||
|
||||
/**
|
||||
* Return the reply
|
||||
* @param c The connection
|
||||
* @param cookie The cookie
|
||||
* @param e The xcb_generic_error_t supplied
|
||||
*
|
||||
* Returns the reply of the request asked by
|
||||
*
|
||||
* The parameter @p e supplied to this function must be NULL if
|
||||
* xcb_xinerama_query_version_unchecked(). is used.
|
||||
* Otherwise, it stores the error if any.
|
||||
*
|
||||
* The returned value must be freed by the caller using free().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_query_version_reply_t * xcb_xinerama_query_version_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_xinerama_query_version_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_xinerama_query_version_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_query_version_reply_t *
|
||||
xcb_xinerama_query_version_reply (xcb_connection_t *c /**< */,
|
||||
xcb_xinerama_query_version_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_get_state_cookie_t xcb_xinerama_get_state
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @returns xcb_xinerama_get_state_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_get_state_cookie_t
|
||||
xcb_xinerama_get_state (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* placed in the event queue.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_get_state_cookie_t xcb_xinerama_get_state_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @returns xcb_xinerama_get_state_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_get_state_cookie_t
|
||||
xcb_xinerama_get_state_unchecked (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */);
|
||||
|
||||
/**
|
||||
* Return the reply
|
||||
* @param c The connection
|
||||
* @param cookie The cookie
|
||||
* @param e The xcb_generic_error_t supplied
|
||||
*
|
||||
* Returns the reply of the request asked by
|
||||
*
|
||||
* The parameter @p e supplied to this function must be NULL if
|
||||
* xcb_xinerama_get_state_unchecked(). is used.
|
||||
* Otherwise, it stores the error if any.
|
||||
*
|
||||
* The returned value must be freed by the caller using free().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_get_state_reply_t * xcb_xinerama_get_state_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_xinerama_get_state_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_xinerama_get_state_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_get_state_reply_t *
|
||||
xcb_xinerama_get_state_reply (xcb_connection_t *c /**< */,
|
||||
xcb_xinerama_get_state_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_get_screen_count_cookie_t xcb_xinerama_get_screen_count
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @returns xcb_xinerama_get_screen_count_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_get_screen_count_cookie_t
|
||||
xcb_xinerama_get_screen_count (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* placed in the event queue.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_get_screen_count_cookie_t xcb_xinerama_get_screen_count_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @returns xcb_xinerama_get_screen_count_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_get_screen_count_cookie_t
|
||||
xcb_xinerama_get_screen_count_unchecked (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */);
|
||||
|
||||
/**
|
||||
* Return the reply
|
||||
* @param c The connection
|
||||
* @param cookie The cookie
|
||||
* @param e The xcb_generic_error_t supplied
|
||||
*
|
||||
* Returns the reply of the request asked by
|
||||
*
|
||||
* The parameter @p e supplied to this function must be NULL if
|
||||
* xcb_xinerama_get_screen_count_unchecked(). is used.
|
||||
* Otherwise, it stores the error if any.
|
||||
*
|
||||
* The returned value must be freed by the caller using free().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_get_screen_count_reply_t * xcb_xinerama_get_screen_count_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_xinerama_get_screen_count_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_xinerama_get_screen_count_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_get_screen_count_reply_t *
|
||||
xcb_xinerama_get_screen_count_reply (xcb_connection_t *c /**< */,
|
||||
xcb_xinerama_get_screen_count_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_get_screen_size_cookie_t xcb_xinerama_get_screen_size
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @param uint32_t screen
|
||||
** @returns xcb_xinerama_get_screen_size_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_get_screen_size_cookie_t
|
||||
xcb_xinerama_get_screen_size (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */,
|
||||
uint32_t screen /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* placed in the event queue.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_get_screen_size_cookie_t xcb_xinerama_get_screen_size_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @param uint32_t screen
|
||||
** @returns xcb_xinerama_get_screen_size_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_get_screen_size_cookie_t
|
||||
xcb_xinerama_get_screen_size_unchecked (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */,
|
||||
uint32_t screen /**< */);
|
||||
|
||||
/**
|
||||
* Return the reply
|
||||
* @param c The connection
|
||||
* @param cookie The cookie
|
||||
* @param e The xcb_generic_error_t supplied
|
||||
*
|
||||
* Returns the reply of the request asked by
|
||||
*
|
||||
* The parameter @p e supplied to this function must be NULL if
|
||||
* xcb_xinerama_get_screen_size_unchecked(). is used.
|
||||
* Otherwise, it stores the error if any.
|
||||
*
|
||||
* The returned value must be freed by the caller using free().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_get_screen_size_reply_t * xcb_xinerama_get_screen_size_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_xinerama_get_screen_size_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_xinerama_get_screen_size_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_get_screen_size_reply_t *
|
||||
xcb_xinerama_get_screen_size_reply (xcb_connection_t *c /**< */,
|
||||
xcb_xinerama_get_screen_size_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_is_active_cookie_t xcb_xinerama_is_active
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_xinerama_is_active_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_is_active_cookie_t
|
||||
xcb_xinerama_is_active (xcb_connection_t *c /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* placed in the event queue.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_is_active_cookie_t xcb_xinerama_is_active_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_xinerama_is_active_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_is_active_cookie_t
|
||||
xcb_xinerama_is_active_unchecked (xcb_connection_t *c /**< */);
|
||||
|
||||
/**
|
||||
* Return the reply
|
||||
* @param c The connection
|
||||
* @param cookie The cookie
|
||||
* @param e The xcb_generic_error_t supplied
|
||||
*
|
||||
* Returns the reply of the request asked by
|
||||
*
|
||||
* The parameter @p e supplied to this function must be NULL if
|
||||
* xcb_xinerama_is_active_unchecked(). is used.
|
||||
* Otherwise, it stores the error if any.
|
||||
*
|
||||
* The returned value must be freed by the caller using free().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_is_active_reply_t * xcb_xinerama_is_active_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_xinerama_is_active_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_xinerama_is_active_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_is_active_reply_t *
|
||||
xcb_xinerama_is_active_reply (xcb_connection_t *c /**< */,
|
||||
xcb_xinerama_is_active_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_query_screens_cookie_t xcb_xinerama_query_screens
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_xinerama_query_screens_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_query_screens_cookie_t
|
||||
xcb_xinerama_query_screens (xcb_connection_t *c /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* placed in the event queue.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_query_screens_cookie_t xcb_xinerama_query_screens_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @returns xcb_xinerama_query_screens_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_query_screens_cookie_t
|
||||
xcb_xinerama_query_screens_unchecked (xcb_connection_t *c /**< */);
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_screen_info_t * xcb_xinerama_query_screens_screen_info
|
||||
**
|
||||
** @param const xcb_xinerama_query_screens_reply_t *R
|
||||
** @returns xcb_xinerama_screen_info_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_screen_info_t *
|
||||
xcb_xinerama_query_screens_screen_info (const xcb_xinerama_query_screens_reply_t *R /**< */);
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** int xcb_xinerama_query_screens_screen_info_length
|
||||
**
|
||||
** @param const xcb_xinerama_query_screens_reply_t *R
|
||||
** @returns int
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
int
|
||||
xcb_xinerama_query_screens_screen_info_length (const xcb_xinerama_query_screens_reply_t *R /**< */);
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_screen_info_iterator_t xcb_xinerama_query_screens_screen_info_iterator
|
||||
**
|
||||
** @param const xcb_xinerama_query_screens_reply_t *R
|
||||
** @returns xcb_xinerama_screen_info_iterator_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_screen_info_iterator_t
|
||||
xcb_xinerama_query_screens_screen_info_iterator (const xcb_xinerama_query_screens_reply_t *R /**< */);
|
||||
|
||||
/**
|
||||
* Return the reply
|
||||
* @param c The connection
|
||||
* @param cookie The cookie
|
||||
* @param e The xcb_generic_error_t supplied
|
||||
*
|
||||
* Returns the reply of the request asked by
|
||||
*
|
||||
* The parameter @p e supplied to this function must be NULL if
|
||||
* xcb_xinerama_query_screens_unchecked(). is used.
|
||||
* Otherwise, it stores the error if any.
|
||||
*
|
||||
* The returned value must be freed by the caller using free().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_xinerama_query_screens_reply_t * xcb_xinerama_query_screens_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_xinerama_query_screens_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_xinerama_query_screens_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_xinerama_query_screens_reply_t *
|
||||
xcb_xinerama_query_screens_reply (xcb_connection_t *c /**< */,
|
||||
xcb_xinerama_query_screens_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
5717
external/mit/xorg/lib/libxcb/files/xinput.c
vendored
Normal file
5717
external/mit/xorg/lib/libxcb/files/xinput.c
vendored
Normal file
File diff suppressed because it is too large
Load Diff
6882
external/mit/xorg/lib/libxcb/files/xinput.h
vendored
Normal file
6882
external/mit/xorg/lib/libxcb/files/xinput.h
vendored
Normal file
File diff suppressed because it is too large
Load Diff
14471
external/mit/xorg/lib/libxcb/files/xproto.c
vendored
Normal file
14471
external/mit/xorg/lib/libxcb/files/xproto.c
vendored
Normal file
File diff suppressed because it is too large
Load Diff
15326
external/mit/xorg/lib/libxcb/files/xproto.h
vendored
Normal file
15326
external/mit/xorg/lib/libxcb/files/xproto.h
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2951
external/mit/xorg/lib/libxcb/files/xselinux.c
vendored
Normal file
2951
external/mit/xorg/lib/libxcb/files/xselinux.c
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2973
external/mit/xorg/lib/libxcb/files/xselinux.h
vendored
Normal file
2973
external/mit/xorg/lib/libxcb/files/xselinux.h
vendored
Normal file
File diff suppressed because it is too large
Load Diff
399
external/mit/xorg/lib/libxcb/files/xtest.c
vendored
Normal file
399
external/mit/xorg/lib/libxcb/files/xtest.c
vendored
Normal file
@ -0,0 +1,399 @@
|
||||
/*
|
||||
* This file generated automatically from xtest.xml by c_client.py.
|
||||
* Edit at your peril.
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
#include <assert.h>
|
||||
#include "xcbext.h"
|
||||
#include "xtest.h"
|
||||
#include "xproto.h"
|
||||
|
||||
xcb_extension_t xcb_test_id = { "XTEST", 0 };
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_test_get_version_cookie_t xcb_test_get_version
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint8_t major_version
|
||||
** @param uint16_t minor_version
|
||||
** @returns xcb_test_get_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_test_get_version_cookie_t
|
||||
xcb_test_get_version (xcb_connection_t *c /**< */,
|
||||
uint8_t major_version /**< */,
|
||||
uint16_t minor_version /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_test_id,
|
||||
/* opcode */ XCB_TEST_GET_VERSION,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_test_get_version_cookie_t xcb_ret;
|
||||
xcb_test_get_version_request_t xcb_out;
|
||||
|
||||
xcb_out.major_version = major_version;
|
||||
xcb_out.pad0 = 0;
|
||||
xcb_out.minor_version = minor_version;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_test_get_version_cookie_t xcb_test_get_version_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint8_t major_version
|
||||
** @param uint16_t minor_version
|
||||
** @returns xcb_test_get_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_test_get_version_cookie_t
|
||||
xcb_test_get_version_unchecked (xcb_connection_t *c /**< */,
|
||||
uint8_t major_version /**< */,
|
||||
uint16_t minor_version /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_test_id,
|
||||
/* opcode */ XCB_TEST_GET_VERSION,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_test_get_version_cookie_t xcb_ret;
|
||||
xcb_test_get_version_request_t xcb_out;
|
||||
|
||||
xcb_out.major_version = major_version;
|
||||
xcb_out.pad0 = 0;
|
||||
xcb_out.minor_version = minor_version;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_test_get_version_reply_t * xcb_test_get_version_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_test_get_version_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_test_get_version_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_test_get_version_reply_t *
|
||||
xcb_test_get_version_reply (xcb_connection_t *c /**< */,
|
||||
xcb_test_get_version_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */)
|
||||
{
|
||||
return (xcb_test_get_version_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_test_compare_cursor_cookie_t xcb_test_compare_cursor
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @param xcb_cursor_t cursor
|
||||
** @returns xcb_test_compare_cursor_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_test_compare_cursor_cookie_t
|
||||
xcb_test_compare_cursor (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */,
|
||||
xcb_cursor_t cursor /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_test_id,
|
||||
/* opcode */ XCB_TEST_COMPARE_CURSOR,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_test_compare_cursor_cookie_t xcb_ret;
|
||||
xcb_test_compare_cursor_request_t xcb_out;
|
||||
|
||||
xcb_out.window = window;
|
||||
xcb_out.cursor = cursor;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_test_compare_cursor_cookie_t xcb_test_compare_cursor_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @param xcb_cursor_t cursor
|
||||
** @returns xcb_test_compare_cursor_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_test_compare_cursor_cookie_t
|
||||
xcb_test_compare_cursor_unchecked (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */,
|
||||
xcb_cursor_t cursor /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_test_id,
|
||||
/* opcode */ XCB_TEST_COMPARE_CURSOR,
|
||||
/* isvoid */ 0
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_test_compare_cursor_cookie_t xcb_ret;
|
||||
xcb_test_compare_cursor_request_t xcb_out;
|
||||
|
||||
xcb_out.window = window;
|
||||
xcb_out.cursor = cursor;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_test_compare_cursor_reply_t * xcb_test_compare_cursor_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_test_compare_cursor_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_test_compare_cursor_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_test_compare_cursor_reply_t *
|
||||
xcb_test_compare_cursor_reply (xcb_connection_t *c /**< */,
|
||||
xcb_test_compare_cursor_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */)
|
||||
{
|
||||
return (xcb_test_compare_cursor_reply_t *) xcb_wait_for_reply(c, cookie.sequence, e);
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_test_fake_input_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint8_t type
|
||||
** @param uint8_t detail
|
||||
** @param uint32_t time
|
||||
** @param xcb_window_t root
|
||||
** @param uint16_t rootX
|
||||
** @param uint16_t rootY
|
||||
** @param uint8_t deviceid
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_test_fake_input_checked (xcb_connection_t *c /**< */,
|
||||
uint8_t type /**< */,
|
||||
uint8_t detail /**< */,
|
||||
uint32_t time /**< */,
|
||||
xcb_window_t root /**< */,
|
||||
uint16_t rootX /**< */,
|
||||
uint16_t rootY /**< */,
|
||||
uint8_t deviceid /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_test_id,
|
||||
/* opcode */ XCB_TEST_FAKE_INPUT,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_test_fake_input_request_t xcb_out;
|
||||
|
||||
xcb_out.type = type;
|
||||
xcb_out.detail = detail;
|
||||
memset(xcb_out.pad0, 0, 2);
|
||||
xcb_out.time = time;
|
||||
xcb_out.root = root;
|
||||
memset(xcb_out.pad1, 0, 8);
|
||||
xcb_out.rootX = rootX;
|
||||
xcb_out.rootY = rootY;
|
||||
memset(xcb_out.pad2, 0, 7);
|
||||
xcb_out.deviceid = deviceid;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_test_fake_input
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint8_t type
|
||||
** @param uint8_t detail
|
||||
** @param uint32_t time
|
||||
** @param xcb_window_t root
|
||||
** @param uint16_t rootX
|
||||
** @param uint16_t rootY
|
||||
** @param uint8_t deviceid
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_test_fake_input (xcb_connection_t *c /**< */,
|
||||
uint8_t type /**< */,
|
||||
uint8_t detail /**< */,
|
||||
uint32_t time /**< */,
|
||||
xcb_window_t root /**< */,
|
||||
uint16_t rootX /**< */,
|
||||
uint16_t rootY /**< */,
|
||||
uint8_t deviceid /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_test_id,
|
||||
/* opcode */ XCB_TEST_FAKE_INPUT,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_test_fake_input_request_t xcb_out;
|
||||
|
||||
xcb_out.type = type;
|
||||
xcb_out.detail = detail;
|
||||
memset(xcb_out.pad0, 0, 2);
|
||||
xcb_out.time = time;
|
||||
xcb_out.root = root;
|
||||
memset(xcb_out.pad1, 0, 8);
|
||||
xcb_out.rootX = rootX;
|
||||
xcb_out.rootY = rootY;
|
||||
memset(xcb_out.pad2, 0, 7);
|
||||
xcb_out.deviceid = deviceid;
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_test_grab_control_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint8_t impervious
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_test_grab_control_checked (xcb_connection_t *c /**< */,
|
||||
uint8_t impervious /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_test_id,
|
||||
/* opcode */ XCB_TEST_GRAB_CONTROL,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_test_grab_control_request_t xcb_out;
|
||||
|
||||
xcb_out.impervious = impervious;
|
||||
memset(xcb_out.pad0, 0, 3);
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, XCB_REQUEST_CHECKED, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_test_grab_control
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint8_t impervious
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_test_grab_control (xcb_connection_t *c /**< */,
|
||||
uint8_t impervious /**< */)
|
||||
{
|
||||
static const xcb_protocol_request_t xcb_req = {
|
||||
/* count */ 2,
|
||||
/* ext */ &xcb_test_id,
|
||||
/* opcode */ XCB_TEST_GRAB_CONTROL,
|
||||
/* isvoid */ 1
|
||||
};
|
||||
|
||||
struct iovec xcb_parts[4];
|
||||
xcb_void_cookie_t xcb_ret;
|
||||
xcb_test_grab_control_request_t xcb_out;
|
||||
|
||||
xcb_out.impervious = impervious;
|
||||
memset(xcb_out.pad0, 0, 3);
|
||||
|
||||
xcb_parts[2].iov_base = (char *) &xcb_out;
|
||||
xcb_parts[2].iov_len = sizeof(xcb_out);
|
||||
xcb_parts[3].iov_base = 0;
|
||||
xcb_parts[3].iov_len = -xcb_parts[2].iov_len & 3;
|
||||
xcb_ret.sequence = xcb_send_request(c, 0, xcb_parts + 2, &xcb_req);
|
||||
return xcb_ret;
|
||||
}
|
||||
|
431
external/mit/xorg/lib/libxcb/files/xtest.h
vendored
Normal file
431
external/mit/xorg/lib/libxcb/files/xtest.h
vendored
Normal file
@ -0,0 +1,431 @@
|
||||
/*
|
||||
* This file generated automatically from xtest.xml by c_client.py.
|
||||
* Edit at your peril.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @defgroup XCB_Test_API XCB Test API
|
||||
* @brief Test XCB Protocol Implementation.
|
||||
* @{
|
||||
**/
|
||||
|
||||
#ifndef __XTEST_H
|
||||
#define __XTEST_H
|
||||
|
||||
#include "xcb.h"
|
||||
#include "xproto.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#define XCB_TEST_MAJOR_VERSION 2
|
||||
#define XCB_TEST_MINOR_VERSION 1
|
||||
|
||||
extern xcb_extension_t xcb_test_id;
|
||||
|
||||
/**
|
||||
* @brief xcb_test_get_version_cookie_t
|
||||
**/
|
||||
typedef struct xcb_test_get_version_cookie_t {
|
||||
unsigned int sequence; /**< */
|
||||
} xcb_test_get_version_cookie_t;
|
||||
|
||||
/** Opcode for xcb_test_get_version. */
|
||||
#define XCB_TEST_GET_VERSION 0
|
||||
|
||||
/**
|
||||
* @brief xcb_test_get_version_request_t
|
||||
**/
|
||||
typedef struct xcb_test_get_version_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
uint8_t major_version; /**< */
|
||||
uint8_t pad0; /**< */
|
||||
uint16_t minor_version; /**< */
|
||||
} xcb_test_get_version_request_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_test_get_version_reply_t
|
||||
**/
|
||||
typedef struct xcb_test_get_version_reply_t {
|
||||
uint8_t response_type; /**< */
|
||||
uint8_t major_version; /**< */
|
||||
uint16_t sequence; /**< */
|
||||
uint32_t length; /**< */
|
||||
uint16_t minor_version; /**< */
|
||||
} xcb_test_get_version_reply_t;
|
||||
|
||||
typedef enum xcb_test_cursor_t {
|
||||
XCB_TEST_CURSOR_NONE = 0,
|
||||
XCB_TEST_CURSOR_CURRENT = 1
|
||||
} xcb_test_cursor_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_test_compare_cursor_cookie_t
|
||||
**/
|
||||
typedef struct xcb_test_compare_cursor_cookie_t {
|
||||
unsigned int sequence; /**< */
|
||||
} xcb_test_compare_cursor_cookie_t;
|
||||
|
||||
/** Opcode for xcb_test_compare_cursor. */
|
||||
#define XCB_TEST_COMPARE_CURSOR 1
|
||||
|
||||
/**
|
||||
* @brief xcb_test_compare_cursor_request_t
|
||||
**/
|
||||
typedef struct xcb_test_compare_cursor_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
xcb_window_t window; /**< */
|
||||
xcb_cursor_t cursor; /**< */
|
||||
} xcb_test_compare_cursor_request_t;
|
||||
|
||||
/**
|
||||
* @brief xcb_test_compare_cursor_reply_t
|
||||
**/
|
||||
typedef struct xcb_test_compare_cursor_reply_t {
|
||||
uint8_t response_type; /**< */
|
||||
uint8_t same; /**< */
|
||||
uint16_t sequence; /**< */
|
||||
uint32_t length; /**< */
|
||||
} xcb_test_compare_cursor_reply_t;
|
||||
|
||||
/** Opcode for xcb_test_fake_input. */
|
||||
#define XCB_TEST_FAKE_INPUT 2
|
||||
|
||||
/**
|
||||
* @brief xcb_test_fake_input_request_t
|
||||
**/
|
||||
typedef struct xcb_test_fake_input_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
uint8_t type; /**< */
|
||||
uint8_t detail; /**< */
|
||||
uint8_t pad0[2]; /**< */
|
||||
uint32_t time; /**< */
|
||||
xcb_window_t root; /**< */
|
||||
uint8_t pad1[8]; /**< */
|
||||
uint16_t rootX; /**< */
|
||||
uint16_t rootY; /**< */
|
||||
uint8_t pad2[7]; /**< */
|
||||
uint8_t deviceid; /**< */
|
||||
} xcb_test_fake_input_request_t;
|
||||
|
||||
/** Opcode for xcb_test_grab_control. */
|
||||
#define XCB_TEST_GRAB_CONTROL 3
|
||||
|
||||
/**
|
||||
* @brief xcb_test_grab_control_request_t
|
||||
**/
|
||||
typedef struct xcb_test_grab_control_request_t {
|
||||
uint8_t major_opcode; /**< */
|
||||
uint8_t minor_opcode; /**< */
|
||||
uint16_t length; /**< */
|
||||
uint8_t impervious; /**< */
|
||||
uint8_t pad0[3]; /**< */
|
||||
} xcb_test_grab_control_request_t;
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_test_get_version_cookie_t xcb_test_get_version
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint8_t major_version
|
||||
** @param uint16_t minor_version
|
||||
** @returns xcb_test_get_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_test_get_version_cookie_t
|
||||
xcb_test_get_version (xcb_connection_t *c /**< */,
|
||||
uint8_t major_version /**< */,
|
||||
uint16_t minor_version /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* placed in the event queue.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_test_get_version_cookie_t xcb_test_get_version_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint8_t major_version
|
||||
** @param uint16_t minor_version
|
||||
** @returns xcb_test_get_version_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_test_get_version_cookie_t
|
||||
xcb_test_get_version_unchecked (xcb_connection_t *c /**< */,
|
||||
uint8_t major_version /**< */,
|
||||
uint16_t minor_version /**< */);
|
||||
|
||||
/**
|
||||
* Return the reply
|
||||
* @param c The connection
|
||||
* @param cookie The cookie
|
||||
* @param e The xcb_generic_error_t supplied
|
||||
*
|
||||
* Returns the reply of the request asked by
|
||||
*
|
||||
* The parameter @p e supplied to this function must be NULL if
|
||||
* xcb_test_get_version_unchecked(). is used.
|
||||
* Otherwise, it stores the error if any.
|
||||
*
|
||||
* The returned value must be freed by the caller using free().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_test_get_version_reply_t * xcb_test_get_version_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_test_get_version_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_test_get_version_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_test_get_version_reply_t *
|
||||
xcb_test_get_version_reply (xcb_connection_t *c /**< */,
|
||||
xcb_test_get_version_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_test_compare_cursor_cookie_t xcb_test_compare_cursor
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @param xcb_cursor_t cursor
|
||||
** @returns xcb_test_compare_cursor_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_test_compare_cursor_cookie_t
|
||||
xcb_test_compare_cursor (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */,
|
||||
xcb_cursor_t cursor /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* placed in the event queue.
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_test_compare_cursor_cookie_t xcb_test_compare_cursor_unchecked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_window_t window
|
||||
** @param xcb_cursor_t cursor
|
||||
** @returns xcb_test_compare_cursor_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_test_compare_cursor_cookie_t
|
||||
xcb_test_compare_cursor_unchecked (xcb_connection_t *c /**< */,
|
||||
xcb_window_t window /**< */,
|
||||
xcb_cursor_t cursor /**< */);
|
||||
|
||||
/**
|
||||
* Return the reply
|
||||
* @param c The connection
|
||||
* @param cookie The cookie
|
||||
* @param e The xcb_generic_error_t supplied
|
||||
*
|
||||
* Returns the reply of the request asked by
|
||||
*
|
||||
* The parameter @p e supplied to this function must be NULL if
|
||||
* xcb_test_compare_cursor_unchecked(). is used.
|
||||
* Otherwise, it stores the error if any.
|
||||
*
|
||||
* The returned value must be freed by the caller using free().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_test_compare_cursor_reply_t * xcb_test_compare_cursor_reply
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param xcb_test_compare_cursor_cookie_t cookie
|
||||
** @param xcb_generic_error_t **e
|
||||
** @returns xcb_test_compare_cursor_reply_t *
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_test_compare_cursor_reply_t *
|
||||
xcb_test_compare_cursor_reply (xcb_connection_t *c /**< */,
|
||||
xcb_test_compare_cursor_cookie_t cookie /**< */,
|
||||
xcb_generic_error_t **e /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will not cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* saved for handling by xcb_request_check().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_test_fake_input_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint8_t type
|
||||
** @param uint8_t detail
|
||||
** @param uint32_t time
|
||||
** @param xcb_window_t root
|
||||
** @param uint16_t rootX
|
||||
** @param uint16_t rootY
|
||||
** @param uint8_t deviceid
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_test_fake_input_checked (xcb_connection_t *c /**< */,
|
||||
uint8_t type /**< */,
|
||||
uint8_t detail /**< */,
|
||||
uint32_t time /**< */,
|
||||
xcb_window_t root /**< */,
|
||||
uint16_t rootX /**< */,
|
||||
uint16_t rootY /**< */,
|
||||
uint8_t deviceid /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_test_fake_input
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint8_t type
|
||||
** @param uint8_t detail
|
||||
** @param uint32_t time
|
||||
** @param xcb_window_t root
|
||||
** @param uint16_t rootX
|
||||
** @param uint16_t rootY
|
||||
** @param uint8_t deviceid
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_test_fake_input (xcb_connection_t *c /**< */,
|
||||
uint8_t type /**< */,
|
||||
uint8_t detail /**< */,
|
||||
uint32_t time /**< */,
|
||||
xcb_window_t root /**< */,
|
||||
uint16_t rootX /**< */,
|
||||
uint16_t rootY /**< */,
|
||||
uint8_t deviceid /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
* This form can be used only if the request will not cause
|
||||
* a reply to be generated. Any returned error will be
|
||||
* saved for handling by xcb_request_check().
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_test_grab_control_checked
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint8_t impervious
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_test_grab_control_checked (xcb_connection_t *c /**< */,
|
||||
uint8_t impervious /**< */);
|
||||
|
||||
/**
|
||||
* Delivers a request to the X server
|
||||
* @param c The connection
|
||||
* @return A cookie
|
||||
*
|
||||
* Delivers a request to the X server.
|
||||
*
|
||||
*/
|
||||
|
||||
/*****************************************************************************
|
||||
**
|
||||
** xcb_void_cookie_t xcb_test_grab_control
|
||||
**
|
||||
** @param xcb_connection_t *c
|
||||
** @param uint8_t impervious
|
||||
** @returns xcb_void_cookie_t
|
||||
**
|
||||
*****************************************************************************/
|
||||
|
||||
xcb_void_cookie_t
|
||||
xcb_test_grab_control (xcb_connection_t *c /**< */,
|
||||
uint8_t impervious /**< */);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
3156
external/mit/xorg/lib/libxcb/files/xv.c
vendored
Normal file
3156
external/mit/xorg/lib/libxcb/files/xv.c
vendored
Normal file
File diff suppressed because it is too large
Load Diff
3307
external/mit/xorg/lib/libxcb/files/xv.h
vendored
Normal file
3307
external/mit/xorg/lib/libxcb/files/xv.h
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1255
external/mit/xorg/lib/libxcb/files/xvmc.c
vendored
Normal file
1255
external/mit/xorg/lib/libxcb/files/xvmc.c
vendored
Normal file
File diff suppressed because it is too large
Load Diff
1375
external/mit/xorg/lib/libxcb/files/xvmc.h
vendored
Normal file
1375
external/mit/xorg/lib/libxcb/files/xvmc.h
vendored
Normal file
File diff suppressed because it is too large
Load Diff
5
external/mit/xorg/lib/libxcb/glx/Makefile
vendored
Normal file
5
external/mit/xorg/lib/libxcb/glx/Makefile
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:29 mrg Exp $
|
||||
|
||||
XCBEXT= glx
|
||||
|
||||
.include "../xcb.mk"
|
64
external/mit/xorg/lib/libxcb/libxcb/Makefile
vendored
Normal file
64
external/mit/xorg/lib/libxcb/libxcb/Makefile
vendored
Normal file
@ -0,0 +1,64 @@
|
||||
# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:29 mrg Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
|
||||
LIB= xcb
|
||||
.PATH: ${X11SRCDIR.${LIB}}/src
|
||||
.PATH: ${X11SRCDIR.${LIB}}
|
||||
.PATH: ${.CURDIR}/../files
|
||||
|
||||
SRCS= xcb_auth.c \
|
||||
xcb_conn.c \
|
||||
xcb_ext.c \
|
||||
xcb_in.c \
|
||||
xcb_list.c \
|
||||
xcb_out.c \
|
||||
xcb_util.c \
|
||||
xcb_xid.c
|
||||
|
||||
CPPFLAGS+= -DHAVE_CONFIG_H
|
||||
CPPFLAGS+= -I${X11SRCDIR.${LIB}}/../include
|
||||
#CPPFLAGS+= -I${.CURDIR}/../files
|
||||
CPPFLAGS+= -I${DESTDIR}${X11INCDIR}/xcb
|
||||
|
||||
LIBDPLIBS=\
|
||||
Xaw7 ${.CURDIR}/../../libXaw \
|
||||
Xdmcp ${.CURDIR}/../../libXdmcp
|
||||
|
||||
NOMAN= # defined
|
||||
|
||||
PKGDIST= xcb
|
||||
|
||||
INCSDIR=${X11INCDIR}/xcb
|
||||
INCS= \
|
||||
bigreq.h \
|
||||
composite.h \
|
||||
damage.h \
|
||||
dpms.h \
|
||||
dri2.h \
|
||||
glx.h \
|
||||
randr.h \
|
||||
record.h \
|
||||
render.h \
|
||||
res.h \
|
||||
screensaver.h \
|
||||
shape.h \
|
||||
shm.h \
|
||||
sync.h \
|
||||
xc_misc.h \
|
||||
xcb.h \
|
||||
xcbext.h \
|
||||
xevie.h \
|
||||
xf86dri.h \
|
||||
xfixes.h \
|
||||
xinerama.h \
|
||||
xinput.h \
|
||||
xprint.h \
|
||||
xproto.h \
|
||||
xselinux.h \
|
||||
xtest.h \
|
||||
xv.h \
|
||||
xvmc.h
|
||||
|
||||
.include <bsd.x11.mk>
|
||||
.include <bsd.lib.mk>
|
4
external/mit/xorg/lib/libxcb/libxcb/shlib_version
vendored
Normal file
4
external/mit/xorg/lib/libxcb/libxcb/shlib_version
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
# $NetBSD: shlib_version,v 1.1 2010/07/17 23:43:29 mrg Exp $
|
||||
#
|
||||
major=1
|
||||
minor=1
|
5
external/mit/xorg/lib/libxcb/randr/Makefile
vendored
Normal file
5
external/mit/xorg/lib/libxcb/randr/Makefile
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:29 mrg Exp $
|
||||
|
||||
XCBEXT= randr
|
||||
|
||||
.include "../xcb.mk"
|
5
external/mit/xorg/lib/libxcb/record/Makefile
vendored
Normal file
5
external/mit/xorg/lib/libxcb/record/Makefile
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:30 mrg Exp $
|
||||
|
||||
XCBEXT= record
|
||||
|
||||
.include "../xcb.mk"
|
5
external/mit/xorg/lib/libxcb/render/Makefile
vendored
Normal file
5
external/mit/xorg/lib/libxcb/render/Makefile
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:30 mrg Exp $
|
||||
|
||||
XCBEXT= render
|
||||
|
||||
.include "../xcb.mk"
|
5
external/mit/xorg/lib/libxcb/res/Makefile
vendored
Normal file
5
external/mit/xorg/lib/libxcb/res/Makefile
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:30 mrg Exp $
|
||||
|
||||
XCBEXT= res
|
||||
|
||||
.include "../xcb.mk"
|
5
external/mit/xorg/lib/libxcb/screensaver/Makefile
vendored
Normal file
5
external/mit/xorg/lib/libxcb/screensaver/Makefile
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:30 mrg Exp $
|
||||
|
||||
XCBEXT= screensaver
|
||||
|
||||
.include "../xcb.mk"
|
5
external/mit/xorg/lib/libxcb/shape/Makefile
vendored
Normal file
5
external/mit/xorg/lib/libxcb/shape/Makefile
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:30 mrg Exp $
|
||||
|
||||
XCBEXT= shape
|
||||
|
||||
.include "../xcb.mk"
|
5
external/mit/xorg/lib/libxcb/shm/Makefile
vendored
Normal file
5
external/mit/xorg/lib/libxcb/shm/Makefile
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:30 mrg Exp $
|
||||
|
||||
XCBEXT= shm
|
||||
|
||||
.include "../xcb.mk"
|
5
external/mit/xorg/lib/libxcb/sync/Makefile
vendored
Normal file
5
external/mit/xorg/lib/libxcb/sync/Makefile
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:31 mrg Exp $
|
||||
|
||||
XCBEXT= sync
|
||||
|
||||
.include "../xcb.mk"
|
5
external/mit/xorg/lib/libxcb/xc_misc/Makefile
vendored
Normal file
5
external/mit/xorg/lib/libxcb/xc_misc/Makefile
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:31 mrg Exp $
|
||||
|
||||
XCBEXT= xc_misc
|
||||
|
||||
.include "../xcb.mk"
|
26
external/mit/xorg/lib/libxcb/xcb.mk
vendored
Normal file
26
external/mit/xorg/lib/libxcb/xcb.mk
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
# $NetBSD: xcb.mk,v 1.1 2010/07/17 23:43:27 mrg Exp $
|
||||
|
||||
# define XCBEXT to something before including this
|
||||
|
||||
LIB= xcb-${XCBEXT}
|
||||
|
||||
SRCS= ${XCBEXT}.c
|
||||
|
||||
CPPFLAGS+= -I${X11SRCDIR.xcb}/src
|
||||
CPPFLAGS+= -I${.CURDIR}/../files
|
||||
|
||||
LIBDPLIBS=\
|
||||
xcb ${.CURDIR}/../libxcb \
|
||||
Xau ${.CURDIR}/../../libXau \
|
||||
Xdmcp ${.CURDIR}/../../libXdmcp
|
||||
|
||||
SHLIB_MAJOR= 0
|
||||
SHLIB_MINOR= 0
|
||||
|
||||
PKGCONFIG= xcb-${XCBEXT}
|
||||
PKGCONFIG_VERSION.${PKGCONFIG}= 1.6
|
||||
|
||||
.include <bsd.x11.mk>
|
||||
.include <bsd.lib.mk>
|
||||
|
||||
.PATH: ${.CURDIR}/../files ${X11SRCDIR.xcb}
|
5
external/mit/xorg/lib/libxcb/xevie/Makefile
vendored
Normal file
5
external/mit/xorg/lib/libxcb/xevie/Makefile
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:31 mrg Exp $
|
||||
|
||||
XCBEXT= xevie
|
||||
|
||||
.include "../xcb.mk"
|
5
external/mit/xorg/lib/libxcb/xf86dri/Makefile
vendored
Normal file
5
external/mit/xorg/lib/libxcb/xf86dri/Makefile
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:31 mrg Exp $
|
||||
|
||||
XCBEXT= xf86dri
|
||||
|
||||
.include "../xcb.mk"
|
5
external/mit/xorg/lib/libxcb/xfixes/Makefile
vendored
Normal file
5
external/mit/xorg/lib/libxcb/xfixes/Makefile
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:31 mrg Exp $
|
||||
|
||||
XCBEXT= xfixes
|
||||
|
||||
.include "../xcb.mk"
|
5
external/mit/xorg/lib/libxcb/xinerama/Makefile
vendored
Normal file
5
external/mit/xorg/lib/libxcb/xinerama/Makefile
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:31 mrg Exp $
|
||||
|
||||
XCBEXT= xinerama
|
||||
|
||||
.include "../xcb.mk"
|
5
external/mit/xorg/lib/libxcb/xinput/Makefile
vendored
Normal file
5
external/mit/xorg/lib/libxcb/xinput/Makefile
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:31 mrg Exp $
|
||||
|
||||
XCBEXT= xinput
|
||||
|
||||
.include "../xcb.mk"
|
5
external/mit/xorg/lib/libxcb/xproto/Makefile
vendored
Normal file
5
external/mit/xorg/lib/libxcb/xproto/Makefile
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:32 mrg Exp $
|
||||
|
||||
XCBEXT= xproto
|
||||
|
||||
.include "../xcb.mk"
|
5
external/mit/xorg/lib/libxcb/xtest/Makefile
vendored
Normal file
5
external/mit/xorg/lib/libxcb/xtest/Makefile
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:32 mrg Exp $
|
||||
|
||||
XCBEXT= xtest
|
||||
|
||||
.include "../xcb.mk"
|
5
external/mit/xorg/lib/libxcb/xv/Makefile
vendored
Normal file
5
external/mit/xorg/lib/libxcb/xv/Makefile
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:32 mrg Exp $
|
||||
|
||||
XCBEXT= xv
|
||||
|
||||
.include "../xcb.mk"
|
5
external/mit/xorg/lib/libxcb/xvmc/Makefile
vendored
Normal file
5
external/mit/xorg/lib/libxcb/xvmc/Makefile
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
# $NetBSD: Makefile,v 1.1 2010/07/17 23:43:32 mrg Exp $
|
||||
|
||||
XCBEXT= xvmc
|
||||
|
||||
.include "../xcb.mk"
|
Loading…
Reference in New Issue
Block a user