From 2209a33d19f2f49c8c301f36b25bdc8159cab27f Mon Sep 17 00:00:00 2001 From: Abhishek Sansanwal Date: Thu, 27 Jul 2017 11:25:04 +0530 Subject: [PATCH] Add CAPI to get DHCP lease duration Description: The following CAPI was added- connection_profile_get_dhcp_lease_duration(); Signed-off-by: Abhishek Sansanwal Change-Id: Iffe6e0a5aa3f428b3665172ed68672d112635365 --- include/connection_profile.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/include/connection_profile.h b/include/connection_profile.h index d1df149..af1dd4f 100755 --- a/include/connection_profile.h +++ b/include/connection_profile.h @@ -483,6 +483,22 @@ int connection_profile_get_dhcp_server_address(connection_profile_h profile, connection_address_family_e address_family, char **dhcp_server); /** + * @brief Gets the DHCP lease duration. + * @since_tizen 4.0 + * @param[in] profile The profile handle + * @param[in] address_family The address family + * @param[out] dhcp_lease_duration The DHCP lease duration in seconds + * @return @c 0 on success, otherwise a negative error value + * @retval #CONNECTION_ERROR_NONE Successful + * @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter + * @retval #CONNECTION_ERROR_ADDRESS_FAMILY_NOT_SUPPORTED Not supported address family + * @retval #CONNECTION_ERROR_OPERATION_FAILED Operation failed + * @retval #CONNECTION_ERROR_NOT_SUPPORTED Not supported +*/ +int connection_profile_get_dhcp_lease_duration(connection_profile_h profile, + connection_address_family_e address_family, int *dhcp_lease_duration); + +/** * @brief Gets the DNS address. * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif * @remarks The allowance of the DNS address is @c 2. You must release @a dns_address using free(). -- 2.7.4