diff options
Diffstat (limited to 'unlock_indicator.h')
| -rw-r--r-- | unlock_indicator.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/unlock_indicator.h b/unlock_indicator.h index 93c1de8..581d028 100644 --- a/unlock_indicator.h +++ b/unlock_indicator.h | |||
| @@ -1,6 +1,8 @@ | |||
| 1 | #ifndef _UNLOCK_INDICATOR_H | 1 | #ifndef _UNLOCK_INDICATOR_H |
| 2 | #define _UNLOCK_INDICATOR_H | 2 | #define _UNLOCK_INDICATOR_H |
| 3 | 3 | ||
| 4 | #include <xcb/xcb.h> | ||
| 5 | |||
| 4 | typedef enum { | 6 | typedef enum { |
| 5 | STATE_STARTED = 0, /* default state */ | 7 | STATE_STARTED = 0, /* default state */ |
| 6 | STATE_KEY_PRESSED = 1, /* key was pressed, show unlock indicator */ | 8 | STATE_KEY_PRESSED = 1, /* key was pressed, show unlock indicator */ |
| @@ -19,7 +21,8 @@ typedef enum { | |||
| 19 | STATE_I3LOCK_LOCK_FAILED = 4, /* i3lock failed to load */ | 21 | STATE_I3LOCK_LOCK_FAILED = 4, /* i3lock failed to load */ |
| 20 | } auth_state_t; | 22 | } auth_state_t; |
| 21 | 23 | ||
| 22 | xcb_pixmap_t draw_image(uint32_t* resolution); | 24 | void free_bg_pixmap(void); |
| 25 | void draw_image(xcb_pixmap_t bg_pixmap, uint32_t* resolution); | ||
| 23 | void redraw_screen(void); | 26 | void redraw_screen(void); |
| 24 | void clear_indicator(void); | 27 | void clear_indicator(void); |
| 25 | 28 | ||
