To send the launch request to the service thread, aul launch checks
whether the key of the bundle data exists or not.
It the key exists, the launch request will be delivered to the global
default loop.
Change-Id: I18089f5983fa509753465868485d1c8cad9c4bfd
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
#define ARRAY_SIZE(x) (sizeof(x) / sizeof(x[0]))
+#define K_SERVICE_THREAD "__K_SERVICE_THREAD"
+
typedef struct client_channel_s {
int fd;
pid_t pid;
return tag;
}
-static GMainContext *__get_glib_context(int cmd)
+static GMainContext *__get_glib_context(int cmd, bundle *b)
{
GMainContext *context;
+ if (b && bundle_get_type(b, K_SERVICE_THREAD) != BUNDLE_TYPE_NONE)
+ return NULL;
+
switch (cmd) {
case APP_START:
case APP_START_RES:
return;
}
- __g_idle_add_full(__get_glib_context(pkt->cmd), G_PRIORITY_DEFAULT,
+ __g_idle_add_full(__get_glib_context(pkt->cmd, b), G_PRIORITY_DEFAULT,
__dispatch_request, req);
}