summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSuchang Woo <suchang.woo@samsung.com>2015-02-26 06:15:23 (GMT)
committerSuchang Woo <suchang.woo@samsung.com>2015-02-27 02:57:04 (GMT)
commitb620e10812546bcaade02f05789a7d479924df52 (patch)
tree721294e2ed7a5548270aa7b1509ab89459f97cc5
parent9c5ae69df8adb268504ac86aa5681a4a1ffa6c0a (diff)
downloadliblocation-appman-tizen.zip
liblocation-appman-tizen.tar.gz
liblocation-appman-tizen.tar.bz2
app_manager_get_package() and app_info_get_name() are deprecated. app_manager_get_package is replaced with app_manager_get_app_id. app_info_get_name is replaced with app_info_get_label. Signed-off-by: Suchang Woo <suchang.woo@samsung.com> Change-Id: I3c3637f295e4f2b8d2788ab9420e357e5836226a
-rw-r--r--src/location-appman.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/location-appman.c b/src/location-appman.c
index a4b816a..debd86e 100644
--- a/src/location-appman.c
+++ b/src/location-appman.c
@@ -558,7 +558,7 @@ int location_appman_get_name(const char *package, char **appname)
}
else {
- app_info_get_name(app_info, &name);
+ app_info_get_label(app_info, &name);
if (name == NULL || g_strcmp0 (name, "(NULL)") == 0) {
LOCATION_APPMAN_LOG("name of application[%s] is NULL", package);
name = strdup (package);
@@ -883,7 +883,7 @@ int location_appman_get_package_by_pid(pid_t pid, location_appman_s ** appman)
char *package = NULL;
int ret = 0;
- ret = app_manager_get_package(pid, &package);
+ ret = app_manager_get_app_id(pid, &package);
if (ret != APP_MANAGER_ERROR_NONE) {
const char *pkg_name = g_getenv(LOCATION_APPMAN_PKG_NAME);
if (!pkg_name) {
@@ -962,7 +962,7 @@ int location_appman_register_package(location_appman_s * appman)
ret = app_manager_get_app_info(appman->package, &app_info);
if (ret == APP_MANAGER_ERROR_NONE) {
- app_info_get_name(app_info, &name);
+ app_info_get_label(app_info, &name);
if (name != NULL) {
g_strlcpy(appman->appname, name, 64);
g_free(name);