seat: Convert client list to linked list

This commit is contained in:
Kenny Levinsen 2020-08-03 02:26:22 +02:00
parent 9b7a12d90a
commit fc7116ffad
3 changed files with 19 additions and 29 deletions

View file

@ -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;

View file

@ -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;