server: Convert seat list to linked_list
This commit is contained in:
parent
7d88315fea
commit
d75b617faf
3 changed files with 10 additions and 10 deletions
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue