aboutsummaryrefslogtreecommitdiff
path: root/rootston/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'rootston/main.c')
-rw-r--r--rootston/main.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/rootston/main.c b/rootston/main.c
new file mode 100644
index 00000000..9be2ff41
--- /dev/null
+++ b/rootston/main.c
@@ -0,0 +1,14 @@
+#include <wayland-server.h>
+#include <wlr/util/log.h>
+#include "rootston/config.h"
+#include "rootston/server.h"
+
+struct rootston root = { 0 };
+
+int main(int argc, char **argv) {
+ root.config = parse_args(argc, argv);
+ root.wl_display = wl_display_create();
+ root.wl_event_loop = wl_display_get_event_loop(root.wl_display);
+ wl_display_init_shm(root.wl_display);
+ return 0;
+}