summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
d7f9b04)
Not use "ID"
Change-Id: Ic36f5c649ba7f36cc254b5d159940f345cb4d571
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
static const char kKeyError[] = "error";
static const char kKeyErrorDesc[] = "kErrorDescription";
static const char kKeyError[] = "error";
static const char kKeyErrorDesc[] = "kErrorDescription";
-WMClient::WMClient(const string &appid, unsigned layerID, unsigned surfaceID, const string &role)
- : id(appid), layer(layerID),
+WMClient::WMClient(const string &appid, unsigned layer, unsigned surface, const string &role)
+ : id(appid), layer(layer),
- role2surface[role] = surfaceID;
+ role2surface[role] = surface;
for (auto x : kWMEvents)
{
#if GTEST_ENABLED
for (auto x : kWMEvents)
{
#if GTEST_ENABLED
-void WMClient::registerLayer(unsigned layerID)
+void WMClient::registerLayer(unsigned layer)
}
bool WMClient::addSurface(const string &role, unsigned surface)
}
bool WMClient::addSurface(const string &role, unsigned surface)
-bool WMClient::removeSurfaceIfExist(unsigned surfaceID)
+bool WMClient::removeSurfaceIfExist(unsigned surface)
{
bool ret = false;
for (auto &x : this->role2surface)
{
{
bool ret = false;
for (auto &x : this->role2surface)
{
- if (surfaceID == x.second)
+ if (surface == x.second)
{
this->role2surface.erase(x.first);
ret = true;
{
this->role2surface.erase(x.first);
ret = true;
- WMClient(const std::string &appid, unsigned layerID, unsigned surfaceID, const std::string &role);
+ WMClient(const std::string &appid, unsigned layer, unsigned surface, const std::string &role);
WMClient(const std::string &appid, const std::string &role);
virtual ~WMClient();
std::string appID() const;
unsigned surfaceID(const std::string &role) const;
unsigned layerID() const;
WMClient(const std::string &appid, const std::string &role);
virtual ~WMClient();
std::string appID() const;
unsigned surfaceID(const std::string &role) const;
unsigned layerID() const;
- void registerLayer(unsigned layerID);
+ void registerLayer(unsigned layer);
bool addSurface(const std::string& role, unsigned surface);
bool addSurface(const std::string& role, unsigned surface);
- bool removeSurfaceIfExist(unsigned surfaceID);
+ bool removeSurfaceIfExist(unsigned surface);
bool removeRole(const std::string& role);
bool subscribe(afb_req req, const std::string &event_name);
bool removeRole(const std::string& role);
bool subscribe(afb_req req, const std::string &event_name);