seat: Convert client list to linked list
This commit is contained in:
parent
9b7a12d90a
commit
fc7116ffad
3 changed files with 19 additions and 29 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue