fix bug in app_terminate app_control_send_terminate_request() in
capi-appfw-application.
Change-Id: I4feb745833d60ebb1d073ca79d26a3f50fa44eac
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
int app_agent_send_cmd(int uid, int cmd, bundle *kb);
int app_agent_send_cmd_with_noreply(int uid, int cmd, bundle *kb);
int app_subapp_terminate_request(void);
+int __call_aul_handler(aul_type type, bundle *kb);
gboolean __aul_glib_handler(gpointer data);
-static int __call_aul_handler(aul_type type, bundle *kb);
static int app_resume();
static int app_terminate();
static void __clear_internal_key(bundle *kb);
return aul_initialized;
}
-static int __call_aul_handler(aul_type type, bundle *kb)
+int __call_aul_handler(aul_type type, bundle *kb)
{
if (_aul_handler)
_aul_handler(type, kb, _aul_data);
{
if (is_subapp) {
subapp_cb(subapp_data);
-
- return 0;
+ } else {
+ __call_aul_handler(AUL_TERMINATE, NULL);
}
- return -1;
+ return 0;
}
SLPAPI int aul_set_subapp(subapp_fn cb, void *data)