Added CAPI to get DHCP lease duration 08/140908/3
authorAbhishek Sansanwal <abhishek.s94@samsung.com>
Thu, 27 Jul 2017 06:13:31 +0000 (11:43 +0530)
committertaesub kim <taesub.kim@samsung.com>
Mon, 31 Jul 2017 22:27:44 +0000 (07:27 +0900)
Description: The following CAPI was added-
wifi_manager_ap_get_dhcp_lease_duration();

Change-Id: I7089b9cc11b92b2bd5742995797b07ab41c3f706
Signed-off-by: Abhishek Sansanwal <abhishek.s94@samsung.com>
include/wifi-manager.h

index 940bdc0c7c253ec5d36cd3bb9a2a11a4f5dbd201..ad62153eefca8b78170f77ebd8ac8ed5cef99325 100755 (executable)
@@ -2060,11 +2060,25 @@ int wifi_manager_ap_set_gateway_address(wifi_manager_ap_h ap,
  * @retval #WIFI_MANAGER_ERROR_NONE                 Successful
  * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER    Invalid parameter
  * @retval #WIFI_MANAGER_ERROR_OUT_OF_MEMORY        Out of memory
- * @retval #WIFI_MANAGER_ERROR_NOT_SUPPORTED        Operation not Supported
+ * @retval #WIFI_MANAGER_ERROR_NOT_SUPPORTED        Not supported
  */
 int wifi_manager_ap_get_dhcp_server_address(wifi_manager_ap_h ap,
                wifi_manager_address_family_e address_family, char **dhcp_server);
 
+/**
+ * @brief Gets the DHCP lease duration.
+ * @since_tizen 4.0
+ * @param[in] ap                        The access point handle
+ * @param[in] address_family            The address family
+ * @param[out] dhcp_lease_duration      The DHCP lease duration in seconds
+ * @return 0 on success, otherwise negative error value
+ * @retval #WIFI_MANAGER_ERROR_NONE                 Successful
+ * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER    Invalid parameter
+ * @retval #WIFI_MANAGER_ERROR_NOT_SUPPORTED        Not supported
+ */
+int wifi_manager_ap_get_dhcp_lease_duration(wifi_manager_ap_h ap,
+               wifi_manager_address_family_e address_family, int *dhcp_lease_duration);
+
 /**
  * @brief Gets the proxy address.
  * @since_tizen 3.0