gpointer handle;
gboolean rv = FALSE;
GHashTable *in_param;
- gchar *network_info_id;
+ const char *network_info_id;
gchar *section_key = NULL;
char szQuery[5000];
in_param = g_hash_table_new_full(g_str_hash, g_str_equal, NULL, g_free);
{ /* profile id */
- gchar *profile_id;
+ const char *profile_id;
gchar *item_key = NULL;
int max_profile_id = -1;
item_key = g_strdup_printf("connection:profile_id_%d", profile_index);
}
{ /* profile name */
- gchar *profile_name;
+ const char *profile_name;
gchar *item_key = NULL;
item_key = g_strdup_printf("connection:profile_name_%d", profile_index);
profile_name = iniparser_getstring(dic, item_key, NULL);
}
{ /* apn */
- gchar *apn;
+ const char *apn;
gchar *item_key = NULL;
item_key = g_strdup_printf("connection:apn_%d", profile_index);
apn = iniparser_getstring(dic, item_key, NULL);
}
{ /* auth type */
- gchar *auth_type;
+ const char *auth_type;
gchar *item_key = NULL;
item_key = g_strdup_printf("connection:auth_type_%d", profile_index);
auth_type = iniparser_getstring(dic, item_key, NULL);
}
{ /* auth id */
- gchar *auth_id;
+ const char *auth_id;
gchar *item_key = NULL;
item_key = g_strdup_printf("connection:auth_id_%d", profile_index);
auth_id = iniparser_getstring(dic, item_key, NULL);
}
{ /* auth pwd */
- gchar *auth_pwd;
+ const char *auth_pwd;
gchar *item_key = NULL;
item_key = g_strdup_printf("connection:auth_pwd_%d", profile_index);
auth_pwd = iniparser_getstring(dic, item_key, NULL);
}
{ /* pdp protocol */
- gchar *pdp_protocol;
+ const char *pdp_protocol;
gchar *item_key = NULL;
item_key = g_strdup_printf("connection:pdp_protocol_%d", profile_index);
pdp_protocol = iniparser_getstring(dic, item_key, NULL);
}
{ /* roam pdp protocol */
- gchar *roam_pdp_protocol;
+ const char *roam_pdp_protocol;
gchar *item_key = NULL;
item_key = g_strdup_printf("connection:roam_pdp_protocol_%d", profile_index);
roam_pdp_protocol = iniparser_getstring(dic, item_key, NULL);
}
{ /* proxy ip */
- gchar *proxy_ip_addr;
+ const char *proxy_ip_addr;
gchar *section_key = NULL;
section_key = g_strdup_printf("connection:proxy_ip_addr_%d", profile_index);
proxy_ip_addr = iniparser_getstring(dic, section_key, NULL);
}
{ /* home url */
- gchar *home_url;
+ const char *home_url;
gchar *section_key = NULL;
section_key = g_strdup_printf("connection:home_url_%d", profile_index);
home_url = iniparser_getstring(dic, section_key, NULL);
}
{ /* linger time */
- gchar *linger_time;
+ const char *linger_time;
gchar *section_key = NULL;
section_key = g_strdup_printf("connection:linger_time_%d", profile_index);
linger_time = iniparser_getstring(dic, section_key, NULL);
}
{ /* traffic class */
- gchar *traffic_class;
+ const char *traffic_class;
gchar *section_key = NULL;
section_key = g_strdup_printf("connection:traffic_class_%d", profile_index);
traffic_class = iniparser_getstring(dic, section_key, NULL);
}
{ /* is static ip address */
- gchar *is_static_ip_addr;
+ const char *is_static_ip_addr;
gchar *section_key = NULL;
section_key = g_strdup_printf("connection:is_static_ip_addr_%d", profile_index);
is_static_ip_addr = iniparser_getstring(dic, section_key, NULL);
}
{ /* ip address if static ip is true */
- gchar *ip_addr;
+ const char *ip_addr;
gchar *section_key = NULL;
section_key = g_strdup_printf("connection:ip_addr_%d", profile_index);
ip_addr = iniparser_getstring(dic, section_key, NULL);
}
{ /* is static dns address */
- gchar *is_static_dns_addr;
+ const char *is_static_dns_addr;
gchar *section_key = NULL;
section_key = g_strdup_printf("connection:is_static_dns_addr_%d", profile_index);
is_static_dns_addr = iniparser_getstring(dic, section_key, NULL);
}
{ /* dns address 1 */
- gchar *dns_addr1;
+ const char *dns_addr1;
gchar *section_key = NULL;
section_key = g_strdup_printf("connection:dns_addr1_%d", profile_index);
dns_addr1 = iniparser_getstring(dic, section_key, NULL);
}
{ /* dns address 2 */
- gchar *dns_addr2;
+ const char *dns_addr2;
gchar *section_key = NULL;
section_key = g_strdup_printf("connection:dns_addr2_%d", profile_index);
dns_addr2 = iniparser_getstring(dic, section_key, NULL);
}
{ /* network info id */
- gchar *network_info_id;
+ const char *network_info_id;
gchar *section_key = NULL;
section_key = g_strdup_printf("connection:network_info_id_%d", profile_index);
network_info_id = iniparser_getstring(dic, section_key, NULL);
}
{ /* service category id */
- gchar *svc_category_id;
+ const char *svc_category_id;
gchar *section_key = NULL;
section_key = g_strdup_printf("connection:svc_category_id_%d", profile_index);
svc_category_id = iniparser_getstring(dic, section_key, NULL);
}
{ /* hidden */
- gchar *hidden;
+ const char *hidden;
gchar *section_key = NULL;
section_key = g_strdup_printf("connection:hidden_%d", profile_index);
hidden = iniparser_getstring(dic, section_key, NULL);
}
{ /* editable */
- gchar *editable;
+ const char *editable;
gchar *section_key = NULL;
section_key = g_strdup_printf("connection:editable_%d", profile_index);
editable = iniparser_getstring(dic, section_key, NULL);
}
{ /* default internet connection */
- gchar *default_internet_con;
+ const char *default_internet_con;
gchar *section_key = NULL;
section_key = g_strdup_printf("connection:default_internet_con_%d", profile_index);
default_internet_con = iniparser_getstring(dic, section_key, NULL);
}
{ /* insert data into table */
- gchar *is_roaming_apn;
+ const char *is_roaming_apn;
gchar *section_key = NULL;
section_key = g_strdup_printf("connection:is_roaming_apn_%d", profile_index);
is_roaming_apn = iniparser_getstring(dic, section_key, NULL);