summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunghyuk Park <junghyuk.park@samsung.com>2012-02-10 16:09:07 +0900
committerJunghyuk Park <junghyuk.park@samsung.com>2012-02-10 16:09:07 +0900
commit931e3c58081b969bd95e82ab1ac2478c34fee185 (patch)
tree954f6ac98ef76a30a68333d0c453810927512217
parent07ef4cb2447f20ce725438ea1faf0ad58d7dd60e (diff)
downloadapp-manager-931e3c58081b969bd95e82ab1ac2478c34fee185.tar.gz
app-manager-931e3c58081b969bd95e82ab1ac2478c34fee185.tar.bz2
app-manager-931e3c58081b969bd95e82ab1ac2478c34fee185.zip
Beta release
-rwxr-xr-xdebian/changelog8
-rwxr-xr-xinclude/app_manager.h5
-rwxr-xr-xsrc/app_manager.c10
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 <kyuhun.jung@samsung.com> 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)