aboutsummaryrefslogtreecommitdiff
path: root/include/rootston/seat.h
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2017-11-03 09:01:34 -0400
committerTony Crisci <tony@dubstepdish.com>2017-11-04 09:23:57 -0400
commit5354fe8729b8c52f8f3ff63f23f932c49bf8c880 (patch)
tree31b9c35b26329961e269724ede16cb1981ce0fb9 /include/rootston/seat.h
parent9bd0f47efd9a0c851d1715f3b9427b5f51b6d8a3 (diff)
move keyboard to seat
Diffstat (limited to 'include/rootston/seat.h')
-rw-r--r--include/rootston/seat.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/include/rootston/seat.h b/include/rootston/seat.h
new file mode 100644
index 00000000..f6db63cc
--- /dev/null
+++ b/include/rootston/seat.h
@@ -0,0 +1,26 @@
+#ifndef _ROOTSTON_SEAT_H
+#define _ROOTSTON_SEAT_H
+
+#include <wayland-server.h>
+
+#include "rootston/input.h"
+#include "rootston/keyboard.h"
+
+struct roots_seat {
+ struct roots_input *input;
+ struct wlr_seat *seat;
+ struct wl_list keyboards;
+ struct wl_list link;
+};
+
+struct roots_seat *roots_seat_create(struct roots_input *input, char *name);
+
+void roots_seat_destroy(struct roots_seat *seat);
+
+void roots_seat_add_keyboard(struct roots_seat *seat,
+ struct roots_keyboard *keyboard);
+
+void roots_seat_remove_keyboard(struct roots_seat *seat,
+ struct roots_keyboard *keyboard);
+
+#endif