Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
return true;
} */
-bool WMClient::addSurface(unsigned surface)
+WMError WMClient::addSurface(unsigned surface)
{
this->surface = surface;
ilmErrorTypes err = ilm_layerAddSurface(this->layer, surface);
{
err = ilm_commitChanges();
}
- return (err == ILM_SUCCESS) ? true : false;
+ return (err == ILM_SUCCESS) ? WMError::SUCCESS : WMError::FAIL;
}
bool WMClient::removeSurfaceIfExist(unsigned surface)
#include <vector>
#include <string>
#include <unordered_map>
+#include "wm_error.hpp"
extern "C"
{
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);