Name: capi-network-connection
Summary: Network Connection library in TIZEN C API
-Version: 1.0.81
+Version: 1.0.82
Release: 1
Group: System/Network
License: Apache-2.0
if (rv == NET_ERR_ACCESS_DENIED) {
CONNECTION_LOG(CONNECTION_ERROR, "Access denied"); //LCOV_EXCL_LINE
return CONNECTION_ERROR_PERMISSION_DENIED; //LCOV_EXCL_LINE
- }
- else if (rv != NET_ERR_NONE) {
+ } else if (rv != NET_ERR_NONE) {
CONNECTION_LOG(CONNECTION_ERROR, "Failed to create connection[%d]", rv); //LCOV_EXCL_LINE
return CONNECTION_ERROR_OPERATION_FAILED; //LCOV_EXCL_LINE
}
if (type == CONNECTION_TYPE_WIFI)
CHECK_FEATURE_SUPPORTED(WIFI_FEATURE);
- else if(type == CONNECTION_TYPE_ETHERNET) //LCOV_EXCL_LINE
+ else if (type == CONNECTION_TYPE_ETHERNET) //LCOV_EXCL_LINE
CHECK_FEATURE_SUPPORTED(ETHERNET_FEATURE); //LCOV_EXCL_LINE
if (mac_addr == NULL || !(__connection_check_handle_validity(connection))) {
break;
//LCOV_EXCL_STOP
- default:
+ default :
CONNECTION_LOG(CONNECTION_ERROR, "Invalid parameter"); //LCOV_EXCL_LINE
return CONNECTION_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE
}
}
//LCOV_EXCL_START
-EXPORT_API int connection_get_ethernet_state(connection_h connection, connection_ethernet_state_e* state)
+EXPORT_API int connection_get_ethernet_state(connection_h connection, connection_ethernet_state_e *state)
{
CHECK_FEATURE_SUPPORTED(ETHERNET_FEATURE);
}
//LCOV_EXCL_STOP
-EXPORT_API int connection_get_bt_state(connection_h connection, connection_bt_state_e* state)
+EXPORT_API int connection_get_bt_state(connection_h connection, connection_bt_state_e *state)
{
CHECK_FEATURE_SUPPORTED(TETHERING_BLUETOOTH_FEATURE);
return CONNECTION_ERROR_INVALID_PARAMETER;
}
- if(id < 0 || id > 1) {
+ if (id < 0 || id > 1) {
CONNECTION_LOG(CONNECTION_ERROR, "Wrong Parameter Passed"); //LCOV_EXCL_LINE
return CONNECTION_ERROR_INVALID_PARAMETER; //LCOV_EXCL_LINE
}
return CONNECTION_ERROR_NONE;
}
-EXPORT_API int connection_profile_get_type(connection_profile_h profile, connection_profile_type_e* type)
+EXPORT_API int connection_profile_get_type(connection_profile_h profile, connection_profile_type_e *type)
{
CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE, TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
}
EXPORT_API int connection_profile_get_ip_config_type(connection_profile_h profile,
- connection_address_family_e address_family, connection_ip_config_type_e* type)
+ connection_address_family_e address_family, connection_ip_config_type_e *type)
{
net_ip_config_type_t profile_type;
return CONNECTION_ERROR_NONE;
}
-EXPORT_API int connection_profile_get_proxy_type(connection_profile_h profile, connection_proxy_type_e* type)
+EXPORT_API int connection_profile_get_proxy_type(connection_profile_h profile, connection_proxy_type_e *type)
{
CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE, WIFI_FEATURE, TETHERING_BLUETOOTH_FEATURE, ETHERNET_FEATURE);
return CONNECTION_ERROR_NONE;
}
-EXPORT_API int connection_profile_get_wifi_security_type(connection_profile_h profile, connection_wifi_security_type_e* type)
+EXPORT_API int connection_profile_get_wifi_security_type(connection_profile_h profile, connection_wifi_security_type_e *type)
{
CHECK_FEATURE_SUPPORTED(WIFI_FEATURE);
return CONNECTION_ERROR_NONE;
}
-EXPORT_API int connection_profile_get_wifi_encryption_type(connection_profile_h profile, connection_wifi_encryption_type_e* type)
+EXPORT_API int connection_profile_get_wifi_encryption_type(connection_profile_h profile, connection_wifi_encryption_type_e *type)
{
CHECK_FEATURE_SUPPORTED(WIFI_FEATURE);
}
EXPORT_API int connection_profile_get_cellular_auth_info(connection_profile_h profile,
- connection_cellular_auth_type_e* type, char** user_name, char** password)
+ connection_cellular_auth_type_e *type, char** user_name, char** password)
{
CHECK_FEATURE_SUPPORTED(TELEPHONY_FEATURE);
}
//LCOV_EXCL_START
-int _connection_libnet_get_ethernet_state(connection_ethernet_state_e* state)
+int _connection_libnet_get_ethernet_state(connection_ethernet_state_e *state)
{
int rv;
struct _profile_list_s ethernet_profiles = {0, 0, NULL};
}
//LCOV_EXCL_STOP
-int _connection_libnet_get_bluetooth_state(connection_bt_state_e* state)
+int _connection_libnet_get_bluetooth_state(connection_bt_state_e *state)
{
int i = 0;
int rv = 0;
}
//LCOV_EXCL_STOP
-done:
+done :
__libnet_clear_profile_list(&bluetooth_profiles);
return CONNECTION_ERROR_NONE;
}
//LCOV_EXCL_STOP
-done:
+done :
__libnet_clear_profile_list(&cellular_profiles);
prof_handle_list = g_slist_append(prof_handle_list, *profile);
static const char *test_print_wifi_state(connection_wifi_state_e state)
{
- switch(state) {
+ switch (state) {
case CONNECTION_WIFI_STATE_DEACTIVATED:
return "Deactivated";
case CONNECTION_WIFI_STATE_DISCONNECTED:
static const char *test_print_cellular_service_type(connection_cellular_service_type_e type)
{
- switch(type) {
+ switch (type) {
case CONNECTION_CELLULAR_SERVICE_TYPE_UNKNOWN:
return "Unknown";
case CONNECTION_CELLULAR_SERVICE_TYPE_INTERNET: