XCB Reply Functions

These functions ease the usage of asynchronous possibility of XCB about the reply retrieve of sent requests. More...

Functions

void xcb_reply_handlers_init (xcb_connection_t *c, xcb_reply_handlers_t *h)
 Initialize a reply handlers structure.
xcb_connection_t * xcb_reply_get_xcb_connection (xcb_reply_handlers_t *h)
 Get the connection to the X server used in reply handlers.
int xcb_reply_poll_for_reply (xcb_reply_handlers_t *h)
 Poll for reply using reply handlers.
void xcb_reply_start_thread (xcb_reply_handlers_t *h)
 Start reply handling thread.
void xcb_reply_stop_thread (xcb_reply_handlers_t *h)
 Stop reply handling thread.
void xcb_reply_add_handler (xcb_reply_handlers_t *h, unsigned int request, xcb_generic_reply_handler_t handler, void *data)
 Add a reply handler.

Detailed Description

These functions ease the usage of asynchronous possibility of XCB about the reply retrieve of sent requests.


Function Documentation

void xcb_reply_add_handler ( xcb_reply_handlers_t *  h,
unsigned int  request,
xcb_generic_reply_handler_t  handler,
void *  data 
)

Add a reply handler.

Parameters:
h The reply handlers data structure to fill.
request The request identifier.
handler The handler to call for this request.
data Optional data passed to the callback function handling request.

xcb_connection_t* xcb_reply_get_xcb_connection ( xcb_reply_handlers_t *  h  ) 

Get the connection to the X server used in reply handlers.

Parameters:
h The reply handlers data structure.
Returns:
The connection to the X server.

void xcb_reply_handlers_init ( xcb_connection_t *  c,
xcb_reply_handlers_t *  h 
)

Initialize a reply handlers structure.

Parameters:
c The connection to the X server.
h The reply handlers.

int xcb_reply_poll_for_reply ( xcb_reply_handlers_t *  h  ) 

Poll for reply using reply handlers.

Parameters:
h The reply handlers data structure.
Returns:
The value return by the handler callback function, or 0 if no handler was found.

void xcb_reply_start_thread ( xcb_reply_handlers_t *  h  ) 

Start reply handling thread.

This thread will run forever until it is stop with xcb_reply_stop_thread.

Parameters:
h The reply handlers.

void xcb_reply_stop_thread ( xcb_reply_handlers_t *  h  ) 

Stop reply handling thread.

Parameters:
h The reply handlers.


Generated on Thu Feb 25 16:28:36 2010 for XCBUtility by  doxygen 1.5.6