Cast FONT_NAME to (FcChar8 *).
[gwm.git] / window-table.h
blob61962a16bf949ad8068ee76bb857281d1f8ba56a
1 #ifndef WINDOW_TABLE_H
2 #define WINDOW_TABLE_H
4 extern struct window_table {
5 struct half_table {
6 xcb_window_t key;
7 int index;
8 } *t[ 2 ];
9 struct gwm_window **values; /* compact array containing the values, to
10 make iteration more efficient */
11 int n; /* number of entries in each half table */
12 int used; /* number of entries occupied */
13 int max; /* maximum chain length to follow during insertion */
14 unsigned long hash;
15 } windows, update_windows;
17 extern void table_init( struct window_table *table );
18 extern void table_destroy( struct window_table *table );
19 extern PURE struct gwm_window *table_lookup( struct window_table *table,
20 xcb_window_t key );
21 extern void queue_window_update( struct gwm_window *window,
22 int x, int y, int width, int height,
23 int cleared );
24 extern void window_update_done( struct gwm_window *window );
25 extern MALLOC struct gwm_window *add_window( xcb_window_t w );
26 extern void forget_window( struct gwm_window *window );
27 extern struct gwm_window *lookup_window( xcb_window_t w );
29 #endif