summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSangyoon Jang <s89.jang@samsung.com>2016-09-26 13:45:17 +0900
committerSangyoon Jang <s89.jang@samsung.com>2016-09-26 13:45:17 +0900
commit9a2dedc1f34c25b691fffe73223a1105c2024d10 (patch)
tree74406b2be28311f81f887e52539f9d188e15baae
parent414db81969ae9ea7f7240f346d2883fd85679cfe (diff)
downloadalarm-manager-9a2dedc1f34c25b691fffe73223a1105c2024d10.tar.gz
alarm-manager-9a2dedc1f34c25b691fffe73223a1105c2024d10.tar.bz2
alarm-manager-9a2dedc1f34c25b691fffe73223a1105c2024d10.zip
Use pkgmgr_client_xxx instead of pkgmgrinfo_client_xxx
Change-Id: Ie8789a00f4120a36517ad914feaa2cf876e9197e Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
-rw-r--r--CMakeLists.txt2
-rw-r--r--alarm-manager.c7
-rw-r--r--packaging/alarm-manager.spec1
3 files changed, 6 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 905c6d1..7d88d2e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -6,7 +6,7 @@ INCLUDE_DIRECTORIES(
include
)
-SET(DEPS_PKGS "glib-2.0 dlog aul bundle db-util appsvc pkgmgr-info vconf gio-2.0 gio-unix-2.0 capi-system-device libtzplatform-config libsystemd-login eventsystem")
+SET(DEPS_PKGS "glib-2.0 dlog aul bundle db-util appsvc pkgmgr-info pkgmgr vconf gio-2.0 gio-unix-2.0 capi-system-device libtzplatform-config libsystemd-login eventsystem")
IF(_APPFW_FEATURE_ALARM_MANAGER_MODULE_LOG)
ADD_DEFINITIONS("-D_APPFW_FEATURE_ALARM_MANAGER_MODULE_LOG")
diff --git a/alarm-manager.c b/alarm-manager.c
index 4f282b2..891ae34 100644
--- a/alarm-manager.c
+++ b/alarm-manager.c
@@ -38,6 +38,7 @@
#include <vconf-keys.h>
#include <dlfcn.h>
#include <pkgmgr-info.h>
+#include <package-manager.h>
#include <device/display.h>
#include <systemd/sd-login.h>
#include <eventsystem.h>
@@ -3248,9 +3249,9 @@ static bool __initialize_noti()
/* If the caller or callee app is uninstalled, all registered alarms will be canceled. */
int event_type = PMINFO_CLIENT_STATUS_UNINSTALL;
- pkgmgrinfo_client* pc = pkgmgrinfo_client_new(PMINFO_LISTENING);
- pkgmgrinfo_client_set_status_type(pc, event_type);
- pkgmgrinfo_client_listen_status(pc, __on_app_uninstalled, NULL);
+ pkgmgr_client *pc = pkgmgrinfo_client_new(PC_LISTENING);
+ pkgmgr_client_set_status_type(pc, event_type);
+ pkgmgr_client_listen_status(pc, __on_app_uninstalled, NULL);
return true;
}
diff --git a/packaging/alarm-manager.spec b/packaging/alarm-manager.spec
index c3eddd5..55e42fd 100644
--- a/packaging/alarm-manager.spec
+++ b/packaging/alarm-manager.spec
@@ -23,6 +23,7 @@ BuildRequires: pkgconfig(db-util)
BuildRequires: pkgconfig(vconf)
BuildRequires: pkgconfig(appsvc)
BuildRequires: pkgconfig(pkgmgr-info)
+BuildRequires: pkgconfig(pkgmgr)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(gio-unix-2.0)
BuildRequires: pkgconfig(capi-system-device)