diff options
| author | Simeon Simeonov | 2023-03-14 23:30:32 +0100 |
|---|---|---|
| committer | Simeon Simeonov | 2023-03-18 13:37:27 +0100 |
| commit | 66bd7af3e59e509000b8a55a9429e7a8e133fd81 (patch) | |
| tree | 9eca5fe6eb76bb639fde682131c654eef17212df /unlock_indicator.h | |
| parent | ffc15cad8238b101203147d4c9da64ee8e5a05b8 (diff) | |
Sync with upstream 2.14.1 and update the documentation2.2.14
Diffstat (limited to 'unlock_indicator.h')
| -rw-r--r-- | unlock_indicator.h | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/unlock_indicator.h b/unlock_indicator.h deleted file mode 100644 index 581d028..0000000 --- a/unlock_indicator.h +++ /dev/null | |||
| @@ -1,29 +0,0 @@ | |||
| 1 | #ifndef _UNLOCK_INDICATOR_H | ||
| 2 | #define _UNLOCK_INDICATOR_H | ||
| 3 | |||
| 4 | #include <xcb/xcb.h> | ||
| 5 | |||
| 6 | typedef enum { | ||
| 7 | STATE_STARTED = 0, /* default state */ | ||
| 8 | STATE_KEY_PRESSED = 1, /* key was pressed, show unlock indicator */ | ||
| 9 | STATE_KEY_ACTIVE = 2, /* a key was pressed recently, highlight part | ||
| 10 | of the unlock indicator. */ | ||
| 11 | STATE_BACKSPACE_ACTIVE = 3, /* backspace was pressed recently, highlight | ||
| 12 | part of the unlock indicator in red. */ | ||
| 13 | STATE_NOTHING_TO_DELETE = 4, /* backspace was pressed, but there is nothing to delete. */ | ||
| 14 | } unlock_state_t; | ||
| 15 | |||
| 16 | typedef enum { | ||
| 17 | STATE_AUTH_IDLE = 0, /* no authenticator interaction at the moment */ | ||
| 18 | STATE_AUTH_VERIFY = 1, /* currently verifying the password via authenticator */ | ||
| 19 | STATE_AUTH_LOCK = 2, /* currently locking the screen */ | ||
| 20 | STATE_AUTH_WRONG = 3, /* the password was wrong */ | ||
| 21 | STATE_I3LOCK_LOCK_FAILED = 4, /* i3lock failed to load */ | ||
| 22 | } auth_state_t; | ||
| 23 | |||
| 24 | void free_bg_pixmap(void); | ||
| 25 | void draw_image(xcb_pixmap_t bg_pixmap, uint32_t* resolution); | ||
| 26 | void redraw_screen(void); | ||
| 27 | void clear_indicator(void); | ||
| 28 | |||
| 29 | #endif | ||
