int datalen;
bundle_raw *kb_data;
int res;
- char callee_appid[256];
if ((pid = __get_caller_pid(kb)) < 0)
return AUL_R_ERROR;
bundle_add(kb, AUL_K_CALLEE_PID, tmp_pid);
- res = aul_app_get_appid_bypid(pgid, callee_appid, sizeof(callee_appid));
- if(res == 0) {
- bundle_add(kb, AUL_K_CALLEE_APPID, callee_appid);
- } else {
- _W("fail(%d) to get callee appid by pid", res);
- }
-
bundle_encode(kb, &kb_data, &datalen);
if ((res = __app_send_raw_with_noreply(pid, cmd, kb_data, datalen)) < 0)
res = AUL_R_ERROR;
{
int pid;
int ret;
+ char callee_appid[256];
if ((pid = __get_caller_pid(kb)) < 0)
return AUL_R_EINVAL;
_D("original msg is not msg with result");
return AUL_R_OK;
}
+
+ ret = aul_app_get_appid_bypid(getpid(), callee_appid, sizeof(callee_appid));
+ if(ret == 0) {
+ bundle_add(kb, AUL_K_CALLEE_APPID, callee_appid);
+ } else {
+ _W("fail(%d) to get callee appid by pid", ret);
+ }
ret = app_send_cmd_with_noreply(AUL_UTIL_PID, (is_cancel==1)? APP_CANCEL : APP_RESULT, kb);