From: Hurnjoo Lee Date: Fri, 10 Jul 2015 06:23:43 +0000 (+0900) Subject: Fix the issue that changed callback is not working X-Git-Tag: accepted/tizen/mobile/20150713.061007^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f9db0232335f8e723fea8ddf5d402d29100e3b0e;p=platform%2Fcore%2Fappfw%2Fnotification-service.git Fix the issue that changed callback is not working 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 --- diff --git a/configure.ac b/configure.ac index 7dc41d8..76a7053 100644 --- a/configure.ac +++ b/configure.ac @@ -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 --- a/main.c +++ b/main.c @@ -1,5 +1,8 @@ #include +#include #include +#include +#include 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; } diff --git a/packaging/notification-service.spec b/packaging/notification-service.spec index 9b7c1a9..d1e6930 100644 --- a/packaging/notification-service.spec +++ b/packaging/notification-service.spec @@ -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