}
try
{
- unsigned pid = 0;
char const *appid = afb_req_get_application_id(req);
json_object *jreq = afb_req_json(req);
}
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");