From 815108763030337363a42518ec0f76473e7bdfed Mon Sep 17 00:00:00 2001 From: Cheoleun Moon Date: Tue, 4 Aug 2020 10:55:31 +0900 Subject: [PATCH] Change privilege of route related APIs Change-Id: I7ee791e00a9a5334c80b8eb68ea09bd66151cf6c --- include/net_connection.h | 36 ++++++++++++++++++++++++------------ 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/include/net_connection.h b/include/net_connection.h index f9d6070..17253e2 100755 --- a/include/net_connection.h +++ b/include/net_connection.h @@ -1134,13 +1134,15 @@ int connection_reset_profile(connection_h connection, connection_reset_option_e /** + * @platform * @deprecated Deprecated since 4.0. Use connection_add_route_entry() instead. * @brief Adds a IPv4 route to the routing table. * @details You can get the @a interface_name from * connection_profile_get_network_interface_name() of opened profile. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif - * @privlevel public - * @privilege %http://tizen.org/privilege/network.set + * @privlevel partner + * @privilege %http://tizen.org/privilege/network.route + * @remarks Since 6.0, the required privilege and level of this function has changed. * @param[in] connection The connection handle * @param[in] interface_name The name of network interface * @param[in] host_address The IP address of the host @@ -1159,13 +1161,15 @@ int connection_add_route(connection_h connection, const char* interface_name, /** + * @platform * @deprecated Deprecated since 4.0. Use connection_remove_route_entry() instead. * @brief Removes a IPv4 route from the routing table. * @details You can get the @a interface_name from * connection_profile_get_network_interface_name() of opened profile. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif - * @privlevel public - * @privilege %http://tizen.org/privilege/network.set + * @privlevel partner + * @privilege %http://tizen.org/privilege/network.route + * @remarks Since 6.0, the required privilege and level of this function has changed. * @param[in] connection The connection handle * @param[in] interface_name The name of network interface * @param[in] host_address The IP address of the host @@ -1183,13 +1187,15 @@ int connection_remove_route(connection_h connection, const char* interface_name, /** + * @platform * @deprecated Deprecated since 4.0. Use connection_add_route_entry() instead. * @brief Adds a IPv6 route to the routing table. * @details You can get the @a interface_name from * connection_profile_get_network_interface_name() of opened profile. * @since_tizen 2.3.1 - * @privlevel public - * @privilege %http://tizen.org/privilege/network.set + * @privlevel partner + * @privilege %http://tizen.org/privilege/network.route + * @remarks Since 6.0, the required privilege and level of this function has changed. * @param[in] connection The connection handle * @param[in] interface_name The name of network interface * @param[in] host_address The IP address of the host @@ -1209,13 +1215,15 @@ int connection_add_route_ipv6(connection_h connection, const char *interface_nam /** + * @platform * @deprecated Deprecated since 4.0. Use connection_remove_route_entry() instead. * @brief Removes a IPV6 route from the routing table. * @details You can get the @a interface_name from * connection_profile_get_network_interface_name() of opened profile. * @since_tizen 2.3.1 - * @privlevel public - * @privilege %http://tizen.org/privilege/network.set + * @privlevel partner + * @privilege %http://tizen.org/privilege/network.route + * @remarks Since 6.0, the required privilege and level of this function has changed. * @param[in] connection The connection handle * @param[in] interface_name The name of network interface * @param[in] host_address The IP address of the host @@ -1233,12 +1241,14 @@ int connection_remove_route_ipv6(connection_h connection, const char *interface_ const char *host_address, const char * gateway) TIZEN_DEPRECATED_API; /** + * @platform * @brief Adds a route to the routing table. * @details You can get the @a interface_name from \n * connection_profile_get_network_interface_name() of opened profile. * @since_tizen 4.0 - * @privlevel public - * @privilege %http://tizen.org/privilege/network.set + * @privlevel partner + * @privilege %http://tizen.org/privilege/network.route + * @remarks Since 6.0, the required privilege and level of this function has changed. * @param[in] connection The connection handle * @param[in] address_family The address family * @param[in] interface_name The name of network interface @@ -1261,12 +1271,14 @@ int connection_add_route_entry(connection_h connection, const char *host_address, const char *gateway); /** + * @platform * @brief Removes a route from the routing table. * @details You can get the @a interface_name from \n * connection_profile_get_network_interface_name() of opened profile. * @since_tizen 4.0 - * @privlevel public - * @privilege %http://tizen.org/privilege/network.set + * @privlevel partner + * @privilege %http://tizen.org/privilege/network.route + * @remarks Since 6.0, the required privilege and level of this function has changed. * @param[in] connection The connection handle * @param[in] address_family The address family * @param[in] interface_name The name of network interface -- 2.7.4