Add CAPI to get DHCP lease duration 03/140903/3 submit/tizen/20170803.074947
authorAbhishek Sansanwal <abhishek.s94@samsung.com>
Thu, 27 Jul 2017 05:55:04 +0000 (11:25 +0530)
committertaesub kim <taesub.kim@samsung.com>
Mon, 31 Jul 2017 22:22:47 +0000 (07:22 +0900)
Description: The following CAPI was added-
connection_profile_get_dhcp_lease_duration();

Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
Change-Id: Iffe6e0a5aa3f428b3665172ed68672d112635365

include/connection_profile.h

index d1df149..af1dd4f 100755 (executable)
@@ -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().