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)
#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>
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");
}
* 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);
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);