return CONNECTION_ERROR_INVALID_PARAMETER;
}
TODO:
- rv = net_delete_profile(profile_info->ProfileName);
+ rv = net_delete_profile(profile_info->profile_name);
if (rv != NET_ERR_NONE) {
CONNECTION_LOG(CONNECTION_ERROR, "net_delete_profile Failed = %d\n", rv);
return CONNECTION_ERROR_OPERATION_FAILED;
net_profile_info_t *profile_info = profile;
TODO:
- rv = net_modify_profile(profile_info->ProfileName, (net_profile_info_t*)profile);
+ rv = net_modify_profile(profile_info->profile_name, (net_profile_info_t *)profile);
if (rv != NET_ERR_NONE) {
CONNECTION_LOG(CONNECTION_ERROR, "net_modify_profile Failed = %d\n", rv);
return CONNECTION_ERROR_OPERATION_FAILED;
static void __profile_init_cellular_profile(net_profile_info_t *profile_info, const char *keyword)
{
profile_info->profile_type = NET_DEVICE_CELLULAR;
- profile_info->ProfileState = NET_STATE_TYPE_IDLE;
+ profile_info->profile_state = NET_STATE_TYPE_IDLE;
profile_info->ProfileInfo.Pdp.net_info.IpConfigType = NET_IP_CONFIG_TYPE_OFF;
profile_info->ProfileInfo.Pdp.net_info.ProxyMethod = NET_PROXY_TYPE_DIRECT;
g_strlcpy(profile_info->ProfileInfo.Pdp.Keyword, keyword, NET_PDP_APN_LEN_MAX);
static void __profile_init_wifi_profile(net_profile_info_t *profile_info)
{
profile_info->profile_type = NET_DEVICE_WIFI;
- profile_info->ProfileState = NET_STATE_TYPE_IDLE;
+ profile_info->profile_state = NET_STATE_TYPE_IDLE;
profile_info->ProfileInfo.Wlan.net_info.IpConfigType = NET_IP_CONFIG_TYPE_OFF;
profile_info->ProfileInfo.Wlan.net_info.ProxyMethod = NET_PROXY_TYPE_DIRECT;
profile_info->ProfileInfo.Wlan.wlan_mode = NETPM_WLAN_CONNMODE_AUTO;
/*
net_profile_info_t *profile_info = profile;
- char *prof_id = strrchr(profile_info->ProfileName, '/');
+ char *prof_id = strrchr(profile_info->profile_name, '/');
if (prof_id == NULL)
return CONNECTION_ERROR_INVALID_PARAMETER;
*profile_name = g_strdup(profile_info->ProfileInfo.Ethernet.net_info.DevName);
break;
case NET_DEVICE_BLUETOOTH: {
- char *bt_name = strrchr(profile_info->ProfileName, '/');
+ char *bt_name = strrchr(profile_info->profile_name, '/');
if (bt_name == NULL)
return CONNECTION_ERROR_INVALID_PARAMETER;
net_profile_info_t *profile_info = profile;
TODO:
- if (net_get_profile_info(profile_info->ProfileName, &profile_info_local) != NET_ERR_NONE) {
+ if (net_get_profile_info(profile_info->profile_name, &profile_info_local) != NET_ERR_NONE) {
CONNECTION_LOG(CONNECTION_ERROR, "Error!!! net_get_profile_info() failed\n");
return CONNECTION_ERROR_OPERATION_FAILED;
}
/*
net_profile_info_t *profile_info = profile;
- *state = _profile_convert_to_cp_state(profile_info->ProfileState);
+ *state = _profile_convert_to_cp_state(profile_info->profile_state);
if (*state < 0)
return CONNECTION_ERROR_OPERATION_FAILED;
*/
if (profile_info->profile_type != NET_DEVICE_WIFI)
return CONNECTION_ERROR_INVALID_PARAMETER;
- if (profile_info->Favourite) {
+ if (profile_info->favourite) {
*required = false;
return CONNECTION_ERROR_NONE;
}
/** Device Type of the profile */
net_device_t profile_type;
/** Profile name */
- char ProfileName[NET_PROFILE_NAME_LEN_MAX+1];
+ char profile_name[NET_PROFILE_NAME_LEN_MAX+1];
/** Service state */
- net_state_type_t ProfileState;
+ net_state_type_t profile_state;
/** Favourite flag */
- char Favourite;
+ char favourite;
} net_profile_info_t;
#ifdef __cplusplus
*/
typedef struct {
/** Profile name */
- char ProfileName[NET_PROFILE_NAME_LEN_MAX+1];
+ char profile_name[NET_PROFILE_NAME_LEN_MAX+1];
} net_profile_name_t;
int i = 0;
for (;i < profile_list->count;i++) {
- if (profile_list->profiles[i].ProfileState == NET_STATE_TYPE_ONLINE ||
- profile_list->profiles[i].ProfileState == NET_STATE_TYPE_READY)
+ if (profile_list->profiles[i].profile_state == NET_STATE_TYPE_ONLINE ||
+ profile_list->profiles[i].profile_state == NET_STATE_TYPE_READY)
count++;
}
int i = 0;
for (;i < source->count;i++) {
- if (source->profiles[i].ProfileState == NET_STATE_TYPE_ONLINE ||
- source->profiles[i].ProfileState == NET_STATE_TYPE_READY) {
+ if (source->profiles[i].profile_state == NET_STATE_TYPE_ONLINE ||
+ source->profiles[i].profile_state == NET_STATE_TYPE_READY) {
memcpy(*dest, &source->profiles[i], sizeof(net_profile_info_t));
(*dest)++;
}
if (profile == NULL)
return false;
- cb_info = g_hash_table_lookup(profile_cb_table, profile_info->ProfileName);
+ cb_info = g_hash_table_lookup(profile_cb_table, profile_info->profile_name);
if (cb_info != NULL)
return true;
/*
net_profile_info_t *profile_info = profile;
TODO:
- if (net_open_connection_with_profile(profile_info->ProfileName) != NET_ERR_NONE)
+ if (net_open_connection_with_profile(profile_info->profile_name) != NET_ERR_NONE)
return CONNECTION_ERROR_OPERATION_FAILED;
*/
if (service_type != type)
return CONNECTION_ERROR_INVALID_PARAMETER;
TODO:
- if (net_set_default_cellular_service_profile(profile_info->ProfileName) != NET_ERR_NONE)
+ if (net_set_default_cellular_service_profile(profile_info->profile_name) != NET_ERR_NONE)
return CONNECTION_ERROR_OPERATION_FAILED;
*/
if (service_type != type)
return CONNECTION_ERROR_INVALID_PARAMETER;
TODO:
- if (net_set_default_cellular_service_profile_async(profile_info->ProfileName) != NET_ERR_NONE)
+ if (net_set_default_cellular_service_profile_async(profile_info->profile_name) != NET_ERR_NONE)
return CONNECTION_ERROR_OPERATION_FAILED;
*/
/*
net_profile_info_t *profile_info = profile;
TODO:
- if (net_close_connection(profile_info->ProfileName) != NET_ERR_NONE)
+ if (net_close_connection(profile_info->profile_name) != NET_ERR_NONE)
return CONNECTION_ERROR_OPERATION_FAILED;
*/
connection_profile_state_changed_cb callback, void *user_data)
{
net_profile_info_t *profile_info = profile;
- char *profile_name = g_strdup(profile_info->ProfileName);
+ char *profile_name = g_strdup(profile_info->profile_name);
struct _profile_cb_s *profile_cb_info = g_try_malloc0(sizeof(struct _profile_cb_s));
if (profile_cb_info == NULL) {
void _connection_libnet_remove_from_profile_cb_list(connection_profile_h profile)
{
net_profile_info_t *profile_info = profile;
- g_hash_table_remove(profile_cb_table, profile_info->ProfileName);
+ g_hash_table_remove(profile_cb_table, profile_info->profile_name);
}
int _connection_libnet_set_statistics(net_device_t device_type, net_statistics_type_e statistics_type)