summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-07-06 09:15:16 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-08-08 17:24:00 +0200
commit1d0467a538127f4cdd905b785b561f339426a94a (patch)
tree3abf7651bfd888b9fd1ae025716331929b34e385
parent8e831f9b2e461c94a8ee0e229812bcf2d42ae2a5 (diff)
wayland: add wl::display::get_error()
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
-rw-r--r--src/wayland.cpp2
-rw-r--r--src/wayland.hpp1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/wayland.cpp b/src/wayland.cpp
index 276ec7a..cf03d02 100644
--- a/src/wayland.cpp
+++ b/src/wayland.cpp
@@ -31,6 +31,8 @@ void display::flush() { wl_display_flush(this->d.get()); }
int display::get_fd() const { return wl_display_get_fd(this->d.get()); }
+int display::get_error() { return wl_display_get_error(this->d.get()); }
+
// _ _
// _ __ ___ __ _(_)___| |_ _ __ _ _
// | '__/ _ \/ _` | / __| __| '__| | | |
diff --git a/src/wayland.hpp b/src/wayland.hpp
index ce8360f..4865e42 100644
--- a/src/wayland.hpp
+++ b/src/wayland.hpp
@@ -75,6 +75,7 @@ struct display {
int dispatch();
void flush();
int get_fd() const;
+ int get_error();
};
// _ _