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