From: Junghyun Yeon Date: Fri, 14 Apr 2017 05:14:53 +0000 (+0900) Subject: Add property to get disabled appinfo as extension X-Git-Tag: submit/tizen_3.0/20170426.044950~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F79%2F125179%2F4;p=platform%2Fcore%2Fapi%2Fapp-manager.git Add property to get disabled appinfo as extension Change-Id: I85a736609413b4b0bfc2d6ebe2339f9877f5a9d1 Signed-off-by: Junghyun Yeon --- diff --git a/include/app_info_extension.h b/include/app_info_extension.h index ccf922b..1faca3a 100644 --- a/include/app_info_extension.h +++ b/include/app_info_extension.h @@ -34,6 +34,12 @@ extern "C" { * @{ */ +/** + * @brief Definition for boolean property for filtering based on app info: Boolean property for filtering whether the application has been disabled + * @since_tizen 4.0 + */ +#define PACKAGE_INFO_PROP_APP_DISABLED "PACKAGE_INFO_PROP_APP_DISABLED" + /** * @brief Called for each application category in app_info_foreach_category(). * @since_tizen 4.0 diff --git a/src/app_info.c b/src/app_info.c index f23e44e..7de31cb 100644 --- a/src/app_info.c +++ b/src/app_info.c @@ -95,6 +95,8 @@ static int app_info_convert_bool_property(const char *property, char **converted *converted_property = PMINFO_APPINFO_PROP_APP_NODISPLAY; else if (strcmp(property, PACKAGE_INFO_PROP_APP_TASKMANAGE) == 0) *converted_property = PMINFO_APPINFO_PROP_APP_TASKMANAGE; + else if (strcmp(property, PACKAGE_INFO_PROP_APP_DISABLED) == 0) + *converted_property = PMINFO_APPINFO_PROP_APP_DISABLE; else return -1;