aboutsummaryrefslogtreecommitdiffstats
path: root/src/wayland.cpp
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-06-22 14:19:36 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-08-08 17:24:00 +0200
commit3121d0b9b553ddc709be8b67e91395a796cc6b6e (patch)
tree9e25ea937ecb874fae89b81a400c3620c645ba4d /src/wayland.cpp
parent18bd98a7fc8a5cf8032eff3fd92ac22e7da569d1 (diff)
main/wayland: added a simple main loop
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src/wayland.cpp')
-rw-r--r--src/wayland.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wayland.cpp b/src/wayland.cpp
index b4f4800..b81f140 100644
--- a/src/wayland.cpp
+++ b/src/wayland.cpp
@@ -32,6 +32,10 @@ void display::roundtrip() { wl_display_roundtrip(this->d.get()); }
int display::dispatch() { return wl_display_dispatch(this->d.get()); }
+void display::flush() { wl_display_flush(this->d.get()); }
+
+int display::get_fd() const { return wl_display_get_fd(this->d.get()); }
+
// _ _
// _ __ ___ __ _(_)___| |_ _ __ _ _
// | '__/ _ \/ _` | / __| __| '__| | | |