aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2020-11-04 00:23:21 +0100
committerIsaac Freund <ifreund@ifreund.xyz>2020-12-13 22:53:33 +0100
commit20d804cdb5b4874a0ee168cd8db67caf0c841772 (patch)
tree18bf003b6d37480919bba7e1852e611c9fe8411c /include
parent0c5e5a7b4a4cbd56ca797698feb7ac85b22db647 (diff)
downloadriver-20d804cdb5b4874a0ee168cd8db67caf0c841772.tar.gz
river-20d804cdb5b4874a0ee168cd8db67caf0c841772.tar.xz
code: switch to custom wlroots/libwayland bindings
This is a big step up over @cImport() for ergonomics and type safety. Nearly all void pointer casts have been eliminated!
Diffstat (limited to 'include')
-rw-r--r--include/bindings.c11
-rw-r--r--include/bindings.h14
2 files changed, 0 insertions, 25 deletions
diff --git a/include/bindings.c b/include/bindings.c
deleted file mode 100644
index 8cf8651..0000000
--- a/include/bindings.c
+++ /dev/null
@@ -1,11 +0,0 @@
-#define WLR_USE_UNSTABLE
-#include <wlr/backend.h>
-#include <wlr/render/wlr_renderer.h>
-
-struct wlr_backend *river_wlr_backend_autocreate(struct wl_display *display) {
- return wlr_backend_autocreate(display, NULL);
-}
-
-struct wlr_renderer *river_wlr_backend_get_renderer(struct wlr_backend *backend) {
- return wlr_backend_get_renderer(backend);
-}
diff --git a/include/bindings.h b/include/bindings.h
deleted file mode 100644
index ce8da0b..0000000
--- a/include/bindings.h
+++ /dev/null
@@ -1,14 +0,0 @@
-#ifndef RIVER_BINDINGS_H
-#define RIVER_BINDINGS_H
-
-#include <wlr/backend/session.h>
-
-/*
- * This header is needed since zig cannot yet translate flexible arrays.
- * See https://github.com/ziglang/zig/issues/4775
- */
-
-struct wlr_backend *river_wlr_backend_autocreate(struct wl_display *display);
-struct wlr_renderer *river_wlr_backend_get_renderer(struct wlr_backend *backend);
-
-#endif // RIVER_BINDINGS_H