From fc7116ffadcfde231faa68a24662c645a4beabdd Mon Sep 17 00:00:00 2001 From: Kenny Levinsen Date: Mon, 3 Aug 2020 02:26:22 +0200 Subject: seat: Convert client list to linked list --- include/client.h | 2 +- include/seat.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'include') 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 #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; -- cgit v1.2.3