From: Hwankyu Jhun Date: Thu, 11 Jan 2018 07:53:11 +0000 (+0900) Subject: Handle RPC request X-Git-Tag: accepted/tizen/unified/20180228.071807~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F30%2F166630%2F3;p=platform%2Fcore%2Fappfw%2Fappcore-agent.git Handle RPC request If the launch request is for RPC, the app control callback is not invoked. Change-Id: Ib1914c9e2321a6a0952ec1d88d68ab7f8fd542bf Signed-off-by: Hwankyu Jhun --- diff --git a/src/service_app_main.c b/src/service_app_main.c index 8db63c2..214c772 100644 --- a/src/service_app_main.c +++ b/src/service_app_main.c @@ -25,6 +25,7 @@ #include #include #include +#include #include #include @@ -211,6 +212,7 @@ static int __service_app_control(bundle *b, void *data) { app_control_h app_control = NULL; const char *job_id; + const char *rpc_port; LOGD("[SERVICE_APP] app_control callback"); appcore_base_on_control(b); @@ -221,6 +223,12 @@ static int __service_app_control(bundle *b, void *data) return 0; } + rpc_port = bundle_get_val(b, AUL_K_RPC_PORT); + if (rpc_port) { + LOGD("[__RPC_PORT_PORT__] %s", rpc_port); + return 0; + } + if (app_control_create_event(b, &app_control) != 0) return -1;