Fix the issue that changed callback is not working 69/43569/1 accepted/tizen/mobile/20150713.061007 accepted/tizen/tv/20150713.061029 accepted/tizen/wearable/20150713.061035 submit/tizen/20150713.041512
authorHurnjoo Lee <hurnjoo.lee@samsung.com>
Fri, 10 Jul 2015 06:23:43 +0000 (15:23 +0900)
committerHurnjoo Lee <hurnjoo.lee@samsung.com>
Fri, 10 Jul 2015 07:08:05 +0000 (16:08 +0900)
If the key value of VCONFKEY_MASTER_STARTED is 0, then notification_ipc_monitor_register
is not called in notification.

Change-Id: I6b062c2ff20aea6b1f243e2c50dadb9b9b87c5ab
Signed-off-by: Hurnjoo Lee <hurnjoo.lee@samsung.com>
configure.ac
main.c
packaging/notification-service.spec

index 7dc41d8..76a7053 100644 (file)
@@ -15,7 +15,7 @@ AC_CHECK_FUNC([dlopen], [],
               AC_CHECK_LIB([dl], [dlopen], DLOPEN_LIBS="-ldl"))
 AC_SUBST(DLOPEN_LIBS)
 
-PKG_CHECK_MODULES([TIZEN], [eina ecore com-core notification dbus-1 bluetooth-api dlog libwlmessage])
+PKG_CHECK_MODULES([TIZEN], [eina ecore com-core notification dbus-1 bluetooth-api dlog libwlmessage vconf vconf-internal-keys])
 AC_SUBST(TIZEN_CFLAGS)
 AC_SUBST(TIZEN_LIBS)
 
diff --git a/main.c b/main.c
index 2af826c..7b15745 100644 (file)
--- a/main.c
+++ b/main.c
@@ -1,5 +1,8 @@
 #include <Ecore.h>
+#include <notification_service.h>
 #include <unistd.h>
+#include <vconf.h>
+#include <vconf-internal-livebox-keys.h>
 
 int
 main(int argc, char **argv)
@@ -14,10 +17,13 @@ main(int argc, char **argv)
         goto shutdown;
     }
 
+    vconf_set_bool(VCONFKEY_MASTER_STARTED, 1);
     ecore_main_loop_begin();
 
  shutdown:
+    vconf_set_bool(VCONFKEY_MASTER_STARTED, 0);
     ecore_shutdown();
+
     return 0;
 }
 
index 9b7c1a9..d1e6930 100644 (file)
@@ -18,6 +18,8 @@ BuildRequires: pkgconfig(bluetooth-api)
 BuildRequires: pkgconfig(dlog)
 BuildRequires: pkgconfig(bundle)
 BuildRequires: pkgconfig(libwlmessage)
+BuildRequires: pkgconfig(vconf)
+BuildRequires: pkgconfig(vconf-internal-keys)
 %{?systemd_requires}
 
 %description