Tethering: Power on Wi-Fi before enable Wi-Fi tethering
[apps/native/ug-mobile-ap.git] / include / mh_func_onoff.h
index 81bb5fb..5056845 100644 (file)
@@ -1,13 +1,13 @@
 /*
 * ug-mobile-ap
 *
-* Copyright 2012  Samsung Electronics Co., Ltd
+* Copyright 2012-2013  Samsung Electronics Co., Ltd
 
-* Licensed under the Flora License, Version 1.0 (the "License");
+* Licensed under the Flora License, Version 1.1 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 
-* http://www.tizenopensource.org/license
+* http://floralicense.org/license
 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
@@ -28,6 +28,7 @@ extern "C" {
 #include "mh_view_main.h"
 #include "mh_common_utility.h"
 
+int _get_vconf_usb_state(void);
 void _enabled_cb(tethering_error_e result, tethering_type_e type, bool is_requested, void *user_data);
 void _disabled_cb(tethering_error_e result, tethering_type_e type, tethering_disabled_cause_e cause, void *user_data);
 void _connection_changed_cb(tethering_client_h client, bool opened, void *user_data);
@@ -37,7 +38,7 @@ int _handle_wifi_onoff_change(mh_appdata_t *ad);
 int _handle_bt_onoff_change(mh_appdata_t *ad);
 int _handle_usb_onoff_change(mh_appdata_t *ad);
 int _turn_off_wifi(mh_appdata_t *ad);
-int _turn_on_wifi(void);
+int _turn_on_wifi(mh_appdata_t *ad);
 bool _is_wifi_direct_on(void);
 int _turn_off_wifi_direct(mh_appdata_t *ad);