wayland: add wl::display::get_error()
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>
Thu, 6 Jul 2017 07:15:16 +0000 (09:15 +0200)
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>
Tue, 8 Aug 2017 15:24:00 +0000 (17:24 +0200)
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
src/wayland.cpp
src/wayland.hpp

index 276ec7a..cf03d02 100644 (file)
@@ -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()); }
+
 //                 _     _
 //  _ __ ___  __ _(_)___| |_ _ __ _   _
 // | '__/ _ \/ _` | / __| __| '__| | | |
index ce8360f..4865e42 100644 (file)
@@ -75,6 +75,7 @@ struct display {
    int dispatch();
    void flush();
    int get_fd() const;
+   int get_error();
 };
 
 //              _               _