diff --git a/libmobile_hilink.c b/libmobile_hilink.c index c7ed8b5999c867d5dfa29bf7e40b2f449b5153bd..3f07b0bf253bbd243571bd94d040ffc015ad17b8 100644 --- a/libmobile_hilink.c +++ b/libmobile_hilink.c @@ -606,7 +606,7 @@ fail_result: } -struct json_object *mobile_set_apn_profile_default_hilink(char *name, char *apn_name, char *username, char *password) +struct json_object *mobile_set_apn_profile_hilink(char *name, char *apn_name, char *username, char *password) { char *api_url = "http://192.168.8.1/api/dialup/profiles"; char post_query[1024]; @@ -635,7 +635,7 @@ fail_result: } -struct json_object *mobile_delete_apn_profile_hilink(int profile_name_location) +struct json_object *mobile_delete_apn_hilink(int profile_name_location) { char *api_url = "http://192.168.8.1/api/dialup/profiles"; char post_query[512]; @@ -889,13 +889,13 @@ fail_result: } -struct json_object *mobile_data_roaming_enable_hilink() +struct json_object *mobile_enable_roaming_hilink() { return data_roaming(ENABLE); } -struct json_object *mobile_data_roaming_disable_hilink() +struct json_object *mobile_disable_roaming_hilink() { return data_roaming(DISABLE); } @@ -930,19 +930,19 @@ fail_result: } -struct json_object *mobile_pin_enable_hilink(char *current_pin) +struct json_object *mobile_enable_pin_hilink(char *current_pin) { return pin_action("01", current_pin, "", ""); } -struct json_object *mobile_pin_disable_hilink(char *current_pin) +struct json_object *mobile_disable_pin_hilink(char *current_pin) { return pin_action("02", current_pin, "", ""); } -struct json_object *mobile_pin_set_hilink(char *current_pin, char *new_pin) +struct json_object *mobile_set_pin_hilink(char *current_pin, char *new_pin) { return pin_action("03", current_pin, new_pin, ""); } diff --git a/libmobile_hilink.h b/libmobile_hilink.h index 13d882c1a70058a80babc0f4b2dd0a5eb3119254..b5c7a69e7ad527a159715c8491d4fa2f6885209b 100644 --- a/libmobile_hilink.h +++ b/libmobile_hilink.h @@ -67,9 +67,9 @@ struct json_object *mobile_get_sms_count_hilink(); struct json_object *mobile_get_language_hilink(); struct json_object *mobile_create_apn_profile_hilink(char *name, char *apn_name, char *username, char *password); -struct json_object *mobile_set_apn_profile_default_hilink(char *name, char *apn_name, char *username, char *password); +struct json_object *mobile_set_apn_profile_hilink(char *name, char *apn_name, char *username, char *password); -struct json_object *mobile_delete_apn_profile_hilink(int profile_name_location); +struct json_object *mobile_delete_apn_hilink(int profile_name_location); struct json_object *mobile_sms_read_hilink(int sms_location); @@ -87,16 +87,16 @@ struct json_object *mobile_LTE_disable_hilink(); /* 00 - default- 4g, 01 - 2g, 02 - 3g */ struct json_object *mobile_set_connection_type_hilink(int connection_type); -struct json_object *mobile_data_roaming_enable_hilink(); +struct json_object *mobile_enable_roaming_hilink(); -struct json_object *mobile_data_roaming_disable_hilink(); +struct json_object *mobile_disable_roaming_hilink(); /* 00 -> enter pin, 01 -> activate pin, 02 ->disable pin, 03 -> change pin, 04 -> enter puk */ -struct json_object *mobile_pin_enable_hilink(char *current_pin); +struct json_object *mobile_enable_pin_hilink(char *current_pin); -struct json_object *mobile_pin_disable_hilink(char *current_pin); +struct json_object *mobile_disable_pin_hilink(char *current_pin); -struct json_object *mobile_pin_set_hilink(char *current_pin, char *new_pin); +struct json_object *mobile_set_pin_hilink(char *current_pin, char *new_pin); struct json_object *mobile_set_language_hilink(char *language_name);