Handle RPC request 30/166630/3
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 11 Jan 2018 07:53:11 +0000 (16:53 +0900)
committerHwanKyu Jhun <h.jhun@samsung.com>
Mon, 15 Jan 2018 12:41:42 +0000 (12:41 +0000)
If the launch request is for RPC, the app control callback
is not invoked.

Change-Id: Ib1914c9e2321a6a0952ec1d88d68ab7f8fd542bf
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/service_app_main.c

index 8db63c2..214c772 100644 (file)
@@ -25,6 +25,7 @@
 #include <appcore_base.h>
 #include <service_app.h>
 #include <aul_job_scheduler.h>
+#include <aul_rpc_port.h>
 #include <bundle_internal.h>
 #include <glib.h>
 
@@ -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;