Update the interface of trigger_update to send the content info. 48/12448/1
authorSung-jae Park <nicesj.park@samsung.com>
Fri, 15 Nov 2013 07:44:49 +0000 (16:44 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Fri, 15 Nov 2013 07:44:49 +0000 (16:44 +0900)
Change-Id: I51129a86a03ed0517c6ae25102626fdebd181045

include/provider.h
packaging/libprovider.spec
src/provider.c

index 62da783..4356dbb 100644 (file)
@@ -188,6 +188,7 @@ struct event_arg {
                struct update_content {
                        const char *cluster;
                        const char *category;
+                       const char *content;
                } update_content; /*! update_content */
 
                struct pause {
index 82a8e36..f220e04 100644 (file)
@@ -1,5 +1,5 @@
 Name:          libprovider
-Version:       0.9.13
+Version:       0.9.14
 Release:       1
 License:       Flora
 Summary:       Library for developing the livebox service provider
index e205d2b..6efd3bf 100644 (file)
@@ -411,14 +411,14 @@ errout:
        return result;
 }
 
-/* pkgname, id, cluster, category, ret */
+/* pkgname, id, cluster, category, content, ret */
 static struct packet *master_update_content(pid_t pid, int handle, const struct packet *packet)
 {
        struct event_arg arg;
        int ret;
 
-       ret = packet_get(packet, "ssss", &arg.pkgname, &arg.id, &arg.info.update_content.cluster, &arg.info.update_content.category);
-       if (ret != 4) {
+       ret = packet_get(packet, "sssss", &arg.pkgname, &arg.id, &arg.info.update_content.cluster, &arg.info.update_content.category, &arg.info.update_content.content);
+       if (ret != 5) {
                ErrPrint("Parameter is not valid\n");
                goto errout;
        }