Rename extension header 17/164217/1
authorSeonah Moon <seonah1.moon@samsung.com>
Mon, 18 Dec 2017 05:45:44 +0000 (14:45 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Mon, 18 Dec 2017 06:10:40 +0000 (15:10 +0900)
CMakeLists.txt doesn't install wifi_*.h file - such as wifi_interna.h
and wifi_manager_extension.h - to the devel package.
However wifi_manager_extension.h has to be installed to the devel
package. Thus, rename wifi_manager_extension.h to wifi-manager-extension.h

Change-Id: I9aa62b4fbbd0198dd4eddf48473b7defad7d1912
Signed-off-by: Seonah Moon <seonah1.moon@samsung.com>
include/network_internal.h
include/wifi-manager-extension.h [new file with mode: 0755]
include/wifi_internal.h
include/wifi_manager_extension.h [deleted file]
packaging/capi-network-wifi-manager.spec
src/wifi_manager.c
test/wifi_manager_test.c

index 1547210408a7ce6b4a10a9f5ef58403c059b109c..43a607ae99742569404c50b79ff944ac223d1fe3 100755 (executable)
@@ -24,7 +24,6 @@
 #include <glib-object.h>
 
 #include "network_interface.h"
-#include "wifi_manager_extension.h"
 
 #ifdef __cplusplus
 extern "C" {
diff --git a/include/wifi-manager-extension.h b/include/wifi-manager-extension.h
new file mode 100755 (executable)
index 0000000..7674a13
--- /dev/null
@@ -0,0 +1,305 @@
+/*
+ * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef __TIZEN_WIFI_MANAGER_EXTENSION_H__
+#define __TIZEN_WIFI_MANAGER_EXTENSION_H__
+
+#include "wifi-manager.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * @file wifi-manager-extension.h
+ */
+
+
+/**
+ * @brief Enumeration for the Wi-Fi autoscan mode.
+ * @since_tizen 4.0
+ */
+typedef enum {
+       /**
+        * Auto scan interval is increased exponentially like 4, 8, 16, ...128secs
+        */
+       WIFI_MANAGER_AUTOSCAN_MODE_EXPONENTIAL = 0x00,
+       /**
+        * Auto scan interval is fixed with 10secs(for mobile) / 15secs(for wearable)
+        */
+       WIFI_MANAGER_AUTOSCAN_MODE_PERIODIC
+} wifi_manager_autoscan_mode_e;
+
+/**
+* @}
+*/
+
+/**
+* @addtogroup CAPI_NETWORK_WIFI_MANAGER_MANAGEMENT_MODULE
+* @{
+*/
+
+/**
+ * @brief Enables or disables auto-scanning
+ * @details If auto-scanning is disabled, then background scan and wps scan don't work.
+ * By default, the auto-scanning is enabled automatically until disabling auto-scanning.
+ * Don't forget to enable again when you finish your works with disabled auto-scanning.
+ * @since_tizen 4.0
+ *
+ * @param[in] wifi           The Wi-Fi handle
+ * @param[in] autoscan       true to enable and false to disable
+ *
+ * @return 0 on success, otherwise negative error value
+ * @retval #WIFI_ERROR_NONE                  Successful
+ * @retval #WIFI_ERROR_INVALID_OPERATION     Invalid operation
+ * @retval #WIFI_ERROR_INVALID_PARAMETER     Invalid parameter
+ * @retval #WIFI_ERROR_OPERATION_FAILED      Operation failed
+ * @retval #WIFI_ERROR_PERMISSION_DENIED     Permission Denied
+ * @pre This API needs wifi_initialize() before use.
+ */
+int wifi_manager_set_autoscan(wifi_manager_h wifi, bool autoscan);
+
+/**
+ * @brief Gets the autoscan state.
+ * @since_tizen 4.0
+ *
+ * @param[in] wifi           The Wi-Fi handle
+ * @param[out] autoscan      The autoscan state(enable or disable)
+ *
+ * @return 0 on success, otherwise negative error value
+ * @retval #WIFI_MANAGER_ERROR_NONE                 Successful
+ * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER    Invalid parameter
+ * @retval #WIFI_MANAGER_ERROR_OPERATION_FAILED     Operation failed
+ * @retval #WIFI_MANAGER_ERROR_PERMISSION_DENIED    Permission Denied
+ * @retval #WIFI_MANAGER_ERROR_NOT_SUPPORTED        Not supported
+ */
+int wifi_manager_get_autoscan(wifi_manager_h wifi, bool *autoscan);
+
+/**
+ * @brief Sets the mode of autoscan.
+ * @since_tizen 4.0
+ *
+ * @param[in] wifi           The Wi-Fi handle
+ * @param[in] mode           The auto scan mode
+ *
+ * @return 0 on success, otherwise negative error value
+ * @retval #WIFI_ERROR_NONE                  Successful
+ * @retval #WIFI_ERROR_INVALID_PARAMETER     Invalid parameter
+ * @retval #WIFI_ERROR_INVALID_OPERATION     Invalid operation
+ * @retval #WIFI_ERROR_PERMISSION_DENIED     Permission Denied
+ * @pre This API needs wifi_initialize() before use.
+ */
+int wifi_manager_set_autoscan_mode(wifi_manager_h wifi,
+               wifi_manager_autoscan_mode_e mode);
+
+/**
+ * @brief Gets the autoscan mode.
+ * @since_tizen 4.0
+ *
+ * @param[in] wifi           The Wi-Fi handle
+ * @param[out] mode          The mode of autoscan
+ *
+ * @return 0 on success, otherwise negative error value
+ * @retval #WIFI_MANAGER_ERROR_NONE                 Successful
+ * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER    Invalid parameter
+ * @retval #WIFI_MANAGER_ERROR_OPERATION_FAILED     Operation failed
+ * @retval #WIFI_MANAGER_ERROR_PERMISSION_DENIED    Permission Denied
+ * @retval #WIFI_MANAGER_ERROR_NOT_SUPPORTED        Not supported
+ */
+int wifi_manager_get_autoscan_mode(wifi_manager_h wifi,
+               wifi_manager_autoscan_mode_e *mode);
+
+/**
+ * @brief Flush BSS
+ * @since_tizen 4.0
+ *
+ * @param[in] wifi           The Wi-Fi handle
+ *
+ * @return 0 on success, otherwise negative error value.
+ * @retval #WIFI_MANAGER_ERROR_NONE  Successful
+ * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER    Invalid parameter
+ * @retval #WIFI_MANAGER_ERROR_INVALID_OPERATION    Invalid operation
+ */
+int wifi_manager_flush_bss(wifi_manager_h wifi);
+
+/**
+ * @brief Sets auto connection mode(enable or disable) for all Wi-Fi profile.
+ * @since_tizen 4.0
+ *
+ * @param[in] wifi           The Wi-Fi handle
+ * @param[in] connect_mode   The mode of auto connection
+ *
+ * @return 0 on success, otherwise negative error value.
+ * @retval #WIFI_MANAGER_ERROR_NONE  Successful
+ * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER    Invalid parameter
+ * @retval #WIFI_MANAGER_ERROR_INVALID_OPERATION    Invalid operation
+ */
+int wifi_manager_set_auto_connect(wifi_manager_h wifi, int connect_mode);
+
+/**
+ * @brief Gets auto connection mode(enable or disable) for all Wi-Fi profile.
+ * @since_tizen 4.0
+ *
+ * @param[in] wifi           The Wi-Fi handle
+ * @param[out] connect_mode  The mode of auto connection
+ *
+ * @return 0 on success, otherwise negative error value.
+ * @retval #WIFI_MANAGER_ERROR_NONE  Successful
+ * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER    Invalid parameter
+ * @retval #WIFI_MANAGER_ERROR_INVALID_OPERATION    Invalid operation
+ */
+int wifi_manager_get_auto_connect(wifi_manager_h wifi, int *connect_mode);
+
+/**
+ * @brief Sets enables or disables auto-connection of the AP.
+ * @details If an AP is connected, then connection information will be stored.
+ * By default, the stored AP can be connected automatically when it found, until disabling auto-connection.
+ * @since_tizen 5.0
+ *
+ * @param[in] ap             The access point handle
+ * @param[in] autoconnect    true when enabled and false when disabled
+ *
+ * @return 0 on success, otherwise negative error value
+ * @retval #WIFI_MANAGER_ERROR_NONE                 Successful
+ * @retval #WIFI_MANAGER_ERROR_INVALID_OPERATION    Invalid operation
+ * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER    Invalid parameter
+ * @retval #WIFI_MANAGER_ERROR_OPERATION_FAILED     Operation failed
+ * @retval #WIFI_MANAGER_ERROR_PERMISSION_DENIED    Permission Denied
+ * @pre This API needs wifi_manager_initialize() and wifi_manager_activate() before use.
+ */
+int wifi_manager_ap_set_auto_connect(wifi_manager_ap_h ap, bool autoconnect);
+
+/**
+ * @brief Gets enables or disables auto-connection of the AP.
+ * @details If an AP is connected, then connection information will be stored.
+ * By default, the stored AP can be connected automatically when it found, until disabling auto-connection.
+ * @since_tizen 5.0
+ *
+ * @param[in] ap             The access point handle
+ * @param[out] autoconnect   true when enabled and false when disabled
+ *
+ * @return 0 on success, otherwise negative error value
+ * @retval #WIFI_MANAGER_ERROR_NONE                 Successful
+ * @retval #WIFI_MANAGER_ERROR_INVALID_OPERATION    Invalid operation
+ * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER    Invalid parameter
+ * @retval #WIFI_MANAGER_ERROR_OPERATION_FAILED     Operation failed
+ * @retval #WIFI_MANAGER_ERROR_PERMISSION_DENIED    Permission Denied
+ * @pre This API needs wifi_manager_initialize() and wifi_manager_activate() before use.
+ */
+int wifi_manager_ap_get_auto_connect(wifi_manager_ap_h ap, bool *autoconnect);
+
+
+/**
+ * @brief Changes the IP conflict detection period in seconds.
+ * @since_tizen 5.0
+ *
+ * @param[in] wifi           The Wi-Fi handle
+ * @param[in] initial_time   The period time in seconds of the ARP detect ping
+ *
+ * @return @c 0 on success, otherwise negative error value
+ * @retval #WIFI_MANAGER_ERROR_NONE                 Successful
+ * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER    Invalid parameter
+ * @retval #WIFI_MANAGER_ERROR_INVALID_OPERATION    Invalid operation
+ * @retval #WIFI_MANAGER_ERROR_PERMISSION_DENIED    Permission denied
+ * @retval #WIFI_MANAGER_ERROR_NOT_SUPPORTED        Not supported
+ */
+int wifi_manager_set_ip_conflict_period(wifi_manager_h wifi, unsigned int initial_time);
+
+/**
+ * @brief Gets the IP conflict detection period in seconds.
+ * @since_tizen 5.0
+ *
+ * @param[in] wifi            The Wi-Fi handle
+ * @param[out] initial_time   The period time in seconds of the ARP detect ping
+ *
+ * @return 0 on success, otherwise negative error value
+ * @retval #WIFI_MANAGER_ERROR_NONE                 Successful
+ * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER    Invalid parameter
+ * @retval #WIFI_MANAGER_ERROR_OPERATION_FAILED     Operation failed
+ * @retval #WIFI_MANAGER_ERROR_NOT_SUPPORTED        Not supported
+ */
+int wifi_manager_get_ip_conflict_period(wifi_manager_h wifi, unsigned int *initial_time);
+
+/**
+ * @brief Called when the Netlink scan is finished.
+ * @since_tizen 5.0
+ * @param[in] error_code    The error code
+ * @param[in] user_data     The user data passed from the callback registration function
+ * @see wifi_manager_netlink_scan()
+ */
+typedef void(*wifi_manager_netlink_scan_finished_cb)(wifi_manager_error_e error_code, void *user_data);
+
+/**
+ * @brief Gets the result of the netlink scan (i.e.BSSID, ESSID, Frequency, RSSI, VSIE).
+ * @details If tethering is enabled in device then wlan interface is available but
+ * wifi module is in deactivated state and wpa-supplicant service is not active. So
+ * in this case to search available APs wifi_manager_netlink_scan() API will be used.
+ * @since_tizen 5.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/network.get
+ * @param[in] wifi            The Wi-Fi handle
+ * @param[in] callback        The callback to be called
+ * @param[in] user_data       The user data passed to the callback function
+ * @return 0 on success, otherwise negative error value
+ * @retval #WIFI_MANAGER_ERROR_NONE                 Successful
+ * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER    Invalid parameter
+ * @retval #WIFI_MANAGER_ERROR_OPERATION_FAILED     Operation failed
+ * @retval #WIFI_MANAGER_ERROR_NOT_SUPPORTED        Not supported
+ * @post This function invokes wifi_manager_found_ap_cb().
+ * @see wifi_manager_netlink_scan()
+ */
+int wifi_manager_foreach_found_netlink_scan_ap(wifi_manager_h wifi,
+                               wifi_manager_found_ap_cb callback, void *user_data);
+
+/**
+ * @brief Starts netlink scan asynchronously.
+ * @details If tethering is enabled in device then wlan interface is available but
+ * wifi module is in deactivated state and wpa-supplicant service is not active. So
+ * in this case to search available APs use wifi_manager_netlink_scan() API.
+ * @since_tizen 5.0
+ * @privlevel public
+ * @privilege %http://tizen.org/privilege/network.set \n
+ *            %http://tizen.org/privilege/network.get
+ * @remarks This function needs both privileges.
+ * @param[in] wifi            The Wi-Fi handle
+ * @param[in] callback        The callback function to be called
+ * @param[in] user_data       The user data passed to the callback function
+ * @return 0 on success, otherwise negative error value
+ * @retval #WIFI_MANAGER_ERROR_NONE                 Successful
+ * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER    Invalid parameter
+ * @retval #WIFI_MANAGER_ERROR_INVALID_OPERATION    Invalid operation
+ * @retval #WIFI_MANAGER_ERROR_OPERATION_FAILED     Operation failed
+ * @retval #WIFI_MANAGER_ERROR_PERMISSION_DENIED    Permission Denied
+ * @retval #WIFI_MANAGER_ERROR_NOT_SUPPORTED        Not supported
+ * @post This function invokes wifi_manager_netlink_scan_finished_cb().
+ */
+int wifi_manager_netlink_scan(wifi_manager_h wifi,
+               wifi_manager_netlink_scan_finished_cb callback, void *user_data);
+
+/**
+* @}
+*/
+
+
+/**
+ * @}
+ */
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* __TIZEN_WIFI_MANAGER_EXTENSION_H__ */
index a8766eb83d2744baf3a233198aecd1284e33c298..c2ebb3f922834a9a601dea5096cda402203faba8 100755 (executable)
@@ -23,8 +23,8 @@
 #include <system_info.h>
 
 #include "wifi-manager.h"
+#include "wifi-manager-extension.h"
 #include "network_interface.h"
-#include "wifi_manager_extension.h"
 
 #ifdef __cplusplus
 extern "C" {
diff --git a/include/wifi_manager_extension.h b/include/wifi_manager_extension.h
deleted file mode 100755 (executable)
index 79390df..0000000
+++ /dev/null
@@ -1,305 +0,0 @@
-/*
- * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#ifndef __TIZEN_WIFI_MANAGER_EXTENSION_H__
-#define __TIZEN_WIFI_MANAGER_EXTENSION_H__
-
-#include "wifi-manager.h"
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- * @file wifi_manager_extension.h
- */
-
-
-/**
- * @brief Enumeration for the Wi-Fi autoscan mode.
- * @since_tizen 4.0
- */
-typedef enum {
-       /**
-        * Auto scan interval is increased exponentially like 4, 8, 16, ...128secs
-        */
-       WIFI_MANAGER_AUTOSCAN_MODE_EXPONENTIAL = 0x00,
-       /**
-        * Auto scan interval is fixed with 10secs(for mobile) / 15secs(for wearable)
-        */
-       WIFI_MANAGER_AUTOSCAN_MODE_PERIODIC
-} wifi_manager_autoscan_mode_e;
-
-/**
-* @}
-*/
-
-/**
-* @addtogroup CAPI_NETWORK_WIFI_MANAGER_MANAGEMENT_MODULE
-* @{
-*/
-
-/**
- * @brief Enables or disables auto-scanning
- * @details If auto-scanning is disabled, then background scan and wps scan don't work.
- * By default, the auto-scanning is enabled automatically until disabling auto-scanning.
- * Don't forget to enable again when you finish your works with disabled auto-scanning.
- * @since_tizen 4.0
- *
- * @param[in] wifi           The Wi-Fi handle
- * @param[in] autoscan       true to enable and false to disable
- *
- * @return 0 on success, otherwise negative error value
- * @retval #WIFI_ERROR_NONE                  Successful
- * @retval #WIFI_ERROR_INVALID_OPERATION     Invalid operation
- * @retval #WIFI_ERROR_INVALID_PARAMETER     Invalid parameter
- * @retval #WIFI_ERROR_OPERATION_FAILED      Operation failed
- * @retval #WIFI_ERROR_PERMISSION_DENIED     Permission Denied
- * @pre This API needs wifi_initialize() before use.
- */
-int wifi_manager_set_autoscan(wifi_manager_h wifi, bool autoscan);
-
-/**
- * @brief Gets the autoscan state.
- * @since_tizen 4.0
- *
- * @param[in] wifi           The Wi-Fi handle
- * @param[out] autoscan      The autoscan state(enable or disable)
- *
- * @return 0 on success, otherwise negative error value
- * @retval #WIFI_MANAGER_ERROR_NONE                 Successful
- * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER    Invalid parameter
- * @retval #WIFI_MANAGER_ERROR_OPERATION_FAILED     Operation failed
- * @retval #WIFI_MANAGER_ERROR_PERMISSION_DENIED    Permission Denied
- * @retval #WIFI_MANAGER_ERROR_NOT_SUPPORTED        Not supported
- */
-int wifi_manager_get_autoscan(wifi_manager_h wifi, bool *autoscan);
-
-/**
- * @brief Sets the mode of autoscan.
- * @since_tizen 4.0
- *
- * @param[in] wifi           The Wi-Fi handle
- * @param[in] mode           The auto scan mode
- *
- * @return 0 on success, otherwise negative error value
- * @retval #WIFI_ERROR_NONE                  Successful
- * @retval #WIFI_ERROR_INVALID_PARAMETER     Invalid parameter
- * @retval #WIFI_ERROR_INVALID_OPERATION     Invalid operation
- * @retval #WIFI_ERROR_PERMISSION_DENIED     Permission Denied
- * @pre This API needs wifi_initialize() before use.
- */
-int wifi_manager_set_autoscan_mode(wifi_manager_h wifi,
-               wifi_manager_autoscan_mode_e mode);
-
-/**
- * @brief Gets the autoscan mode.
- * @since_tizen 4.0
- *
- * @param[in] wifi           The Wi-Fi handle
- * @param[out] mode          The mode of autoscan
- *
- * @return 0 on success, otherwise negative error value
- * @retval #WIFI_MANAGER_ERROR_NONE                 Successful
- * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER    Invalid parameter
- * @retval #WIFI_MANAGER_ERROR_OPERATION_FAILED     Operation failed
- * @retval #WIFI_MANAGER_ERROR_PERMISSION_DENIED    Permission Denied
- * @retval #WIFI_MANAGER_ERROR_NOT_SUPPORTED        Not supported
- */
-int wifi_manager_get_autoscan_mode(wifi_manager_h wifi,
-               wifi_manager_autoscan_mode_e *mode);
-
-/**
- * @brief Flush BSS
- * @since_tizen 4.0
- *
- * @param[in] wifi           The Wi-Fi handle
- *
- * @return 0 on success, otherwise negative error value.
- * @retval #WIFI_MANAGER_ERROR_NONE  Successful
- * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER    Invalid parameter
- * @retval #WIFI_MANAGER_ERROR_INVALID_OPERATION    Invalid operation
- */
-int wifi_manager_flush_bss(wifi_manager_h wifi);
-
-/**
- * @brief Sets auto connection mode(enable or disable) for all Wi-Fi profile.
- * @since_tizen 4.0
- *
- * @param[in] wifi           The Wi-Fi handle
- * @param[in] connect_mode   The mode of auto connection
- *
- * @return 0 on success, otherwise negative error value.
- * @retval #WIFI_MANAGER_ERROR_NONE  Successful
- * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER    Invalid parameter
- * @retval #WIFI_MANAGER_ERROR_INVALID_OPERATION    Invalid operation
- */
-int wifi_manager_set_auto_connect(wifi_manager_h wifi, int connect_mode);
-
-/**
- * @brief Gets auto connection mode(enable or disable) for all Wi-Fi profile.
- * @since_tizen 4.0
- *
- * @param[in] wifi           The Wi-Fi handle
- * @param[out] connect_mode  The mode of auto connection
- *
- * @return 0 on success, otherwise negative error value.
- * @retval #WIFI_MANAGER_ERROR_NONE  Successful
- * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER    Invalid parameter
- * @retval #WIFI_MANAGER_ERROR_INVALID_OPERATION    Invalid operation
- */
-int wifi_manager_get_auto_connect(wifi_manager_h wifi, int *connect_mode);
-
-/**
- * @brief Sets enables or disables auto-connection of the AP.
- * @details If an AP is connected, then connection information will be stored.
- * By default, the stored AP can be connected automatically when it found, until disabling auto-connection.
- * @since_tizen 5.0
- *
- * @param[in] ap             The access point handle
- * @param[in] autoconnect    true when enabled and false when disabled
- *
- * @return 0 on success, otherwise negative error value
- * @retval #WIFI_MANAGER_ERROR_NONE                 Successful
- * @retval #WIFI_MANAGER_ERROR_INVALID_OPERATION    Invalid operation
- * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER    Invalid parameter
- * @retval #WIFI_MANAGER_ERROR_OPERATION_FAILED     Operation failed
- * @retval #WIFI_MANAGER_ERROR_PERMISSION_DENIED    Permission Denied
- * @pre This API needs wifi_manager_initialize() and wifi_manager_activate() before use.
- */
-int wifi_manager_ap_set_auto_connect(wifi_manager_ap_h ap, bool autoconnect);
-
-/**
- * @brief Gets enables or disables auto-connection of the AP.
- * @details If an AP is connected, then connection information will be stored.
- * By default, the stored AP can be connected automatically when it found, until disabling auto-connection.
- * @since_tizen 5.0
- *
- * @param[in] ap             The access point handle
- * @param[out] autoconnect   true when enabled and false when disabled
- *
- * @return 0 on success, otherwise negative error value
- * @retval #WIFI_MANAGER_ERROR_NONE                 Successful
- * @retval #WIFI_MANAGER_ERROR_INVALID_OPERATION    Invalid operation
- * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER    Invalid parameter
- * @retval #WIFI_MANAGER_ERROR_OPERATION_FAILED     Operation failed
- * @retval #WIFI_MANAGER_ERROR_PERMISSION_DENIED    Permission Denied
- * @pre This API needs wifi_manager_initialize() and wifi_manager_activate() before use.
- */
-int wifi_manager_ap_get_auto_connect(wifi_manager_ap_h ap, bool *autoconnect);
-
-
-/**
- * @brief Changes the IP conflict detection period in seconds.
- * @since_tizen 5.0
- *
- * @param[in] wifi           The Wi-Fi handle
- * @param[in] initial_time   The period time in seconds of the ARP detect ping
- *
- * @return @c 0 on success, otherwise negative error value
- * @retval #WIFI_MANAGER_ERROR_NONE                 Successful
- * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER    Invalid parameter
- * @retval #WIFI_MANAGER_ERROR_INVALID_OPERATION    Invalid operation
- * @retval #WIFI_MANAGER_ERROR_PERMISSION_DENIED    Permission denied
- * @retval #WIFI_MANAGER_ERROR_NOT_SUPPORTED        Not supported
- */
-int wifi_manager_set_ip_conflict_period(wifi_manager_h wifi, unsigned int initial_time);
-
-/**
- * @brief Gets the IP conflict detection period in seconds.
- * @since_tizen 5.0
- *
- * @param[in] wifi            The Wi-Fi handle
- * @param[out] initial_time   The period time in seconds of the ARP detect ping
- *
- * @return 0 on success, otherwise negative error value
- * @retval #WIFI_MANAGER_ERROR_NONE                 Successful
- * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER    Invalid parameter
- * @retval #WIFI_MANAGER_ERROR_OPERATION_FAILED     Operation failed
- * @retval #WIFI_MANAGER_ERROR_NOT_SUPPORTED        Not supported
- */
-int wifi_manager_get_ip_conflict_period(wifi_manager_h wifi, unsigned int *initial_time);
-
-/**
- * @brief Called when the Netlink scan is finished.
- * @since_tizen 5.0
- * @param[in] error_code    The error code
- * @param[in] user_data     The user data passed from the callback registration function
- * @see wifi_manager_netlink_scan()
- */
-typedef void(*wifi_manager_netlink_scan_finished_cb)(wifi_manager_error_e error_code, void *user_data);
-
-/**
- * @brief Gets the result of the netlink scan (i.e.BSSID, ESSID, Frequency, RSSI, VSIE).
- * @details If tethering is enabled in device then wlan interface is available but
- * wifi module is in deactivated state and wpa-supplicant service is not active. So
- * in this case to search available APs wifi_manager_netlink_scan() API will be used.
- * @since_tizen 5.0
- * @privlevel public
- * @privilege %http://tizen.org/privilege/network.get
- * @param[in] wifi            The Wi-Fi handle
- * @param[in] callback        The callback to be called
- * @param[in] user_data       The user data passed to the callback function
- * @return 0 on success, otherwise negative error value
- * @retval #WIFI_MANAGER_ERROR_NONE                 Successful
- * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER    Invalid parameter
- * @retval #WIFI_MANAGER_ERROR_OPERATION_FAILED     Operation failed
- * @retval #WIFI_MANAGER_ERROR_NOT_SUPPORTED        Not supported
- * @post This function invokes wifi_manager_found_ap_cb().
- * @see wifi_manager_netlink_scan()
- */
-int wifi_manager_foreach_found_netlink_scan_ap(wifi_manager_h wifi,
-                               wifi_manager_found_ap_cb callback, void *user_data);
-
-/**
- * @brief Starts netlink scan asynchronously.
- * @details If tethering is enabled in device then wlan interface is available but
- * wifi module is in deactivated state and wpa-supplicant service is not active. So
- * in this case to search available APs use wifi_manager_netlink_scan() API.
- * @since_tizen 5.0
- * @privlevel public
- * @privilege %http://tizen.org/privilege/network.set \n
- *            %http://tizen.org/privilege/network.get
- * @remarks This function needs both privileges.
- * @param[in] wifi            The Wi-Fi handle
- * @param[in] callback        The callback function to be called
- * @param[in] user_data       The user data passed to the callback function
- * @return 0 on success, otherwise negative error value
- * @retval #WIFI_MANAGER_ERROR_NONE                 Successful
- * @retval #WIFI_MANAGER_ERROR_INVALID_PARAMETER    Invalid parameter
- * @retval #WIFI_MANAGER_ERROR_INVALID_OPERATION    Invalid operation
- * @retval #WIFI_MANAGER_ERROR_OPERATION_FAILED     Operation failed
- * @retval #WIFI_MANAGER_ERROR_PERMISSION_DENIED    Permission Denied
- * @retval #WIFI_MANAGER_ERROR_NOT_SUPPORTED        Not supported
- * @post This function invokes wifi_manager_netlink_scan_finished_cb().
- */
-int wifi_manager_netlink_scan(wifi_manager_h wifi,
-               wifi_manager_netlink_scan_finished_cb callback, void *user_data);
-
-/**
-* @}
-*/
-
-
-/**
- * @}
- */
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* __TIZEN_WIFI_MANAGER_EXTENSION_H__ */
index 41d7633520dcccf210b1273751868a01ea3216ad..eaef6cdd60b0e0d7f47303d6d689729a847f3381 100755 (executable)
@@ -1,6 +1,6 @@
 Name:          capi-network-wifi-manager
 Summary:       Network Wi-Fi library in TIZEN C API
-Version:       1.0.22
+Version:       1.0.23
 Release:       1
 Group:         System/Network
 License:       Apache-2.0
index 7833d9a6a47366bf16e1f250f7eebbb21dbc253d..f3d5c447caf14925c9c21e394623a3d5504ccbef 100755 (executable)
@@ -24,7 +24,6 @@
 
 #include "network_internal.h"
 #include "wifi_internal.h"
-#include "wifi_manager_extension.h"
 
 #define WIFI_MAC_ADDR_LENGTH   17
 #define WIFI_MAC_ADDR_PATH             "/sys/class/net/wlan0/address"
index b1a7aacbb0274596d51da77e9e8faec012243cff..3b16407019c801d388919060a13eb711d18d51df 100755 (executable)
@@ -28,9 +28,9 @@
 #include <signal.h>
 #include <assert.h>
 #include <wifi-manager.h>
+#include <wifi-manager-extension.h>
 #include <tizen_error.h>
 
-#include "wifi_manager_extension.h"
 
 #define LOG_RED "\033[0;31m"
 #define LOG_GREEN "\033[0;32m"