XCB  1.13.1
Data Structures | Macros | Typedefs | Functions | Variables
XCB XDRM API

XDRM XCB Protocol Implementation. More...

Data Structures

struct  xcb_xdrm_query_version_cookie_t
 xcb_xdrm_query_version_cookie_t More...
 
struct  xcb_xdrm_query_version_request_t
 xcb_xdrm_query_version_request_t More...
 
struct  xcb_xdrm_query_version_reply_t
 xcb_xdrm_query_version_reply_t More...
 
struct  xcb_xdrm_add_authorized_app_for_capture_request_t
 xcb_xdrm_add_authorized_app_for_capture_request_t More...
 
struct  xcb_xdrm_remove_authorized_app_for_capture_request_t
 xcb_xdrm_remove_authorized_app_for_capture_request_t More...
 

Macros

#define XCB_XDRM_MAJOR_VERSION   1
 
#define XCB_XDRM_MINOR_VERSION   0
 
#define XCB_XDRM_QUERY_VERSION   0
 
#define XCB_XDRM_ADD_AUTHORIZED_APP_FOR_CAPTURE   1
 
#define XCB_XDRM_REMOVE_AUTHORIZED_APP_FOR_CAPTURE   1
 

Typedefs

typedef struct xcb_xdrm_query_version_cookie_t xcb_xdrm_query_version_cookie_t
 xcb_xdrm_query_version_cookie_t
 
typedef struct xcb_xdrm_query_version_request_t xcb_xdrm_query_version_request_t
 xcb_xdrm_query_version_request_t
 
typedef struct xcb_xdrm_query_version_reply_t xcb_xdrm_query_version_reply_t
 xcb_xdrm_query_version_reply_t
 
typedef struct xcb_xdrm_add_authorized_app_for_capture_request_t xcb_xdrm_add_authorized_app_for_capture_request_t
 xcb_xdrm_add_authorized_app_for_capture_request_t
 
typedef struct xcb_xdrm_remove_authorized_app_for_capture_request_t xcb_xdrm_remove_authorized_app_for_capture_request_t
 xcb_xdrm_remove_authorized_app_for_capture_request_t
 

Functions

xcb_xdrm_query_version_cookie_t xcb_xdrm_query_version (xcb_connection_t *c, uint32_t major_version, uint32_t minor_version)
 
xcb_xdrm_query_version_cookie_t xcb_xdrm_query_version_unchecked (xcb_connection_t *c, uint32_t major_version, uint32_t minor_version)
 
xcb_xdrm_query_version_reply_txcb_xdrm_query_version_reply (xcb_connection_t *c, xcb_xdrm_query_version_cookie_t cookie, xcb_generic_error_t **e)
 
xcb_void_cookie_t xcb_xdrm_add_authorized_app_for_capture_checked (xcb_connection_t *c, uint32_t fileSize, int32_t app_id_fd)
 
xcb_void_cookie_t xcb_xdrm_add_authorized_app_for_capture (xcb_connection_t *c, uint32_t fileSize, int32_t app_id_fd)
 
xcb_void_cookie_t xcb_xdrm_remove_authorized_app_for_capture_checked (xcb_connection_t *c, uint32_t fileSize, int32_t app_id_fd)
 
xcb_void_cookie_t xcb_xdrm_remove_authorized_app_for_capture (xcb_connection_t *c, uint32_t fileSize, int32_t app_id_fd)
 

Variables

xcb_extension_t xcb_xdrm_id
 

Detailed Description

XDRM XCB Protocol Implementation.

Macro Definition Documentation

◆ XCB_XDRM_ADD_AUTHORIZED_APP_FOR_CAPTURE

#define XCB_XDRM_ADD_AUTHORIZED_APP_FOR_CAPTURE   1

Opcode for xcb_xdrm_add_authorized_app_for_capture.

◆ XCB_XDRM_QUERY_VERSION

#define XCB_XDRM_QUERY_VERSION   0

Opcode for xcb_xdrm_query_version.

◆ XCB_XDRM_REMOVE_AUTHORIZED_APP_FOR_CAPTURE

#define XCB_XDRM_REMOVE_AUTHORIZED_APP_FOR_CAPTURE   1

Opcode for xcb_xdrm_remove_authorized_app_for_capture.

Function Documentation

◆ xcb_xdrm_add_authorized_app_for_capture()

xcb_void_cookie_t xcb_xdrm_add_authorized_app_for_capture ( xcb_connection_t c,
uint32_t  fileSize,
int32_t  app_id_fd 
)
Parameters
cThe connection
Returns
A cookie

Delivers a request to the X server.

◆ xcb_xdrm_add_authorized_app_for_capture_checked()

xcb_void_cookie_t xcb_xdrm_add_authorized_app_for_capture_checked ( xcb_connection_t c,
uint32_t  fileSize,
int32_t  app_id_fd 
)
Parameters
cThe connection
Returns
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_xdrm_query_version()

xcb_xdrm_query_version_cookie_t xcb_xdrm_query_version ( xcb_connection_t c,
uint32_t  major_version,
uint32_t  minor_version 
)
Parameters
cThe connection
Returns
A cookie

Delivers a request to the X server.

◆ xcb_xdrm_query_version_reply()

xcb_xdrm_query_version_reply_t* xcb_xdrm_query_version_reply ( xcb_connection_t c,
xcb_xdrm_query_version_cookie_t  cookie,
xcb_generic_error_t **  e 
)

Return the reply

Parameters
cThe connection
cookieThe cookie
eThe xcb_generic_error_t supplied

Returns the reply of the request asked by

The parameter e supplied to this function must be NULL if xcb_xdrm_query_version_unchecked(). is used. Otherwise, it stores the error if any.

The returned value must be freed by the caller using free().

◆ xcb_xdrm_query_version_unchecked()

xcb_xdrm_query_version_cookie_t xcb_xdrm_query_version_unchecked ( xcb_connection_t c,
uint32_t  major_version,
uint32_t  minor_version 
)
Parameters
cThe connection
Returns
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_xdrm_remove_authorized_app_for_capture()

xcb_void_cookie_t xcb_xdrm_remove_authorized_app_for_capture ( xcb_connection_t c,
uint32_t  fileSize,
int32_t  app_id_fd 
)
Parameters
cThe connection
Returns
A cookie

Delivers a request to the X server.

◆ xcb_xdrm_remove_authorized_app_for_capture_checked()

xcb_void_cookie_t xcb_xdrm_remove_authorized_app_for_capture_checked ( xcb_connection_t c,
uint32_t  fileSize,
int32_t  app_id_fd 
)
Parameters
cThe connection
Returns
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().