Apply AppFW requests. accepted/tizen/mobile/20150812.110852 submit/tizen_mobile/20150812.025625 submit/tizen_mobile/20150812.073921
authorSung-jae Park <nicesj.park@samsung.com>
Wed, 12 Aug 2015 02:55:35 +0000 (11:55 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Wed, 12 Aug 2015 02:55:35 +0000 (11:55 +0900)
[model] Redwood,Kiran,B3(Wearable)
[binary_type] AP
[customer] Docomo/Orange/ATT/Open
[issue#] N/A
[problem]
[cause]
[solution]
[team] HomeTF
[request]
[horizontal_expansion]

Change-Id: Ia5e046aed1cdaedc4dba0aca004bce2bd1acb9b8

CMakeLists.txt
packaging/libwidget_service.spec
src/widget_service.c

index 717cc4b..926a63f 100644 (file)
@@ -21,7 +21,6 @@ pkg_check_modules(pkgs REQUIRED
        com-core
        sqlite3
        db-util
-       pkgmgr
        pkgmgr-info
        vconf
        icu-uc
index 61260e5..16b4e84 100644 (file)
@@ -16,7 +16,6 @@ BuildRequires: pkgconfig(gio-2.0)
 BuildRequires: pkgconfig(com-core)
 BuildRequires: pkgconfig(sqlite3)
 BuildRequires: pkgconfig(db-util)
-BuildRequires: pkgconfig(pkgmgr)
 BuildRequires: pkgconfig(pkgmgr-info)
 BuildRequires: pkgconfig(vconf)
 BuildRequires: pkgconfig(icu-uc)
index e3b45e1..300cf84 100644 (file)
@@ -29,7 +29,6 @@
 #include <packet.h>
 #include <dlog.h>
 #include <db-util.h>
-#include <package-manager.h>
 #include <pkgmgr-info.h>
 #include <vconf.h>
 #include <vconf-keys.h>
@@ -262,7 +261,7 @@ static inline int pkgmgr_get_applist(const char *pkgid, const char *widgetid, vo
        cbdata.cb = cb;
        cbdata.cbdata = data;
 
-       ret = pkgmgrinfo_appinfo_get_list(handle, PM_UI_APP, pkgmgr_cb, &cbdata);
+       ret = pkgmgrinfo_appinfo_get_list(handle, PMINFO_UI_APP, pkgmgr_cb, &cbdata);
        if (ret < 0) {
                ErrPrint("Failed to get applist\n");
        }
@@ -2459,14 +2458,14 @@ EAPI char *widget_service_get_widget_id(const char *appid)
         * Try to get the package id using given appid
         */
        ret = pkgmgrinfo_appinfo_get_appinfo(appid, &handle);
-       if (ret != PKGMGR_R_OK) {
+       if (ret != PMINFO_R_OK) {
                set_last_result(WIDGET_ERROR_FAULT);
                ErrPrint("Failed to get appinfo\n");
                return NULL;
        }
 
        ret = pkgmgrinfo_appinfo_get_pkgid(handle, &new_appid);
-       if (ret != PKGMGR_R_OK) {
+       if (ret != PMINFO_R_OK) {
                set_last_result(WIDGET_ERROR_FAULT);
                pkgmgrinfo_appinfo_destroy_appinfo(handle);
                ErrPrint("Failed to get pkgname for (%s)\n", appid);
@@ -2547,14 +2546,14 @@ EAPI char *widget_service_get_package_id(const char *pkgname)
                sqlite3_finalize(stmt);
 
                ret = pkgmgrinfo_appinfo_get_appinfo(pkgname, &pkg_handle);
-               if (ret != PKGMGR_R_OK) {
+               if (ret != PMINFO_R_OK) {
                        set_last_result(WIDGET_ERROR_FAULT);
                        ErrPrint("Failed to get appinfo: %s\n", pkgname);
                        goto out;
                }
 
                ret = pkgmgrinfo_appinfo_get_pkgid(pkg_handle, &new_appid);
-               if (ret != PKGMGR_R_OK) {
+               if (ret != PMINFO_R_OK) {
                        set_last_result(WIDGET_ERROR_FAULT);
                        ErrPrint("Failed to get pkgname for (%s)\n", appid);
                        pkgmgrinfo_appinfo_destroy_appinfo(pkg_handle);