projects
/
apps
/
native
/
ug-mobile-ap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove unused type (TETHERING_TYPE_RESERVED)
[apps/native/ug-mobile-ap.git]
/
src
/
mh_main_ug.c
diff --git
a/src/mh_main_ug.c
b/src/mh_main_ug.c
index
02f0206
..
bc48a7e
100755
(executable)
--- a/
src/mh_main_ug.c
+++ b/
src/mh_main_ug.c
@@
-56,11
+56,6
@@
static void __set_callbacks(tethering_h handle, void *user_data)
if (ret != TETHERING_ERROR_NONE)
ERR("tethering_set_enabled_cb [0x%X]\n", ret);
if (ret != TETHERING_ERROR_NONE)
ERR("tethering_set_enabled_cb [0x%X]\n", ret);
- ret = tethering_set_enabled_cb(handle, TETHERING_TYPE_RESERVED,
- _enabled_cb, user_data);
- if (ret != TETHERING_ERROR_NONE)
- ERR("tethering_set_enabled_cb [0x%X]\n", ret);
-
ret = tethering_wifi_set_passphrase_changed_cb(handle,
_passphrase_changed_cb, user_data);
if (ret != TETHERING_ERROR_NONE)
ret = tethering_wifi_set_passphrase_changed_cb(handle,
_passphrase_changed_cb, user_data);
if (ret != TETHERING_ERROR_NONE)
@@
-81,11
+76,6
@@
static void __set_callbacks(tethering_h handle, void *user_data)
if (ret != TETHERING_ERROR_NONE)
ERR("tethering_set_disabled_cb [0x%X]\n", ret);
if (ret != TETHERING_ERROR_NONE)
ERR("tethering_set_disabled_cb [0x%X]\n", ret);
- ret = tethering_set_disabled_cb(handle, TETHERING_TYPE_RESERVED,
- _disabled_cb, user_data);
- if (ret != TETHERING_ERROR_NONE)
- ERR("tethering_set_disabled_cb [0x%X]\n", ret);
-
ret = tethering_set_connection_state_changed_cb(handle,
TETHERING_TYPE_ALL,
_connection_changed_cb, user_data);
ret = tethering_set_connection_state_changed_cb(handle,
TETHERING_TYPE_ALL,
_connection_changed_cb, user_data);
@@
-125,10
+115,6
@@
static void __unset_callbacks(tethering_h handle)
if (ret != TETHERING_ERROR_NONE)
ERR("tethering_unset_connection_state_changed_cb[0x%X]\n", ret);
if (ret != TETHERING_ERROR_NONE)
ERR("tethering_unset_connection_state_changed_cb[0x%X]\n", ret);
- ret = tethering_unset_disabled_cb(handle, TETHERING_TYPE_RESERVED);
- if (ret != TETHERING_ERROR_NONE)
- ERR("tethering_unset_disabled_cb [0x%X]\n", ret);
-
ret = tethering_unset_disabled_cb(handle, TETHERING_TYPE_ALL);
if (ret != TETHERING_ERROR_NONE)
ERR("tethering_unset_disabled_cb [0x%X]\n", ret);
ret = tethering_unset_disabled_cb(handle, TETHERING_TYPE_ALL);
if (ret != TETHERING_ERROR_NONE)
ERR("tethering_unset_disabled_cb [0x%X]\n", ret);
@@
-145,10
+131,6
@@
static void __unset_callbacks(tethering_h handle)
if (ret != TETHERING_ERROR_NONE)
ERR("tethering_wifi_unset_passphrase_changed_cb [0x%X]\n", ret);
if (ret != TETHERING_ERROR_NONE)
ERR("tethering_wifi_unset_passphrase_changed_cb [0x%X]\n", ret);
- ret = tethering_unset_enabled_cb(handle, TETHERING_TYPE_RESERVED);
- if (ret != TETHERING_ERROR_NONE)
- ERR("tethering_unset_enabled [0x%X]\n", ret);
-
ret = tethering_unset_enabled_cb(handle, TETHERING_TYPE_ALL);
if (ret != TETHERING_ERROR_NONE)
ERR("tethering_unset_enabled [0x%X]\n", ret);
ret = tethering_unset_enabled_cb(handle, TETHERING_TYPE_ALL);
if (ret != TETHERING_ERROR_NONE)
ERR("tethering_unset_enabled [0x%X]\n", ret);
@@
-283,12
+265,6
@@
static void on_start(ui_gadget_h ug, app_control_h app_control, void *priv)
}
}
}
}
- if (tethering_is_enabled(NULL, TETHERING_TYPE_RESERVED) == true) {
- DBG("MobileAP is turned on\n");
- _prepare_popup(MH_POPUP_WIFI_AP_OFF, STR_WIFI_AP_CONTROLLED_ANOTHER_APP);
- _create_popup(ad);
- }
-
app_control_get_extra_data(app_control, "viewtype", &viewtype);
if (viewtype != NULL) {
app_control_get_extra_data(app_control, "viewtype", &viewtype);
if (viewtype != NULL) {