aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorScott Anderson <ascent12@hotmail.com>2017-05-03 17:04:41 +1200
committerScott Anderson <ascent12@hotmail.com>2017-05-03 17:04:41 +1200
commitdbceaee9faaaf24016024bd22b38fa0186bb5e08 (patch)
tree3389de75acdb565243166aea7ff4cf6dd31bed8b /include
parent81998fdc98231cb1b2e050da2fcec7c75d46320c (diff)
Added EGL interface for backends.
Diffstat (limited to 'include')
-rw-r--r--include/backend/egl.h17
-rw-r--r--include/wlr/common/log.h1
2 files changed, 18 insertions, 0 deletions
diff --git a/include/backend/egl.h b/include/backend/egl.h
new file mode 100644
index 00000000..8cef36b7
--- /dev/null
+++ b/include/backend/egl.h
@@ -0,0 +1,17 @@
+#ifndef WLR_BACKEND_EGL_H
+#define WLR_BACKEND_EGL_H
+
+#include <EGL/egl.h>
+#include <stdbool.h>
+
+struct wlr_egl {
+ EGLDisplay display;
+ EGLConfig config;
+ EGLContext context;
+};
+
+bool wlr_egl_init(struct wlr_egl *egl, EGLenum platform, void *display);
+void wlr_egl_free(struct wlr_egl *egl);
+EGLSurface wlr_egl_create_surface(struct wlr_egl *egl, void *window);
+
+#endif
diff --git a/include/wlr/common/log.h b/include/wlr/common/log.h
index 5b4d5a53..079f989a 100644
--- a/include/wlr/common/log.h
+++ b/include/wlr/common/log.h
@@ -1,6 +1,7 @@
#ifndef _WLR_COMMON_LOG_H
#define _WLR_COMMON_LOG_H
#include <stdbool.h>
+#include <stdarg.h>
typedef enum {
L_SILENT = 0,