aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-04-03 15:04:31 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2018-04-04 18:47:48 -0400
commitd053acbed6fea0f73eb79ac800c1342f8afadeb8 (patch)
tree76a170cc89fdf111dfef0de45b1fe7ce06bf62e9 /include
parentVerify passwords (diff)
downloadsway-d053acbed6fea0f73eb79ac800c1342f8afadeb8.tar.gz
sway-d053acbed6fea0f73eb79ac800c1342f8afadeb8.tar.zst
sway-d053acbed6fea0f73eb79ac800c1342f8afadeb8.zip
R E N D E R I N G
Diffstat (limited to 'include')
-rw-r--r--include/swaylock/swaylock.h10
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
12enum auth_state {
13 AUTH_STATE_IDLE,
14 AUTH_STATE_INPUT,
15 AUTH_STATE_BACKSPACE,
16 AUTH_STATE_VALIDATING,
17 AUTH_STATE_INVALID,
18};
19
12struct swaylock_args { 20struct 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 {
48void swaylock_handle_key(struct swaylock_state *state, 57void swaylock_handle_key(struct swaylock_state *state,
49 xkb_keysym_t keysym, uint32_t codepoint); 58 xkb_keysym_t keysym, uint32_t codepoint);
50void render_frame(struct swaylock_surface *surface); 59void render_frame(struct swaylock_surface *surface);
60void render_frames(struct swaylock_state *state);
51 61
52#endif 62#endif