// generate surface ID for ivi-shell application
- auto rname = this->lookup_id(role);
+ auto rname = this->id_alloc.lookup(string(role));
if (!rname)
{
// name does not exist yet, allocate surface id...
}
}
- auto rname = this->lookup_id(role);
+ auto rname = this->id_alloc.lookup(str);
if (rname)
{
const char *role = this->convertRoleOldToNew(drawing_name);
// Check drawing name, surface/layer id
- auto const &surface_id = this->lookup_id(role);
+ auto const &surface_id = this->id_alloc.lookup(string(role));
if (!surface_id)
{
return Err<json_object *>("Surface does not exist");
if ("" != act.role)
{
bool found;
- auto const &surface_id = this->lookup_id(act.role.c_str());
+ auto const &surface_id = this->id_alloc.lookup(act.role);
string appid = g_app_list.getAppID(*surface_id, act.role, &found);
if (!found)
{
******* Private Functions *******
*/
-optional<int> WindowManager::lookup_id(char const *name)
-{
- return this->id_alloc.lookup(string(name));
-}
-optional<string> WindowManager::lookup_name(int id)
-{
- return this->id_alloc.lookup(id);
-}
-
/**
* init_layers()
*/
this->controller->surfaces[id]->set_visibility(1);
*/
char const *label =
- this->lookup_name(id).value_or("unknown-name").c_str();
+ this->id_alloc.lookup(id).value_or("unknown-name").c_str();
/* // FOR CES DEMO >>>
if ((0 == strcmp(label, "radio")) ||
if (ip != this->controller->sprops.end())
{*/
char const *label =
- this->lookup_name(id).value_or("unknown-name").c_str();
+ this->id_alloc.lookup(id).value_or("unknown-name").c_str();
/*// FOR CES DEMO >>>
if ((0 == strcmp(label, "radio")) ||
const char *WindowManager::check_surface_exist(const char *drawing_name)
{
- auto const &surface_id = this->lookup_id(drawing_name);
+ auto const &surface_id = this->id_alloc.lookup(string(drawing_name));
if (!surface_id)
{
return "Surface does not exist";