server: Convert seat list to linked_list

This commit is contained in:
Kenny Levinsen 2020-08-31 01:34:36 +02:00
parent 7d88315fea
commit d75b617faf
3 changed files with 10 additions and 10 deletions

View file

@ -26,6 +26,7 @@ struct seat_device {
};
struct seat {
struct linked_list link; // server::seats
char *seat_name;
struct linked_list clients;
struct client *active_client;

View file

@ -3,7 +3,7 @@
#include <stdbool.h>
#include "list.h"
#include "linked_list.h"
#include "poller.h"
struct client;
@ -12,7 +12,7 @@ struct server {
bool running;
struct poller poller;
struct list seats;
struct linked_list seats;
};
int server_init(struct server *server);