summaryrefslogtreecommitdiff
path: root/src/service_common.c
diff options
context:
space:
mode:
authorSung-jae Park <nicesj.park@samsung.com>2013-04-30 21:32:41 +0900
committerSung-jae Park <nicesj.park@samsung.com>2013-05-01 17:29:51 +0900
commitaf70aa83ac19764fb9f5a188b461329d97da1db0 (patch)
treec185bbc36b06247c6366d2535b373aaadfb3d9df /src/service_common.c
parent8d696f93e7277360f437264a21f5c97d20d759b3 (diff)
downloaddata-provider-master-af70aa83ac19764fb9f5a188b461329d97da1db0.tar.gz
data-provider-master-af70aa83ac19764fb9f5a188b461329d97da1db0.tar.bz2
data-provider-master-af70aa83ac19764fb9f5a188b461329d97da1db0.zip
Various patches are applied
Patch 9/9 Fix the bug of ignoring updated content info. Even if the box tries to update its content info, in case of script type box, the provider ignores it. This patch will fix it. Patch 8/9 Use the break after handling the service request (badge/noti) Patch 7/9 Using EINA_LIST_FREE instead of EINA_LIST_FOREACH_SAFE. To release the svc_ctx->packet_list. Patch 6/9 Keep the desc block even if the buffer of lb is not ready. Keep the desc blocks even if the buffer of livebox is not created. The provider will send the created event to the slave. Then the slave will start to generate the desc file. (script data) But the provider cannot apply desc to its buffer. Because there is no created object. To resolve this issue, This patch will create a cache. It will be used for keeping the blocks which are parsed before creating a buffer of livebox (or PD). Patch 5/9 Update License Patch 4/9 Enable Badge/Notification service. Patch 3/9 Don't set the "default" to content as default value. Client can use "" for its content value. So the provider has not to touch the "content". Patch 2/9 Update period compensation timer. Patch 1/9 Fix the storage size calculation bug. Change-Id: Ia6f0d5e0fe06ed9a348082d324b09cc7732041e7
Diffstat (limited to 'src/service_common.c')
-rw-r--r--src/service_common.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/service_common.c b/src/service_common.c
index cd2f1e2..6a32976 100644
--- a/src/service_common.c
+++ b/src/service_common.c
@@ -1,7 +1,7 @@
/*
* Copyright 2013 Samsung Electronics Co., Ltd
*
- * Licensed under the Flora License, Version 1.0 (the "License");
+ * Licensed under the Flora License, Version 1.1 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
@@ -395,8 +395,6 @@ static void *server_main(void *data)
struct tcb *tcb;
int fd;
char evt_ch;
- Eina_List *l;
- Eina_List *n;
struct packet_info *packet_info;
DbgPrint("Server thread is activated\n");
@@ -497,10 +495,9 @@ static void *server_main(void *data)
* This only should be happenes while terminating the master daemon process.
*/
CRITICAL_SECTION_BEGIN(&svc_ctx->packet_list_lock);
- EINA_LIST_FOREACH_SAFE(svc_ctx->packet_list, l, n, packet_info) {
+ EINA_LIST_FREE(svc_ctx->packet_list, packet_info) {
ret = read(svc_ctx->evt_pipe[PIPE_READ], &evt_ch, sizeof(evt_ch));
DbgPrint("Flushing pipe: %d (%c)\n", ret, evt_ch);
- svc_ctx->packet_list = eina_list_remove(svc_ctx->packet_list, packet_info);
ret = svc_ctx->service_thread_main(packet_info->tcb, packet_info->packet, svc_ctx->service_thread_data);
if (ret < 0)
ErrPrint("Service thread returns: %d\n", ret);