diff options
author | Kenny Levinsen <kl@kl.wtf> | 2020-08-03 02:26:22 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2020-08-03 02:48:39 +0200 |
commit | fc7116ffadcfde231faa68a24662c645a4beabdd (patch) | |
tree | de027d1f2b293ff769e628a9e1acbf341b3cf414 /include | |
parent | 9b7a12d90aa914db859044d0fd96369d7b9340c9 (diff) | |
download | seatd-fc7116ffadcfde231faa68a24662c645a4beabdd.tar.xz |
seat: Convert client list to linked list
Diffstat (limited to 'include')
-rw-r--r-- | include/client.h | 2 | ||||
-rw-r--r-- | include/seat.h | 3 |
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; |