From 931e3c58081b969bd95e82ab1ac2478c34fee185 Mon Sep 17 00:00:00 2001 From: Junghyuk Park Date: Fri, 10 Feb 2012 16:09:07 +0900 Subject: Beta release --- debian/changelog | 8 ++++++++ include/app_manager.h | 5 ++++- src/app_manager.c | 10 ++++++++-- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 2f7aaaa..54065cb 100755 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +capi-appfw-app-manager (0.1.0-5) unstable; urgency=low + + * Changed function signature : app_manager_unset_app_list_changed_cb() + * Git: api/app-manager + * Tag: capi-appfw-app-manager_0.1.0-5 + + -- Kyuhun Jung Mon, 30 Jan 2012 13:57:12 +0900 + capi-appfw-app-manager (0.1.0-4) unstable; urgency=low * Initial release. diff --git a/include/app_manager.h b/include/app_manager.h index ed65d80..5dac9e4 100755 --- a/include/app_manager.h +++ b/include/app_manager.h @@ -188,10 +188,13 @@ int app_manager_set_app_list_changed_cb(app_manager_app_list_changed_cb callback /** * @brief Unregisters the callback function. * + * @return 0 on success, otherwise a negative error value. + * @retval #APP_MANAGER_ERROR_NONE Successful + * @retval #APP_MANAGER_ERROR_DB_FAILED Database error occurred * @see app_manager_set_app_list_changed_cb() * @see app_manager_app_list_changed_cb() */ -void app_manager_unset_app_list_changed_cb(void); +int app_manager_unset_app_list_changed_cb(void); /** * @} diff --git a/src/app_manager.c b/src/app_manager.c index acd23ab..cf87e86 100755 --- a/src/app_manager.c +++ b/src/app_manager.c @@ -339,14 +339,20 @@ int app_manager_set_app_list_changed_cb(app_manager_app_list_changed_cb callback return APP_MANAGER_ERROR_NONE; } -void app_manager_unset_app_list_changed_cb() +int app_manager_unset_app_list_changed_cb() { if (app_list_changed_cb != NULL) { - vconf_ignore_key_changed(MENU_PKG_VCONF_KEY, app_manager_meun_pkg_changed); + if (vconf_ignore_key_changed(MENU_PKG_VCONF_KEY, app_manager_meun_pkg_changed)) + { + LOGE("[%s] DB_FAILED(0x%08x)", __FUNCTION__, APP_MANAGER_ERROR_DB_FAILED); + return APP_MANAGER_ERROR_DB_FAILED; + } } app_list_changed_cb = NULL; + + return APP_MANAGER_ERROR_NONE; } static void app_manager_meun_pkg_changed(keynode_t* node, void *data) -- cgit v1.2.3