Return WMError instead of bool
[apps/agl-service-windowmanager-2017.git] / src / wm_client.hpp
index 7c6c0b4..5342b76 100644 (file)
@@ -20,6 +20,7 @@
 #include <vector>
 #include <string>
 #include <unordered_map>
+#include "wm_error.hpp"
 
 extern "C"
 {
@@ -58,7 +59,7 @@ class WMClient
     void setRole(const std::string& role);
     void appendRole(const std::string& role);
     //bool addSurface(const std::string& role, unsigned surface);
-    bool addSurface(unsigned surface);
+    WMError addSurface(unsigned surface);
     bool removeSurfaceIfExist(unsigned surface);
     bool removeRole(const std::string& role);