aboutsummaryrefslogtreecommitdiff
path: root/include/seat.h
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2020-08-03 02:12:47 +0200
committerKenny Levinsen <kl@kl.wtf>2020-08-03 02:16:21 +0200
commit9b7a12d90aa914db859044d0fd96369d7b9340c9 (patch)
treedb6ea054dc1470106f7d43e59d8cfaef5d089706 /include/seat.h
parent4afe674e54a1df7a86d3094d664cc2d1928f3662 (diff)
seat: Convert device list to linked list
Diffstat (limited to 'include/seat.h')
-rw-r--r--include/seat.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/seat.h b/include/seat.h
index d8fc7a8..c82f7a0 100644
--- a/include/seat.h
+++ b/include/seat.h
@@ -1,11 +1,13 @@
#ifndef _SEATD_SEAT_H
#define _SEATD_SEAT_H
-#include "list.h"
#include <stdbool.h>
#include <stdint.h>
#include <sys/types.h>
+#include "linked_list.h"
+#include "list.h"
+
struct client;
enum seat_device_type {
@@ -15,6 +17,7 @@ enum seat_device_type {
};
struct seat_device {
+ struct linked_list link; // client::devices
int device_id;
int fd;
int ref_cnt;