Add new error (ACR-1257) 70/183670/6 accepted/tizen/unified/20180724.073334 submit/tizen/20180723.014622 submit/tizen/20180723.233312
authortaesub kim <taesub.kim@samsung.com>
Mon, 9 Jul 2018 23:40:54 +0000 (08:40 +0900)
committertaesub kim <taesub.kim@samsung.com>
Thu, 12 Jul 2018 07:57:27 +0000 (16:57 +0900)
Change-Id: I9caba25fa33c0e538c07f2ba15764927ebe25d1d
Signed-off-by: Taesub Kim <taesub.kim@samsung.com>
include/connection_profile.h
include/net_connection.h
include/net_connection_mptcp_private.h [changed mode: 0644->0755]
src/connection_mptcp.c [changed mode: 0644->0755]
src/libnetwork.c
src/libnetwork_mptcp.c [changed mode: 0644->0755]
test/connection_test.c

index 5e464b1..5bee76d 100755 (executable)
@@ -249,6 +249,7 @@ typedef enum {
  * @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
@@ -267,6 +268,7 @@ int connection_profile_create(connection_profile_type_e 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
  * @see connection_profile_create()
 */
@@ -282,6 +284,7 @@ int connection_profile_destroy(connection_profile_h 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_OUT_OF_MEMORY         Out of memory
  * @see connection_profile_destroy()
@@ -303,6 +306,7 @@ int connection_profile_clone(connection_profile_h *cloned_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_OUT_OF_MEMORY         Out of memory
  * @see connection_profile_get_name()
@@ -320,6 +324,7 @@ int connection_profile_get_id(connection_profile_h profile, char **profile_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_OUT_OF_MEMORY         Out of memory
  * @see connection_profile_get_id()
@@ -335,6 +340,7 @@ int connection_profile_get_name(connection_profile_h profile, char **profile_nam
  * @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
 */
@@ -350,6 +356,7 @@ int connection_profile_get_type(connection_profile_h profile, connection_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_OUT_OF_MEMORY         Out of memory
 */
@@ -368,6 +375,7 @@ int connection_profile_get_network_interface_name(connection_profile_h 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
  * @retval #CONNECTION_ERROR_OUT_OF_MEMORY         Out of memory
@@ -384,6 +392,7 @@ int connection_profile_refresh(connection_profile_h 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
 */
@@ -400,6 +409,7 @@ int connection_profile_get_state(connection_profile_h 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
 */
@@ -417,6 +427,7 @@ int connection_profile_get_ip_config_type(connection_profile_h 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_OUT_OF_MEMORY                  Out of memory
  * @retval #CONNECTION_ERROR_ADDRESS_FAMILY_NOT_SUPPORTED   Not supported address family
@@ -437,6 +448,7 @@ int connection_profile_get_ip_address(connection_profile_h 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_OUT_OF_MEMORY                  Out of memory
  * @retval #CONNECTION_ERROR_ADDRESS_FAMILY_NOT_SUPPORTED   Not supported address family
@@ -456,6 +468,7 @@ int connection_profile_get_subnet_mask(connection_profile_h 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_OUT_OF_MEMORY                  Out of memory
  * @retval #CONNECTION_ERROR_ADDRESS_FAMILY_NOT_SUPPORTED   Not supported address family
@@ -474,6 +487,7 @@ int connection_profile_get_gateway_address(connection_profile_h profile,
  * @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
@@ -490,6 +504,7 @@ int connection_profile_get_dhcp_server_address(connection_profile_h profile,
  * @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
@@ -510,6 +525,7 @@ int connection_profile_get_dhcp_lease_duration(connection_profile_h 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_OUT_OF_MEMORY                  Out of memory
  * @retval #CONNECTION_ERROR_ADDRESS_FAMILY_NOT_SUPPORTED   Not supported address family
@@ -527,6 +543,7 @@ int connection_profile_get_dns_address(connection_profile_h 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
 */
@@ -544,6 +561,7 @@ int connection_profile_get_proxy_type(connection_profile_h 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_OUT_OF_MEMORY                  Out of memory
  * @retval #CONNECTION_ERROR_ADDRESS_FAMILY_NOT_SUPPORTED   Not supported address family
@@ -564,6 +582,7 @@ int connection_profile_get_proxy_address(connection_profile_h 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
 */
@@ -582,6 +601,7 @@ int connection_profile_set_ip_config_type(connection_profile_h 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
@@ -603,6 +623,7 @@ int connection_profile_set_ip_address(connection_profile_h 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
@@ -623,6 +644,7 @@ int connection_profile_set_subnet_mask(connection_profile_h 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
@@ -646,6 +668,7 @@ int connection_profile_set_gateway_address(connection_profile_h 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
@@ -665,6 +688,7 @@ int connection_profile_set_dns_address(connection_profile_h 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
  * @see connection_update_profile()
@@ -684,6 +708,7 @@ int connection_profile_set_proxy_type(connection_profile_h 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
@@ -714,6 +739,7 @@ typedef void(*connection_profile_state_changed_cb)(connection_profile_state_e st
  * @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.
@@ -731,6 +757,7 @@ int connection_profile_set_state_changed_cb(connection_profile_h 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
  * @see connection_profile_state_changed_cb()
  * @see connection_profile_set_state_changed_cb()
@@ -744,6 +771,7 @@ int connection_profile_unset_state_changed_cb(connection_profile_h profile);
  * @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
@@ -759,6 +787,7 @@ int connection_profile_get_ipv6_state(connection_profile_h profile,
  * @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
@@ -774,6 +803,7 @@ int connection_profile_set_dns_config_type(connection_profile_h profile,
  * @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
@@ -791,6 +821,7 @@ int connection_profile_get_dns_config_type(connection_profile_h profile,
  *                            (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
@@ -808,6 +839,7 @@ int connection_profile_get_prefix_length(connection_profile_h profile,
  *                            (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
@@ -836,6 +868,7 @@ int connection_profile_set_prefix_length(connection_profile_h 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_OUT_OF_MEMORY      Out of memory
  * @retval #CONNECTION_ERROR_NOT_SUPPORTED      Not supported
@@ -852,6 +885,7 @@ int connection_profile_get_wifi_essid(connection_profile_h profile, char **essid
  * @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
@@ -867,6 +901,7 @@ int connection_profile_get_wifi_bssid(connection_profile_h profile, char **bssid
  * @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
 */
@@ -881,6 +916,7 @@ int connection_profile_get_wifi_rssi(connection_profile_h profile, int *rssi);
  * @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
 */
@@ -895,6 +931,7 @@ int connection_profile_get_wifi_frequency(connection_profile_h profile, int *fre
  * @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
 */
@@ -909,6 +946,7 @@ int connection_profile_get_wifi_max_speed(connection_profile_h profile, int *max
  * @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
@@ -925,6 +963,7 @@ int connection_profile_get_wifi_security_type(connection_profile_h 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
  * @retval #CONNECTION_ERROR_NOT_SUPPORTED      Not supported
@@ -942,9 +981,10 @@ int connection_profile_get_wifi_encryption_type(connection_profile_h profile,
  *                            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);
@@ -959,6 +999,7 @@ int connection_profile_is_wifi_passphrase_required(connection_profile_h 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()
@@ -977,6 +1018,7 @@ int connection_profile_set_wifi_passphrase(connection_profile_h 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
 */
@@ -1003,6 +1045,7 @@ int connection_profile_is_wifi_wps_supported(connection_profile_h 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
  * @retval #CONNECTION_ERROR_NOT_SUPPORTED      Not supported
@@ -1020,6 +1063,7 @@ int connection_profile_get_cellular_service_type(connection_profile_h 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_OUT_OF_MEMORY      Out of memory
  * @retval #CONNECTION_ERROR_NOT_SUPPORTED      Not supported
@@ -1038,6 +1082,7 @@ int connection_profile_get_cellular_apn(connection_profile_h profile, char **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_OUT_OF_MEMORY      Out of memory
  * @retval #CONNECTION_ERROR_OPERATION_FAILED   Operation failed
@@ -1056,6 +1101,7 @@ int connection_profile_get_cellular_auth_info(connection_profile_h 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_OUT_OF_MEMORY      Out of memory
  * @retval #CONNECTION_ERROR_NOT_SUPPORTED      Not supported
@@ -1072,6 +1118,7 @@ int connection_profile_get_cellular_home_url(connection_profile_h 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
@@ -1088,6 +1135,7 @@ int connection_profile_get_cellular_pdn_type(connection_profile_h 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
@@ -1105,6 +1153,7 @@ int connection_profile_get_cellular_roam_pdn_type(connection_profile_h 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
 */
@@ -1121,6 +1170,7 @@ int connection_profile_is_cellular_roaming(connection_profile_h 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
 */
@@ -1137,6 +1187,7 @@ int connection_profile_is_cellular_hidden(connection_profile_h 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
 */
@@ -1153,6 +1204,7 @@ int connection_profile_is_cellular_editable(connection_profile_h 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
 */
@@ -1168,6 +1220,7 @@ int connection_profile_is_cellular_default(connection_profile_h 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()
@@ -1185,6 +1238,7 @@ int connection_profile_set_cellular_service_type(connection_profile_h 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()
@@ -1203,6 +1257,7 @@ int connection_profile_set_cellular_apn(connection_profile_h profile, const char
  * @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()
@@ -1220,6 +1275,7 @@ int connection_profile_set_cellular_auth_info(connection_profile_h 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()
@@ -1236,6 +1292,7 @@ int connection_profile_set_cellular_home_url(connection_profile_h 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
@@ -1252,6 +1309,7 @@ int connection_profile_set_cellular_pdn_type(connection_profile_h 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
index 5a5dc51..fd5c96d 100755 (executable)
@@ -235,7 +235,17 @@ typedef enum {
        /**
         * Not supported
         */
-       CONNECTION_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED
+       CONNECTION_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED,
+
+       /**
+        * Already initialized (Since 5.0)
+        */
+       CONNECTION_ERROR_ALREADY_INITIALIZED = TIZEN_ERROR_CONNECTION|0x0409,
+
+       /**
+        * Not initialized (Sinece 5.0)
+        */
+       CONNECTION_ERROR_NOT_INITIALIZED = TIZEN_ERROR_CONNECTION|0x040A,
 
 } connection_error_e;
 
@@ -275,6 +285,9 @@ typedef enum {
 
 /**
  * @brief Creates a handle for managing data connections.
+ * @details If you do not use this function and use other functions,
+ *          you will get the #CONNECTION_ERROR_NOT_INITIALIZED error.
+ *          If you put an invalid handle, you will get the #CONNECTION_ERROR_INVALID_PARAMETER error.
  * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
  * @privlevel public
  * @privilege %http://tizen.org/privilege/network.get
@@ -283,6 +296,7 @@ typedef enum {
  * @return @c 0 on success,
  *         otherwise a negative error value
  * @retval #CONNECTION_ERROR_NONE                  Successful
+ * @retval #CONNECTION_ERROR_ALREADY_INITIALIZED   Already initialized
  * @retval #CONNECTION_ERROR_INVALID_PARAMETER     Invalid parameter
  * @retval #CONNECTION_ERROR_OUT_OF_MEMORY         Out of memory
  * @retval #CONNECTION_ERROR_PERMISSION_DENIED     Permission denied
@@ -298,6 +312,7 @@ int connection_create(connection_h* connection);
  * @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_create()
  */
@@ -365,6 +380,7 @@ typedef bool(*connection_ipv6_address_cb)(char *ipv6_address, void *user_data);
  * @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
  */
@@ -381,6 +397,7 @@ int connection_get_type(connection_h connection, connection_type_e* 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
  * @retval #CONNECTION_ERROR_ADDRESS_FAMILY_NOT_SUPPORTED   Not supported address family
@@ -399,6 +416,7 @@ int connection_get_ip_address(connection_h connection,
  * @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_ADDRESS_FAMILY_NOT_SUPPORTED   Not supported address family
@@ -417,6 +435,7 @@ int connection_get_proxy(connection_h connection,
  * @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_INVALID_OPERATION     Invalid operation
  * @retval #CONNECTION_ERROR_OPERATION_FAILED      Operation failed
@@ -437,6 +456,7 @@ int connection_get_mac_address(connection_h connection,
  * @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_PERMISSION_DENIED     Permission denied
@@ -454,6 +474,7 @@ int connection_is_metered_network(connection_h connection, bool* is_metered);
  * @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
@@ -472,6 +493,7 @@ int connection_get_cellular_state(connection_h connection, connection_cellular_s
  * @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_PERMISSION_DENIED     Permission denied
@@ -491,6 +513,7 @@ int connection_get_wifi_state(connection_h connection, connection_wifi_state_e*
  * @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_PERMISSION_DENIED     Permission denied
@@ -510,6 +533,7 @@ int connection_get_ethernet_state(connection_h connection, connection_ethernet_s
  * @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
@@ -540,6 +564,7 @@ typedef void(*connection_ethernet_cable_state_chaged_cb)
  * @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
@@ -556,6 +581,7 @@ int connection_set_ethernet_cable_state_chaged_cb(connection_h connection,
  * @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
@@ -581,6 +607,7 @@ typedef void(*connection_ethernet_cable_state_changed_cb)(
  * @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
@@ -596,6 +623,7 @@ int connection_set_ethernet_cable_state_changed_cb(connection_h connection,
  * @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
@@ -614,6 +642,7 @@ int connection_unset_ethernet_cable_state_changed_cb(connection_h connection);
  * @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_PERMISSION_DENIED     Permission denied
@@ -631,6 +660,7 @@ int connection_get_bt_state(connection_h connection, connection_bt_state_e* stat
  * @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
  */
@@ -645,6 +675,7 @@ int connection_set_type_changed_cb(connection_h connection,
  * @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
  */
@@ -660,6 +691,7 @@ int connection_unset_type_changed_cb(connection_h connection);
  * @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
  */
@@ -674,6 +706,7 @@ int connection_set_ip_address_changed_cb(connection_h connection,
  * @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
  */
@@ -689,6 +722,7 @@ int connection_unset_ip_address_changed_cb(connection_h connection);
  * @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
  */
@@ -703,6 +737,7 @@ int connection_set_proxy_address_changed_cb(connection_h connection,
  * @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
  */
@@ -720,6 +755,7 @@ int connection_unset_proxy_address_changed_cb(connection_h connection);
  * @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_PERMISSION_DENIED     Permission denied
@@ -740,6 +776,7 @@ int connection_add_profile(connection_h connection, connection_profile_h 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
  * @retval #CONNECTION_ERROR_PERMISSION_DENIED     Permission denied
@@ -765,6 +802,7 @@ int connection_remove_profile(connection_h connection, connection_profile_h prof
  * @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_PERMISSION_DENIED     Permission denied
@@ -786,6 +824,7 @@ int connection_update_profile(connection_h connection, connection_profile_h prof
  * @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
@@ -803,6 +842,7 @@ int connection_get_profile_iterator(connection_h connection,
  * @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_ITERATOR_END          End of iteration
  */
@@ -819,6 +859,7 @@ int connection_profile_iterator_next(connection_profile_iterator_h profile_itera
  * @return @c true if next element exists,
  *         otherwise @c false if next element doesn't exist
  * @exception #CONNECTION_ERROR_NONE                  Successful
+ * @retval #CONNECTION_ERROR_NOT_INITIALIZED          Not initialized
  * @exception #CONNECTION_ERROR_NOT_SUPPORTED         Not supported
  * @see get_last_result()
  */
@@ -832,6 +873,7 @@ bool connection_profile_iterator_has_next(connection_profile_iterator_h 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
  */
 int connection_destroy_profile_iterator(connection_profile_iterator_h profile_iterator);
@@ -848,6 +890,7 @@ int connection_destroy_profile_iterator(connection_profile_iterator_h profile_it
  * @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
@@ -870,6 +913,7 @@ int connection_get_current_profile(connection_h connection, connection_profile_h
  * @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
@@ -895,6 +939,7 @@ int connection_get_default_cellular_service_profile(connection_h connection,
  * @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_PERMISSION_DENIED     Permission denied
@@ -921,6 +966,7 @@ int connection_set_default_cellular_service_profile(connection_h connection,
  * @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_PERMISSION_DENIED     Permission denied
@@ -978,6 +1024,7 @@ typedef void(*connection_reset_cb)(connection_error_e result, void* user_data);
  * @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_PERMISSION_DENIED     Permission denied
@@ -1004,6 +1051,7 @@ int connection_open_profile(connection_h connection, connection_profile_h profil
  * @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_PERMISSION_DENIED     Permission denied
@@ -1034,6 +1082,7 @@ int connection_close_profile(connection_h connection, connection_profile_h profi
  * @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_PERMISSION_DENIED     Permission denied
@@ -1058,6 +1107,7 @@ int connection_reset_profile(connection_h connection, connection_reset_option_e
  * @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_ALREADY_EXISTS        Already exists
  * @retval #CONNECTION_ERROR_OPERATION_FAILED      Operation failed
@@ -1082,6 +1132,7 @@ int connection_add_route(connection_h connection, const char* interface_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_OPERATION_FAILED      Operation failed
  * @retval #CONNECTION_ERROR_PERMISSION_DENIED     Permission denied
@@ -1106,6 +1157,7 @@ int connection_remove_route(connection_h connection, const char* interface_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_ALREADY_EXISTS        Already exists
  * @retval #CONNECTION_ERROR_OPERATION_FAILED      Operation failed
@@ -1131,6 +1183,7 @@ int connection_add_route_ipv6(connection_h connection, const char *interface_nam
  * @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_PERMISSION_DENIED     Permission denied
@@ -1156,6 +1209,7 @@ int connection_remove_route_ipv6(connection_h connection, const char *interface_
  * @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_ALREADY_EXISTS        Already exists
  * @retval #CONNECTION_ERROR_OPERATION_FAILED      Operation failed
@@ -1183,6 +1237,7 @@ int connection_add_route_entry(connection_h connection,
  * @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_PERMISSION_DENIED     Permission denied
@@ -1201,6 +1256,7 @@ int connection_remove_route_entry(connection_h connection,
  * @param[in] user_data        The user data passed to the callback function
  * @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
@@ -1232,6 +1288,7 @@ int connection_foreach_ipv6_address(connection_h connection, connection_type_e c
  * @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_PERMISSION_DENIED     Permission denied
@@ -1253,6 +1310,7 @@ int connection_get_statistics(connection_h connection, connection_type_e connect
  * @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_PERMISSION_DENIED     Permission denied
old mode 100644 (file)
new mode 100755 (executable)
old mode 100644 (file)
new mode 100755 (executable)
index c5d2433..878d423 100755 (executable)
@@ -150,6 +150,10 @@ static const char *__libnet_convert_cp_error_type_to_string(connection_error_e e
                return "PERMISSION_DENIED";
        case CONNECTION_ERROR_NOT_SUPPORTED:
                return "NOT_SUPPORTED";
+       case CONNECTION_ERROR_ALREADY_INITIALIZED:
+               return "ALREADY_INITIALIZED";
+       case CONNECTION_ERROR_NOT_INITIALIZED:
+               return "NOT_INITIALIZED";
        }
 
        return "UNKNOWN";
old mode 100644 (file)
new mode 100755 (executable)
index 4864e36..4a63bac 100755 (executable)
@@ -231,6 +231,10 @@ static const char *test_print_error(connection_error_e error)
                return "CONNECTION_ERROR_PERMISSION_DENIED";
        case CONNECTION_ERROR_NOT_SUPPORTED:
                return "CONNECTION_ERROR_NOT_SUPPORTED";
+       case CONNECTION_ERROR_NOT_INITIALIZED:
+               return "CONNECTION_ERROR_NOT_INITIALIZED";
+       case CONNECTION_ERROR_ALREADY_INITIALIZED:
+               return "CONNECTION_ERROR_ALREADY_INITIALIZED";
        default:
                return "CONNECTION_ERROR_UNKNOWN";
        }