- 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);