From 839beb961b267ac473da3ac4207e81a6a5a80808 Mon Sep 17 00:00:00 2001 From: Suchang Woo Date: Fri, 27 Feb 2015 12:06:49 +0900 Subject: [PATCH] Temporary support for deprecated APIs app_info_get_name and app_manager_get_package are replaced with app_info_get_label and app_manager_get_app_id. app_info_get_name and app_manager_get_package are no longer provided. But, some packages still use these APIs. To prevent build errors, this patch provides these APIs temporarily. Signed-off-by: Suchang Woo Change-Id: Ib45cbc77e31d320e2be562e870bec05411d21e34 --- include/app_info.h | 4 ++++ include/app_manager.h | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/include/app_info.h b/include/app_info.h index d8a4c3e..fc6c3f5 100644 --- a/include/app_info.h +++ b/include/app_info.h @@ -146,6 +146,10 @@ int app_info_get_app_id(app_info_h app_info, char **app_id); */ int app_info_get_exec(app_info_h app_info, char **exec); +/* FIXME: Temporary patch to prevent build break. + This MUST be removed after packages using the below API are modified. */ +#define app_info_get_name app_info_get_label + /** * @brief Gets the label of the application. * @since_tizen 2.3 diff --git a/include/app_manager.h b/include/app_manager.h index fb0b412..4606594 100644 --- a/include/app_manager.h +++ b/include/app_manager.h @@ -177,6 +177,10 @@ int app_manager_get_app_context(const char *app_id, app_context_h *app_context); */ int app_manager_get_app_id(pid_t pid, char **app_id); +/* FIXME: Temporary patch to prevent build break. + This MUST be removed after packages using the below API are modified. */ +#define app_manager_get_package app_manager_get_app_id + /** * @brief Checks whether the application with the given package name is running. * @since_tizen 2.3 -- 2.7.4