/**
* @brief Enumeration for cellular pdn type.
* @since_tizen 3.0
- * @remarks Use CONNECTION_CELLULAR_PDN_TYPE_IPV4_IPV6 instead of
+ * @remarks Use #CONNECTION_CELLULAR_PDN_TYPE_IPV4_IPV6 instead of
* CONNECTION_CELLULAR_PDN_TYPE_IPV4_IPv6.
*/
typedef enum {
- CONNECTION_CELLULAR_PDN_TYPE_UNKNOWN = 0, /**> Unknown */
- CONNECTION_CELLULAR_PDN_TYPE_IPV4 = 1, /**> IPv4 */
- CONNECTION_CELLULAR_PDN_TYPE_IPV6 = 2, /**> IPv6 */
- CONNECTION_CELLULAR_PDN_TYPE_IPV4_IPv6 = 3, /**> IPv4 and IPv6 (Deprecated since 4.0)*/
- CONNECTION_CELLULAR_PDN_TYPE_IPV4_IPV6 = 4, /**> IPv4 and IPv6 (Since 4.0)*/
+ CONNECTION_CELLULAR_PDN_TYPE_UNKNOWN = 0, /**< Unknown */
+ CONNECTION_CELLULAR_PDN_TYPE_IPV4 = 1, /**< IPv4 */
+ CONNECTION_CELLULAR_PDN_TYPE_IPV6 = 2, /**< IPv6 */
+ CONNECTION_CELLULAR_PDN_TYPE_IPV4_IPv6 = 3, /**< IPv4 and IPv6 (Deprecated since 4.0) */
+ CONNECTION_CELLULAR_PDN_TYPE_IPV4_IPV6 = 4, /**< IPv4 and IPv6 (Since 4.0) */
} connection_cellular_pdn_type_e;
CONNECTION_IP_CONFIG_TYPE_STATIC = 1,
/**
- * Config IP using DHCP client
+ * Config IP using DHCP client (IPv4 Only)
*/
CONNECTION_IP_CONFIG_TYPE_DYNAMIC = 2,
CONNECTION_IP_CONFIG_TYPE_AUTO = 3,
/**
- * Indicates an IP address that can not be modified
+ * Indicates an IP address that can not be modified (IPv4 Only)
*/
CONNECTION_IP_CONFIG_TYPE_FIXED = 4,
/**
* @brief Gets the profile ID.
* @details The separate profiles can have the same name.
- * So, you must use this API instead of connection_profile_get_name()
+ * So, you must use this function instead of connection_profile_get_name()
* if you want to get the unique identification.
* In case you create a profile, this value will be determined when you add the profile.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
/**
- * @brief Gets the network type.
+ * @brief Gets the network state.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[in] profile The profile handle
* @param[out] state The state of the profile
* @brief Gets the Subnet Mask.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @remarks You must release @a subnet_mask using free().
+ * This function is supported only for IPv4 address family.
* @param[in] profile The profile handle
* @param[in] address_family The address family
* @param[out] subnet_mask The subnet mask
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().
* @brief Sets the Subnet Mask.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @remarks You must release @a subnet_mask using free().
+ * This function is supported only for IPv4 address family.
* @param[in] profile The profile handle
* @param[in] address_family The address family
* @param[in] subnet_mask The subnet mask \n
/**
- * @brief Registers the callback that is called when the state of profile is changed.
+ * @brief Sets the callback that is called when the state of profile is changed.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[in] profile The profile handle
* @param[in] callback The callback function to be called
/**
- * @brief Unregisters the callback that is called when the state of profile is changed.
+ * @brief Unsets the callback that is called when the state of profile is changed.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[in] profile The profile handle
* @return @c 0 on success,
/**
- * @brief Gets the security mode of Wi-Fi.
+ * @brief Gets the security type of Wi-Fi.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[in] profile The profile handle
* @param[out] type The type of Wi-Fi security
/**
- * @brief Gets the security mode of Wi-Fi.
+ * @brief Gets the encryption type of Wi-Fi.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
* @param[in] profile The profile handle
* @param[out] type The type of Wi-Fi security
* @retval #CONNECTION_ERROR_NONE Successful
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_OPERATION_FAILED Operation failed
- * @retval #CONNECTION_ERROR_NOT_SUPPORTED Not suppported
+ * @retval #CONNECTION_ERROR_NOT_SUPPORTED Not supported
*/
int connection_profile_get_cellular_pdn_type(connection_profile_h profile,
connection_cellular_pdn_type_e *type);
/**
* @brief Sets the APN (Access Point Name).
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- * @remarks You must release @a spn using free().
+ * @remarks You must release @a apn using free().
* @param[in] profile The profile handle
* @param[in] apn The name of APN
* @return @c 0 on success,