aboutsummaryrefslogtreecommitdiff
path: root/include/rootston/server.h
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-09-22 20:24:32 -0400
committerDrew DeVault <sir@cmpwn.com>2017-09-22 23:30:40 -0400
commit550748681db7f75888beab41a1a85eb86876604c (patch)
tree93d9d376637a6fca3279cfe98dea43d0cceb7373 /include/rootston/server.h
parent06ae9e7c9f8811dcda3df8ec72ab75e54ee54b87 (diff)
Establish rootston headers & main
Diffstat (limited to 'include/rootston/server.h')
-rw-r--r--include/rootston/server.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/rootston/server.h b/include/rootston/server.h
new file mode 100644
index 00000000..f4d1de95
--- /dev/null
+++ b/include/rootston/server.h
@@ -0,0 +1,31 @@
+#ifndef _ROOTSTON_SERVER_H
+#define _ROOTSTON_SERVER_H
+#include <wayland-server.h>
+#include <wlr/backend.h>
+#include <wlr/backend/session.h>
+#include <wlr/render.h>
+#include <wlr/xwayland.h>
+#include "rootston/config.h"
+#include "rootston/desktop.h"
+#include "rootston/input.h"
+
+struct rootston {
+ /* Rootston resources */
+ struct roots_config *config;
+ struct roots_desktop *desktop;
+ struct roots_input *input;
+
+ /* Wayland resources */
+ struct wl_display *wl_display;
+ struct wl_event_loop *wl_event_loop;
+
+ /* WLR tools */
+ struct wlr_backend *backend;
+ struct wlr_session *session;
+ struct wlr_renderer *renderer;
+ struct wlr_xwayland *xwayland;
+};
+
+extern struct rootston root;
+
+#endif