aboutsummaryrefslogtreecommitdiff
path: root/include/client.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/client.h')
-rw-r--r--include/client.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/client.h b/include/client.h
index 3b1f105..8746bea 100644
--- a/include/client.h
+++ b/include/client.h
@@ -10,6 +10,14 @@
struct server;
+enum client_state {
+ CLIENT_NEW,
+ CLIENT_ACTIVE,
+ CLIENT_PENDING_DISABLE,
+ CLIENT_DISABLED,
+ CLIENT_CLOSED
+};
+
struct client {
struct linked_list link; // seat::clients
struct server *server;
@@ -22,7 +30,7 @@ struct client {
struct seat *seat;
int session;
- bool pending_disable;
+ enum client_state state;
struct linked_list devices;
};