CONNECTION_WIFI_SECURITY_TYPE_WPA_PSK = 2, /**< WPA-PSK */
CONNECTION_WIFI_SECURITY_TYPE_WPA2_PSK = 3, /**< WPA2-PSK */
CONNECTION_WIFI_SECURITY_TYPE_EAP = 4, /**< EAP */
+ CONNECTION_WIFI_SECURITY_TYPE_SAE = 5, /**< WPA3 */
} connection_wifi_security_type_e;
CONNECTION_CELLULAR_SERVICE_TYPE_UNKNOWN = 0, /**< Unknown */
CONNECTION_CELLULAR_SERVICE_TYPE_INTERNET = 1, /**< Internet */
CONNECTION_CELLULAR_SERVICE_TYPE_MMS = 2, /**< MMS */
- CONNECTION_CELLULAR_SERVICE_TYPE_PREPAID_INTERNET = 3, /**< Prepaid internet */
+ CONNECTION_CELLULAR_SERVICE_TYPE_PREPAID_INTERNET = 3, /**< Prepaid Internet */
CONNECTION_CELLULAR_SERVICE_TYPE_PREPAID_MMS = 4, /**< Prepaid MMS */
CONNECTION_CELLULAR_SERVICE_TYPE_TETHERING = 5, /**< Tethering */
CONNECTION_CELLULAR_SERVICE_TYPE_APPLICATION = 6, /**< Specific application */
/**
* @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,
CONNECTION_PROFILE_TYPE_BT = 3, /**< Bluetooth type */
} connection_profile_type_e;
+/**
+ * @brief Enumeration for Internet connection state.
+ * @since_tizen 5.5
+ */
+typedef enum {
+ CONNECTION_INTERNET_STATE_OFFLINE = 0, /**< Internet connection is unavailable */
+ CONNECTION_INTERNET_STATE_ONLINE = 1, /**< Internet connection is available */
+} connection_internet_state_e;
+
/**
* @brief Creates a profile handle.
* @return @c 0 on success,
* otherwise negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CONNECTION_ERROR_PERMISSION_DENIED Permission denied
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @see connection_profile_create()
*/
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_OUT_OF_MEMORY Out of memory
* @see connection_profile_destroy()
/**
* @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
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_OUT_OF_MEMORY Out of memory
* @see connection_profile_get_name()
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_OUT_OF_MEMORY Out of memory
* @see connection_profile_get_id()
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_OPERATION_FAILED Operation failed
*/
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_OUT_OF_MEMORY Out of memory
*/
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_OPERATION_FAILED Operation failed
* @retval #CONNECTION_ERROR_OUT_OF_MEMORY Out of memory
/**
- * @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
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_OPERATION_FAILED Operation failed
*/
int connection_profile_get_state(connection_profile_h profile,
connection_profile_state_e *state);
+/**
+ * @brief Gets the Internet connection state.
+ * @since_tizen 5.5
+ * @param[in] profile The profile handle
+ * @param[out] state The Internet connection state of the profile
+ * @return @c 0 on success,
+ * otherwise a negative error value
+ * @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
+ * @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CONNECTION_ERROR_OPERATION_FAILED Operation failed
+*/
+int connection_profile_get_internet_state(connection_profile_h profile,
+ connection_internet_state_e *state);
/**
* @brief Gets the IP config type.
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_OPERATION_FAILED Operation failed
*/
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CONNECTION_ERROR_ADDRESS_FAMILY_NOT_SUPPORTED Not supported address family
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CONNECTION_ERROR_ADDRESS_FAMILY_NOT_SUPPORTED Not supported address family
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CONNECTION_ERROR_ADDRESS_FAMILY_NOT_SUPPORTED Not supported address family
* @param[out] dhcp_server The DHCP Server address
* @return @c 0 on success, otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CONNECTION_ERROR_ADDRESS_FAMILY_NOT_SUPPORTED Not supported address family
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_NOT_INITIALIZED Not initialized
+ * @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().
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CONNECTION_ERROR_ADDRESS_FAMILY_NOT_SUPPORTED Not supported address family
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_OPERATION_FAILED Operation failed
*/
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CONNECTION_ERROR_ADDRESS_FAMILY_NOT_SUPPORTED Not supported address family
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_OPERATION_FAILED Operation failed
*/
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @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
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @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
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @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
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @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
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_OPERATION_FAILED Operation failed
* @see connection_update_profile()
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @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
/**
- * @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
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_OPERATION_FAILED Operation failed
* @post connection_opened_cb() is invoked when the state of profile is changed.
/**
- * @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,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @see connection_profile_state_changed_cb()
* @see connection_profile_set_state_changed_cb()
* @param[out] state The profile state
* @return 0 on success, otherwise negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_OPERATION_FAILED Operation failed
* @retval #CONNECTION_ERROR_NOT_SUPPORTED Not supported
* @param[in] type The DNS config type
* @return 0 on success, otherwise negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_OPERATION_FAILED Operation failed
* @retval #CONNECTION_ERROR_NOT_SUPPORTED Not supported
* @param[out] type The DNS config type
* @return 0 on success, otherwise negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_OPERATION_FAILED Operation failed
* @retval #CONNECTION_ERROR_NOT_SUPPORTED Not supported
* (also called a prefix, e.g. 8, 16, 24, 32)
* @return 0 on success, otherwise negative error value.
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_OPERATION_FAILED Operation failed
* @retval #CONNECTION_ERROR_NOT_SUPPORTED Not supported
* (also called a prefix, e.g. 8, 16, 24, 32)
* @return 0 on success, otherwise negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_OPERATION_FAILED Operation failed
* @retval #CONNECTION_ERROR_NOT_SUPPORTED Not supported
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CONNECTION_ERROR_NOT_SUPPORTED Not supported
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CONNECTION_ERROR_NOT_SUPPORTED Not supported
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_NOT_SUPPORTED Not supported
*/
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_NOT_SUPPORTED Not supported
*/
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_NOT_SUPPORTED Not supported
*/
/**
- * @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
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_OPERATION_FAILED Operation failed
* @retval #CONNECTION_ERROR_NOT_SUPPORTED Not supported
/**
- * @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
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_OPERATION_FAILED Operation failed
* @retval #CONNECTION_ERROR_NOT_SUPPORTED Not supported
* otherwise @c false if a passphrase is not required
* @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_NOT_SUPPORTED Not supported
+ * @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
+ * @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #CONNECTION_ERROR_NOT_SUPPORTED Not supported
*/
int connection_profile_is_wifi_passphrase_required(connection_profile_h profile,
bool *required);
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_NOT_SUPPORTED Not supported
* @see connection_update_profile()
* @return @c 0 on success,
* otherwise negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_NOT_SUPPORTED Not supported
*/
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_OPERATION_FAILED Operation failed
* @retval #CONNECTION_ERROR_NOT_SUPPORTED Not supported
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CONNECTION_ERROR_NOT_SUPPORTED Not supported
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CONNECTION_ERROR_OPERATION_FAILED Operation failed
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_OUT_OF_MEMORY Out of memory
* @retval #CONNECTION_ERROR_NOT_SUPPORTED Not supported
* @return @c 0 on success,
* otherwise negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @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);
* @return @c 0 on success,
* otherwise negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_OPERATION_FAILED Operation failed
* @retval #CONNECTION_ERROR_NOT_SUPPORTED Not supported
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_NOT_SUPPORTED Not supported
*/
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_NOT_SUPPORTED Not supported
*/
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_NOT_SUPPORTED Not supported
*/
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_NOT_SUPPORTED Not supported
*/
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_NOT_SUPPORTED Not supported
* @see connection_update_profile()
/**
* @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,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_NOT_SUPPORTED Not supported
* @see connection_update_profile()
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_NOT_SUPPORTED Not supported
* @see connection_update_profile()
* @return @c 0 on success,
* otherwise a negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_NOT_SUPPORTED Not supported
* @see connection_update_profile()
* @return @c 0 on success,
* otherwise negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_OPERATION_FAILED Operation failed
* @retval #CONNECTION_ERROR_NOT_SUPPORTED Not supported
* @return @c 0 on success,
* otherwise negative error value
* @retval #CONNECTION_ERROR_NONE Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED Not initialized
* @retval #CONNECTION_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #CONNECTION_ERROR_OPERATION_FAILED Operation failed
* @retval #CONNECTION_ERROR_NOT_SUPPORTED Not supported