aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2020-08-03 02:26:22 +0200
committerKenny Levinsen <kl@kl.wtf>2020-08-03 02:48:39 +0200
commitfc7116ffadcfde231faa68a24662c645a4beabdd (patch)
treede027d1f2b293ff769e628a9e1acbf341b3cf414 /include
parent9b7a12d90aa914db859044d0fd96369d7b9340c9 (diff)
seat: Convert client list to linked list
Diffstat (limited to 'include')
-rw-r--r--include/client.h2
-rw-r--r--include/seat.h3
2 files changed, 2 insertions, 3 deletions
diff --git a/include/client.h b/include/client.h
index 7d4a247..e0d9016 100644
--- a/include/client.h
+++ b/include/client.h
@@ -7,11 +7,11 @@
#include "connection.h"
#include "linked_list.h"
-#include "list.h"
struct server;
struct client {
+ struct linked_list link; // seat::clients
struct server *server;
struct event_source_fd *event_source;
struct connection connection;
diff --git a/include/seat.h b/include/seat.h
index c82f7a0..60d3b29 100644
--- a/include/seat.h
+++ b/include/seat.h
@@ -6,7 +6,6 @@
#include <sys/types.h>
#include "linked_list.h"
-#include "list.h"
struct client;
@@ -28,7 +27,7 @@ struct seat_device {
struct seat {
char *seat_name;
- struct list clients;
+ struct linked_list clients;
struct client *active_client;
struct client *next_client;