From 89500046a7424ffe0c52c3a511199437f86ab437 Mon Sep 17 00:00:00 2001 From: Yunjin Lee Date: Thu, 19 Jan 2023 12:06:27 +0900 Subject: [PATCH] Deprecate privacy related API and enum Change-Id: I14c986028c23b2f68959cc08fd0106348c089589 Signed-off-by: Yunjin Lee --- src/include/privilege_information.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/include/privilege_information.h b/src/include/privilege_information.h index 9006dbc..429100f 100644 --- a/src/include/privilege_information.h +++ b/src/include/privilege_information.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2020 Samsung Electronics Co., Ltd All Rights Reserved + * Copyright (c) 2014-2023 Samsung Electronics Co., Ltd All Rights Reserved * * Licensed under the Apache License, Version 2.0 (the License); * you may not use this file except in compliance with the License. @@ -46,7 +46,7 @@ typedef enum { PRVINFO_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid function parameter */ PRVINFO_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Out of memory */ PRVINFO_ERROR_INTERNAL_ERROR = TIZEN_ERROR_UNKNOWN, /**< Unknown error */ - PRVINFO_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED, /**< Not supported (Since 5.0) */ + PRVINFO_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED, /**< @deprecated Not supported (Deprecated since 7.5) */ PRVINFO_ERROR_NO_MATCHING_PRIVILEGE = TIZEN_ERROR_PRIVILEGE_INFORMATION | 0x01 /**< No matched privilege (Since 6.0) */ } privilege_info_error_e; @@ -132,6 +132,7 @@ int privilege_info_get_description_by_pkgtype(const char *package_type, const ch /** + * @deprecated Deprecated since 7.5. * @brief Gets the display name of the privacy group in which the given privilege is included. * @since_tizen 3.0 * @remarks @a privacy_name must be released using free(). @@ -146,7 +147,7 @@ int privilege_info_get_description_by_pkgtype(const char *package_type, const ch * @retval #PRVINFO_ERROR_INTERNAL_ERROR Unknown error * @retval #PRVINFO_ERROR_NOT_SUPPORTED Not supported */ -int privilege_info_get_privacy_display_name(const char *privilege, char **privacy_name); +int privilege_info_get_privacy_display_name(const char *privilege, char **privacy_name) TIZEN_DEPRECATED_API; /** -- 2.7.4