2016-03-01 18:17:39 +01:00
|
|
|
#ifndef ROFI_XCB_H
|
|
|
|
#define ROFI_XCB_H
|
|
|
|
|
2016-10-15 15:39:08 +02:00
|
|
|
/**
|
|
|
|
* xcb data structure type declaration.
|
|
|
|
*/
|
2016-03-01 19:48:18 +01:00
|
|
|
typedef struct _xcb_stuff xcb_stuff;
|
2016-03-01 18:17:39 +01:00
|
|
|
|
2016-10-15 15:39:08 +02:00
|
|
|
/**
|
|
|
|
* Global pointer to xcb_stuff instance.
|
|
|
|
*/
|
2016-03-01 18:17:39 +01:00
|
|
|
extern xcb_stuff *xcb;
|
|
|
|
|
2016-10-15 15:39:08 +02:00
|
|
|
/**
|
|
|
|
* @param xcb the xcb data structure
|
|
|
|
*
|
|
|
|
* Get the root window.
|
|
|
|
*
|
|
|
|
* @returns the root window.
|
2016-10-15 15:45:28 +02:00
|
|
|
*/
|
|
|
|
xcb_window_t xcb_stuff_get_root_window ( xcb_stuff *xcb );
|
|
|
|
/**
|
2016-10-15 15:39:08 +02:00
|
|
|
* @param xcb The xcb data structure.
|
|
|
|
*
|
|
|
|
* Disconnect and free all xcb connections and references.
|
|
|
|
*/
|
2016-03-01 18:33:26 +01:00
|
|
|
void xcb_stuff_wipe ( xcb_stuff *xcb );
|
2016-03-01 18:17:39 +01:00
|
|
|
#endif
|