diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/swaylock/swaylock.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/swaylock/swaylock.h b/include/swaylock/swaylock.h index f3b0b58b..ddca633d 100644 --- a/include/swaylock/swaylock.h +++ b/include/swaylock/swaylock.h | |||
@@ -9,6 +9,14 @@ | |||
9 | #include "swaylock/seat.h" | 9 | #include "swaylock/seat.h" |
10 | #include "wlr-layer-shell-unstable-v1-client-protocol.h" | 10 | #include "wlr-layer-shell-unstable-v1-client-protocol.h" |
11 | 11 | ||
12 | enum auth_state { | ||
13 | AUTH_STATE_IDLE, | ||
14 | AUTH_STATE_INPUT, | ||
15 | AUTH_STATE_BACKSPACE, | ||
16 | AUTH_STATE_VALIDATING, | ||
17 | AUTH_STATE_INVALID, | ||
18 | }; | ||
19 | |||
12 | struct swaylock_args { | 20 | struct swaylock_args { |
13 | uint32_t color; | 21 | uint32_t color; |
14 | enum background_mode mode; | 22 | enum background_mode mode; |
@@ -30,6 +38,7 @@ struct swaylock_state { | |||
30 | struct swaylock_args args; | 38 | struct swaylock_args args; |
31 | struct swaylock_password password; | 39 | struct swaylock_password password; |
32 | struct swaylock_xkb xkb; | 40 | struct swaylock_xkb xkb; |
41 | enum auth_state auth_state; | ||
33 | bool run_display; | 42 | bool run_display; |
34 | }; | 43 | }; |
35 | 44 | ||
@@ -48,5 +57,6 @@ struct swaylock_surface { | |||
48 | void swaylock_handle_key(struct swaylock_state *state, | 57 | void swaylock_handle_key(struct swaylock_state *state, |
49 | xkb_keysym_t keysym, uint32_t codepoint); | 58 | xkb_keysym_t keysym, uint32_t codepoint); |
50 | void render_frame(struct swaylock_surface *surface); | 59 | void render_frame(struct swaylock_surface *surface); |
60 | void render_frames(struct swaylock_state *state); | ||
51 | 61 | ||
52 | #endif | 62 | #endif |