X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fmain.cpp;h=b0c9415135f293140e911b11f3ea15b146b930de;hb=4449e5dc147527c669fc9d4dd8946e8420a2ca75;hp=84c932fff47189a4e80ec57e60ef6cf3085c8107;hpb=4d67209654fe8de3407b513800471fc48c4865fc;p=apps%2Fagl-service-windowmanager.git diff --git a/src/main.cpp b/src/main.cpp index 84c932f..b0c9415 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -223,7 +223,6 @@ void windowmanager_setrole(afb_req req) noexcept } try { - unsigned pid = 0; char const *appid = afb_req_get_application_id(req); json_object *jreq = afb_req_json(req); @@ -235,15 +234,7 @@ void windowmanager_setrole(afb_req req) noexcept } char const *a_role = json_object_get_string(j_role); - json_object *j_pid = nullptr; - if (json_object_object_get_ex(jreq, "pid", &j_pid)) - { - HMI_DEBUG("PID is set"); - char const *a_pid = json_object_get_string(j_pid); - pid = std::stol(a_pid); - } - - auto ret = g_afb_instance->wmgr.api_set_role(appid, a_role, pid); + auto ret = g_afb_instance->wmgr.api_set_role(appid, a_role); if (!ret) { afb_req_fail(req, "failed", "Couldn't register");