return res;
}
+static int __send_cmd_noreply_for_uid_opt(int pid, uid_t uid,
+ int cmd, bundle *kb, int opt)
+{
+ int res;
+
+ res = aul_sock_send_bundle(pid, uid, cmd, kb, opt | AUL_SOCK_NOREPLY);
+ if (res < 0)
+ res = aul_error_convert(res);
+
+ return res;
+}
+
static int __send_cmd_async_for_uid_opt(int pid, uid_t uid,
- int cmd, bundle *kb, int opt)
+ int cmd, bundle *kb, int opt)
{
int res;
- res = aul_sock_send_bundle(pid, uid, cmd, kb, AUL_SOCK_NOREPLY);
+ res = aul_sock_send_bundle(pid, uid, cmd, kb, opt | AUL_SOCK_ASYNC);
if (res < 0)
res = aul_error_convert(res);
API int app_send_cmd_with_queue_noreply_for_uid(int pid, uid_t uid,
int cmd, bundle *kb)
{
- return __send_cmd_async_for_uid_opt(pid, uid, cmd, kb, AUL_SOCK_QUEUE);
+ return __send_cmd_noreply_for_uid_opt(pid, uid, cmd, kb, AUL_SOCK_QUEUE);
}
API int app_send_cmd_with_noreply(int pid, int cmd, bundle *kb)
ret = app_send_cmd_with_queue_noreply_for_uid(AUL_UTIL_PID,
uid, cmd, kb);
break;
+ case APP_SEND_LAUNCH_REQUEST:
+ ret = __send_cmd_async_for_uid_opt(AUL_UTIL_PID,
+ uid, cmd, kb, AUL_SOCK_QUEUE);
+ break;
default:
ret = app_send_cmd_with_queue_for_uid(AUL_UTIL_PID, uid, cmd,
kb);
case APP_START_ASYNC:
case WIDGET_UPDATE:
case APP_START_RES_ASYNC:
+ case APP_SEND_LAUNCH_REQUEST:
b = bundle_dup(kb);
ret = aul_launch_local(b);
break;