From 98d4a3a0aaa8b393204868349e1a74ea7e9c8678 Mon Sep 17 00:00:00 2001 From: Yu Jiung Date: Mon, 19 Dec 2016 13:50:22 +0900 Subject: [PATCH] Modify the header and documentation Change-Id: I9dd40954ab2f67cb3eb59de28c6d88befdbafac5 Signed-off-by: Yu jiung --- doc/wifi_direct_doc.h | 11 +- include/wifi-direct.h | 2521 +++++++++++++++++-------------- packaging/capi-network-wifi-direct.spec | 2 +- 3 files changed, 1354 insertions(+), 1180 deletions(-) diff --git a/doc/wifi_direct_doc.h b/doc/wifi_direct_doc.h index 1daa4b4..26fbec8 100644 --- a/doc/wifi_direct_doc.h +++ b/doc/wifi_direct_doc.h @@ -20,31 +20,26 @@ /** + * @ingroup CAPI_NETWORK_FRAMEWORK * @defgroup CAPI_NETWORK_WIFI_DIRECT_MODULE Wi-Fi Direct * @brief Wi-Fi Direct provides API to manage Wi-Fi Direct. - * @ingroup CAPI_NETWORK_FRAMEWORK - * * @section CAPI_NETWORK_WIFI_DIRECT_MODULE_HEADER Required Header * \#include * * @section CAPI_NETWORK_WIFI_DIRECT_MODULE_OVERVIEW Overview * This set of functions is used to manage the settings of Wi-Fi Direct. - * In addition, This set provides functions to connect and disconnect remote devices using Wi-Fi Direct. + * In addition, this set provides functions to connect and disconnect remote devices using Wi-Fi Direct. + * * @section CAPI_NETWORK_WIFI_DIRECT_MANAGER_MODULE_FEATURE Related Features * This API is related with the following features:\n * - http://tizen.org/feature/network.wifi\n * - http://tizen.org/feature/network.wifi.direct\n * - http://tizen.org/feature/network.wifi.direct.display\n * - http://tizen.org/feature/network.wifi.direct.serivce_discovery\n - * * It is recommended to design feature related codes in your application for reliability.\n - * * You can check if a device supports the related features for this API by using @ref CAPI_SYSTEM_SYSTEM_INFO_MODULE, thereby controlling the procedure of your application.\n - * * To ensure your application is only running on the device with specific features, please define the features in your manifest file using the manifest editor in the SDK.\n - * * More details on featuring your application can be found from Feature List. - * */ diff --git a/include/wifi-direct.h b/include/wifi-direct.h index 2073f6d..284a0f6 100755 --- a/include/wifi-direct.h +++ b/include/wifi-direct.h @@ -32,165 +32,172 @@ extern "C" { * @{ */ + /** * @brief Enumeration for Wi-Fi Direct error code. * @since_tizen 2.3 */ typedef enum { - WIFI_DIRECT_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */ - WIFI_DIRECT_ERROR_NOT_PERMITTED = TIZEN_ERROR_NOT_PERMITTED, /**< Operation not permitted */ - WIFI_DIRECT_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Out of memory */ - WIFI_DIRECT_ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED, /**< Permission denied */ - WIFI_DIRECT_ERROR_RESOURCE_BUSY = TIZEN_ERROR_RESOURCE_BUSY, /**< Device or resource busy */ - WIFI_DIRECT_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid function parameter */ - WIFI_DIRECT_ERROR_CONNECTION_TIME_OUT = TIZEN_ERROR_CONNECTION_TIME_OUT, /**< Connection timed out */ - WIFI_DIRECT_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED, /**< Not supported */ - WIFI_DIRECT_ERROR_NOT_INITIALIZED = TIZEN_ERROR_WIFI_DIRECT|0x01, /**< Not initialized */ - WIFI_DIRECT_ERROR_COMMUNICATION_FAILED = TIZEN_ERROR_WIFI_DIRECT|0x02, /**< I/O error */ - WIFI_DIRECT_ERROR_WIFI_USED = TIZEN_ERROR_WIFI_DIRECT|0x03, /**< WiFi is being used */ - WIFI_DIRECT_ERROR_MOBILE_AP_USED = TIZEN_ERROR_WIFI_DIRECT|0x04, /**< Mobile AP is being used */ - WIFI_DIRECT_ERROR_CONNECTION_FAILED = TIZEN_ERROR_WIFI_DIRECT|0x05, /**< Connection failed */ - WIFI_DIRECT_ERROR_AUTH_FAILED = TIZEN_ERROR_WIFI_DIRECT|0x06, /**< Authentication failed */ - WIFI_DIRECT_ERROR_OPERATION_FAILED = TIZEN_ERROR_WIFI_DIRECT|0x07, /**< Operation failed */ - WIFI_DIRECT_ERROR_TOO_MANY_CLIENT = TIZEN_ERROR_WIFI_DIRECT|0x08, /**< Too many client */ - WIFI_DIRECT_ERROR_ALREADY_INITIALIZED = TIZEN_ERROR_WIFI_DIRECT|0x09, /**< Already initialized client */ - WIFI_DIRECT_ERROR_CONNECTION_CANCELED = TIZEN_ERROR_WIFI_DIRECT|0x10, /**< Connection canceled by local device */ + WIFI_DIRECT_ERROR_NONE = TIZEN_ERROR_NONE, /**< Successful */ + WIFI_DIRECT_ERROR_NOT_PERMITTED = TIZEN_ERROR_NOT_PERMITTED, /**< Operation not permitted(1) */ + WIFI_DIRECT_ERROR_OUT_OF_MEMORY = TIZEN_ERROR_OUT_OF_MEMORY, /**< Out of memory(12) */ + WIFI_DIRECT_ERROR_PERMISSION_DENIED = TIZEN_ERROR_PERMISSION_DENIED, /**< Permission denied(13) */ + WIFI_DIRECT_ERROR_RESOURCE_BUSY = TIZEN_ERROR_RESOURCE_BUSY, /**< Device or resource busy(16) */ + WIFI_DIRECT_ERROR_INVALID_PARAMETER = TIZEN_ERROR_INVALID_PARAMETER, /**< Invalid function parameter(22) */ + WIFI_DIRECT_ERROR_CONNECTION_TIME_OUT = TIZEN_ERROR_CONNECTION_TIME_OUT, /**< Connection timed out(110) */ + WIFI_DIRECT_ERROR_NOT_SUPPORTED = TIZEN_ERROR_NOT_SUPPORTED, /**< Not supported */ + WIFI_DIRECT_ERROR_NOT_INITIALIZED = TIZEN_ERROR_WIFI_DIRECT|0x01, /**< Not initialized */ + WIFI_DIRECT_ERROR_COMMUNICATION_FAILED = TIZEN_ERROR_WIFI_DIRECT|0x02, /**< I/O error */ + WIFI_DIRECT_ERROR_WIFI_USED = TIZEN_ERROR_WIFI_DIRECT|0x03, /**< WiFi is being used */ + WIFI_DIRECT_ERROR_MOBILE_AP_USED = TIZEN_ERROR_WIFI_DIRECT|0x04, /**< Mobile AP is being used */ + WIFI_DIRECT_ERROR_CONNECTION_FAILED = TIZEN_ERROR_WIFI_DIRECT|0x05, /**< Connection failed */ + WIFI_DIRECT_ERROR_AUTH_FAILED = TIZEN_ERROR_WIFI_DIRECT|0x06, /**< Authentication failed */ + WIFI_DIRECT_ERROR_OPERATION_FAILED = TIZEN_ERROR_WIFI_DIRECT|0x07, /**< Operation failed */ + WIFI_DIRECT_ERROR_TOO_MANY_CLIENT = TIZEN_ERROR_WIFI_DIRECT|0x08, /**< Too many client */ + WIFI_DIRECT_ERROR_ALREADY_INITIALIZED = TIZEN_ERROR_WIFI_DIRECT|0x09, /**< Already initialized client */ + WIFI_DIRECT_ERROR_CONNECTION_CANCELED = TIZEN_ERROR_WIFI_DIRECT|0x10, /**< Connection canceled by local device */ } wifi_direct_error_e; + /** * @brief Enumeration for Wi-Fi Direct link status. * @since_tizen 2.3 */ typedef enum { - WIFI_DIRECT_STATE_DEACTIVATED = 0, /**< Deactivated */ - WIFI_DIRECT_STATE_DEACTIVATING, /**< Deactivating */ - WIFI_DIRECT_STATE_ACTIVATING, /**< Activating */ - WIFI_DIRECT_STATE_ACTIVATED, /**< Activated */ - WIFI_DIRECT_STATE_DISCOVERING, /**< Discovering */ - WIFI_DIRECT_STATE_CONNECTING, /**< Connecting */ - WIFI_DIRECT_STATE_DISCONNECTING, /**< Disconnecting */ - WIFI_DIRECT_STATE_CONNECTED, /**< Connected */ - WIFI_DIRECT_STATE_GROUP_OWNER /**< Group owner */ + WIFI_DIRECT_STATE_DEACTIVATED = 0, /**< Deactivated */ + WIFI_DIRECT_STATE_DEACTIVATING, /**< Deactivating */ + WIFI_DIRECT_STATE_ACTIVATING, /**< Activating */ + WIFI_DIRECT_STATE_ACTIVATED, /**< Activated */ + WIFI_DIRECT_STATE_DISCOVERING, /**< Discovering */ + WIFI_DIRECT_STATE_CONNECTING, /**< Connecting */ + WIFI_DIRECT_STATE_DISCONNECTING, /**< Disconnecting */ + WIFI_DIRECT_STATE_CONNECTED, /**< Connected */ + WIFI_DIRECT_STATE_GROUP_OWNER /**< Group owner */ } wifi_direct_state_e; + /** * @brief Enumeration for Wi-Fi Direct device state. * @since_tizen 2.3 */ typedef enum { - WIFI_DIRECT_DEVICE_STATE_ACTIVATED, /**< Activated */ + WIFI_DIRECT_DEVICE_STATE_ACTIVATED, /**< Activated */ WIFI_DIRECT_DEVICE_STATE_DEACTIVATED, /**< Deactivated */ } wifi_direct_device_state_e; + /** * @brief Enumeration for Wi-Fi Direct discovery state. * @since_tizen 2.3 */ typedef enum { - WIFI_DIRECT_ONLY_LISTEN_STARTED, /**< Only listen started */ - WIFI_DIRECT_DISCOVERY_STARTED, /**< Discovery started */ - WIFI_DIRECT_DISCOVERY_FOUND, /**< A remote peer is found */ - WIFI_DIRECT_DISCOVERY_FINISHED, /**< Discovery finished */ - WIFI_DIRECT_DISCOVERY_LOST, /**< A remote peer is lost (Since 3.0)*/ + WIFI_DIRECT_ONLY_LISTEN_STARTED, /**< Only listen started */ + WIFI_DIRECT_DISCOVERY_STARTED, /**< Discovery started */ + WIFI_DIRECT_DISCOVERY_FOUND, /**< A remote peer is found */ + WIFI_DIRECT_DISCOVERY_FINISHED, /**< Discovery finished */ + WIFI_DIRECT_DISCOVERY_LOST, /**< A remote peer is lost (Since 3.0)*/ } wifi_direct_discovery_state_e; + /** * @brief Enumeration for Wi-Fi Direct connection state. * @since_tizen 2.3 */ typedef enum { - WIFI_DIRECT_CONNECTION_REQ, /**< Connection is requested */ - WIFI_DIRECT_CONNECTION_WPS_REQ, /**< WPS is requested */ - WIFI_DIRECT_CONNECTION_IN_PROGRESS, /**< Connection in progress */ - WIFI_DIRECT_CONNECTION_RSP, /**< Connected */ - WIFI_DIRECT_DISASSOCIATION_IND, /**< Disconnected by remote Group Client */ - WIFI_DIRECT_DISCONNECTION_RSP, /**< Disconnected by local device */ - WIFI_DIRECT_DISCONNECTION_IND, /**< Disconnected by remote Group Owner */ - WIFI_DIRECT_GROUP_CREATED, /**< Group is created */ - WIFI_DIRECT_GROUP_DESTROYED, /**< Group is destroyed */ + WIFI_DIRECT_CONNECTION_REQ, /**< Connection is requested */ + WIFI_DIRECT_CONNECTION_WPS_REQ, /**< WPS is requested */ + WIFI_DIRECT_CONNECTION_IN_PROGRESS, /**< Connection in progress */ + WIFI_DIRECT_CONNECTION_RSP, /**< Connected */ + WIFI_DIRECT_DISASSOCIATION_IND, /**< Disconnected by remote Group Client */ + WIFI_DIRECT_DISCONNECTION_RSP, /**< Disconnected by local device */ + WIFI_DIRECT_DISCONNECTION_IND, /**< Disconnected by remote Group Owner */ + WIFI_DIRECT_GROUP_CREATED, /**< Group is created */ + WIFI_DIRECT_GROUP_DESTROYED, /**< Group is destroyed */ } wifi_direct_connection_state_e; + /** * @brief Enumeration for Wi-Fi Direct secondary device type. * @since_tizen 2.3 */ typedef enum { - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_COMPUTER_PC = 1, /**< PC */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_COMPUTER_SERVER = 2, /**< Server */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_COMPUTER_MEDIA_CENTER = 3, /**< Media Center */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_COMPUTER_UMPC = 4, /**< UMPC */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_COMPUTER_NOTEBOOK = 5, /**< Notebook */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_COMPUTER_DESKTOP = 6, /**< Desktop */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_COMPUTER_MID = 7, /**< MID */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_COMPUTER_NETBOOK = 8, /**< Netbook */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_INPUT_KEYBOARD = 1, /**< Keyboard */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_INPUT_MOUSE = 2, /**< Mouse */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_INPUT_JOYSTICK = 3, /**< Joystick */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_INPUT_TRACKBALL = 4, /**< Trackball */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_INPUT_CONTROLLER = 5, /**< Controller */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_INPUT_REMOTE = 6, /**< Remote */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_INPUT_TOUCHSCREEN = 7, /**< Touchscreen */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_INPUT_BIOMETRIC_READER = 8, /**< Biometric reader */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_INPUT_BARCODE_READER = 9, /**< Barcode reader */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_PRINTER_PRINTER = 1, /**< Printer */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_PRINTER_SCANNER = 2, /**< Scanner */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_PRINTER_FAX = 3, /**< Fax */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_PRINTER_COPIER = 4, /**< Copier */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_PRINTER_ALL_IN_ONE = 5, /**< All-in-one */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_CAMERA_DIGITAL_STILL = 1, /**< Digital still camera */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_CAMERA_VIDEO = 2, /**< Video camera */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_CAMERA_WEBCAM = 3, /**< Webcam */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_CAMERA_SECURITY = 4, /**< Security camera */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_STORAGE_NAS = 1, /**< NAS */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_NETWORK_INFRA_AP = 1, /**< AP */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_NETWORK_INFRA_ROUTER = 2, /**< Router */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_NETWORK_INFRA_SWITCH = 3, /**< Switch */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_NETWORK_INFRA_GATEWAY = 4, /**< Gateway */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_DISPLAY_TV = 1, /**< TV */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_DISPLAY_PIC_FRAME = 2, /**< Picture frame */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_DISPLAY_PROJECTOR = 3, /**< Projector */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_DISPLAY_MONITOR = 4, /**< Monitor */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_MULTIMEDIA_DAR = 1, /**< DAR */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_MULTIMEDIA_PVR = 2, /**< PVR */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_MULTIMEDIA_MCX = 3, /**< MCX */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_MULTIMEDIA_STB = 4, /**< Set-top box */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_MULTIMEDIA_MS_MA_ME = 5, /**< Media Server / Media Adapter / Media Extender */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_MULTIMEDIA_PVP = 6, /**< Portable video player */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_GAME_XBOX = 1, /**< Xbox */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_GAME_XBOX_360 = 2, /**< Xbox 360 */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_GAME_PS = 3, /**< Playstation */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_GAME_CONSOLE = 4, /**< Console */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_GAME_PORTABLE = 5, /**< Portable */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_TELEPHONE_WINDOWS_MOBILE = 1, /**< Windows Mobile */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_TELEPHONE_PHONE_SINGLE = 2, /**< Phone - single mode */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_TELEPHONE_PHONE_DUAL = 3, /**< Phone - dual mode */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_TELEPHONE_SMARTPHONE_SINGLE = 4, /**< Smart Phone - single mode */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_TELEPHONE_SMARTPHONE_DUAL = 5, /**< Smart Phone - dual mode */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_AUDIO_TUNER = 1, /**< Tuner */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_AUDIO_SPEAKER = 2, /**< Speaker */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_COMPUTER_PC = 1, /**< PC */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_COMPUTER_SERVER = 2, /**< Server */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_COMPUTER_MEDIA_CENTER = 3, /**< Media Center */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_COMPUTER_UMPC = 4, /**< UMPC */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_COMPUTER_NOTEBOOK = 5, /**< Notebook */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_COMPUTER_DESKTOP = 6, /**< Desktop */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_COMPUTER_MID = 7, /**< MID */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_COMPUTER_NETBOOK = 8, /**< Netbook */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_INPUT_KEYBOARD = 1, /**< Keyboard */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_INPUT_MOUSE = 2, /**< Mouse */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_INPUT_JOYSTICK = 3, /**< Joystick */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_INPUT_TRACKBALL = 4, /**< Trackball */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_INPUT_CONTROLLER = 5, /**< Controller */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_INPUT_REMOTE = 6, /**< Remote */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_INPUT_TOUCHSCREEN = 7, /**< Touchscreen */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_INPUT_BIOMETRIC_READER = 8, /**< Biometric reader */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_INPUT_BARCODE_READER = 9, /**< Barcode reader */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_PRINTER_PRINTER = 1, /**< Printer */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_PRINTER_SCANNER = 2, /**< Scanner */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_PRINTER_FAX = 3, /**< Fax */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_PRINTER_COPIER = 4, /**< Copier */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_PRINTER_ALL_IN_ONE = 5, /**< All-in-one */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_CAMERA_DIGITAL_STILL = 1, /**< Digital still camera */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_CAMERA_VIDEO = 2, /**< Video camera */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_CAMERA_WEBCAM = 3, /**< Webcam */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_CAMERA_SECURITY = 4, /**< Security camera */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_STORAGE_NAS = 1, /**< NAS */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_NETWORK_INFRA_AP = 1, /**< AP */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_NETWORK_INFRA_ROUTER = 2, /**< Router */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_NETWORK_INFRA_SWITCH = 3, /**< Switch */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_NETWORK_INFRA_GATEWAY = 4, /**< Gateway */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_DISPLAY_TV = 1, /**< TV */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_DISPLAY_PIC_FRAME = 2, /**< Picture frame */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_DISPLAY_PROJECTOR = 3, /**< Projector */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_DISPLAY_MONITOR = 4, /**< Monitor */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_MULTIMEDIA_DAR = 1, /**< DAR */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_MULTIMEDIA_PVR = 2, /**< PVR */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_MULTIMEDIA_MCX = 3, /**< MCX */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_MULTIMEDIA_STB = 4, /**< Set-top box */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_MULTIMEDIA_MS_MA_ME = 5, /**< Media Server / Media Adapter / Media Extender */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_MULTIMEDIA_PVP = 6, /**< Portable video player */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_GAME_XBOX = 1, /**< Xbox */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_GAME_XBOX_360 = 2, /**< Xbox 360 */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_GAME_PS = 3, /**< Playstation */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_GAME_CONSOLE = 4, /**< Console */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_GAME_PORTABLE = 5, /**< Portable */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_TELEPHONE_WINDOWS_MOBILE = 1, /**< Windows Mobile */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_TELEPHONE_PHONE_SINGLE = 2, /**< Phone - single mode */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_TELEPHONE_PHONE_DUAL = 3, /**< Phone - dual mode */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_TELEPHONE_SMARTPHONE_SINGLE = 4, /**< Smart Phone - single mode */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_TELEPHONE_SMARTPHONE_DUAL = 5, /**< Smart Phone - dual mode */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_AUDIO_TUNER = 1, /**< Tuner */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_AUDIO_SPEAKER = 2, /**< Speaker */ WIFI_DIRECT_SECONDARY_DEVICE_TYPE_AUDIO_PMP = 3, /**< Portable Music Player */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_AUDIO_HEADSET = 4, /**< Headset */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_AUDIO_HEADPHONE = 5, /**< Headphone */ - WIFI_DIRECT_SECONDARY_DEVICE_TYPE_AUDIO_MIC = 6, /**< Microphone */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_AUDIO_HEADSET = 4, /**< Headset */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_AUDIO_HEADPHONE = 5, /**< Headphone */ + WIFI_DIRECT_SECONDARY_DEVICE_TYPE_AUDIO_MIC = 6, /**< Microphone */ } wifi_direct_secondary_device_type_e; + /** * @brief Enumeration for Wi-Fi Direct primary device type. * @since_tizen 2.3 */ typedef enum { - WIFI_DIRECT_PRIMARY_DEVICE_TYPE_COMPUTER = 1, /**< Computer */ - WIFI_DIRECT_PRIMARY_DEVICE_TYPE_INPUT_DEVICE = 2, /**< Input device */ - WIFI_DIRECT_PRIMARY_DEVICE_TYPE_PRINTER = 3, /**< Printer */ - WIFI_DIRECT_PRIMARY_DEVICE_TYPE_CAMERA = 4, /**< Camera */ - WIFI_DIRECT_PRIMARY_DEVICE_TYPE_STORAGE = 5, /**< Storage */ - WIFI_DIRECT_PRIMARY_DEVICE_TYPE_NETWORK_INFRA = 6, /**< Network Infrastructure */ - WIFI_DIRECT_PRIMARY_DEVICE_TYPE_DISPLAY = 7, /**< Display */ - WIFI_DIRECT_PRIMARY_DEVICE_TYPE_MULTIMEDIA_DEVICE = 8, /**< Multimedia device */ - WIFI_DIRECT_PRIMARY_DEVICE_TYPE_GAME_DEVICE = 9, /**< Game device */ - WIFI_DIRECT_PRIMARY_DEVICE_TYPE_TELEPHONE = 10, /**< Telephone */ - WIFI_DIRECT_PRIMARY_DEVICE_TYPE_AUDIO = 11, /**< Audio */ - WIFI_DIRECT_PRIMARY_DEVICE_TYPE_OTHER = 255 /**< Others */ + WIFI_DIRECT_PRIMARY_DEVICE_TYPE_COMPUTER = 1, /**< Computer */ + WIFI_DIRECT_PRIMARY_DEVICE_TYPE_INPUT_DEVICE = 2, /**< Input device */ + WIFI_DIRECT_PRIMARY_DEVICE_TYPE_PRINTER = 3, /**< Printer */ + WIFI_DIRECT_PRIMARY_DEVICE_TYPE_CAMERA = 4, /**< Camera */ + WIFI_DIRECT_PRIMARY_DEVICE_TYPE_STORAGE = 5, /**< Storage */ + WIFI_DIRECT_PRIMARY_DEVICE_TYPE_NETWORK_INFRA = 6, /**< Network Infrastructure */ + WIFI_DIRECT_PRIMARY_DEVICE_TYPE_DISPLAY = 7, /**< Display */ + WIFI_DIRECT_PRIMARY_DEVICE_TYPE_MULTIMEDIA_DEVICE = 8, /**< Multimedia device */ + WIFI_DIRECT_PRIMARY_DEVICE_TYPE_GAME_DEVICE = 9, /**< Game device */ + WIFI_DIRECT_PRIMARY_DEVICE_TYPE_TELEPHONE = 10, /**< Telephone */ + WIFI_DIRECT_PRIMARY_DEVICE_TYPE_AUDIO = 11, /**< Audio */ + WIFI_DIRECT_PRIMARY_DEVICE_TYPE_OTHER = 255 /**< Others */ } wifi_direct_primary_device_type_e; /** @@ -198,43 +205,46 @@ typedef enum { * @since_tizen 2.3 */ typedef enum { - WIFI_DIRECT_WPS_TYPE_NONE = 0x00, /**< No WPS type */ - WIFI_DIRECT_WPS_TYPE_PBC = 0x01, /**< Push Button Configuration */ - WIFI_DIRECT_WPS_TYPE_PIN_DISPLAY = 0x02, /**< Display PIN code */ - WIFI_DIRECT_WPS_TYPE_PIN_KEYPAD = 0x04, /**< Provide the keypad to input the PIN */ + WIFI_DIRECT_WPS_TYPE_NONE = 0x00, /**< No WPS type */ + WIFI_DIRECT_WPS_TYPE_PBC = 0x01, /**< Push Button Configuration */ + WIFI_DIRECT_WPS_TYPE_PIN_DISPLAY = 0x02, /**< Display PIN code */ + WIFI_DIRECT_WPS_TYPE_PIN_KEYPAD = 0x04, /**< Provide the keypad to input the PIN */ } wifi_direct_wps_type_e; + /** - * @brief Enumeration for Wi-Fi Display device type - * @since_tizen 2.3 - */ +* @brief Enumeration for Wi-Fi Display device type. +* @since_tizen 2.3 +*/ typedef enum { - WIFI_DISPLAY_TYPE_NONE, /**< Configure as WFD Source*/ - WIFI_DISPLAY_TYPE_SINK, /**< Configure as WFD Primary Sink */ - WIFI_DISPLAY_TYPE_SRC, /**< Configure as WFD Secondary Sink */ - WIFI_DISPLAY_TYPE_DUAL, /**< Configure as WFD Dual Role */ - WIFI_DISPLAY_TYPE_MAX, /**< Not configured*/ + WIFI_DISPLAY_TYPE_NONE, /**< Configure as WFD Source*/ + WIFI_DISPLAY_TYPE_SINK, /**< Configure as WFD Primary Sink */ + WIFI_DISPLAY_TYPE_SRC, /**< Configure as WFD Secondary Sink */ + WIFI_DISPLAY_TYPE_DUAL, /**< Configure as WFD Dual Role */ + WIFI_DISPLAY_TYPE_MAX, /**< Not configured*/ } wifi_display_type_e; + /** * @brief Enumeration for Service Discovery type. * @since_tizen 2.3 - */ +*/ typedef enum { - WIFI_DIRECT_SERVICE_TYPE_ALL, /**< Service discovery Type all*/ - WIFI_DIRECT_SERVICE_TYPE_BONJOUR, /**< Service discovery Type bonjour*/ - WIFI_DIRECT_SERVICE_TYPE_UPNP, /**< Service discovery Type UPNP*/ - WIFI_DIRECT_SERVICE_TYPE_WS_DISCOVERY, /**< Service discovery Type ws discovery*/ - WIFI_DIRECT_SERVICE_TYPE_WIFI_DISPLAY, /**< Service discovery Type wifi-display*/ - WIFI_DIRECT_SERVICE_TYPE_BT_ADDR, /**< Service discovery Type bt address*/ - WIFI_DIRECT_SERVICE_TYPE_CONTACT_INFO, /**< Service discovery Type contact info*/ - WIFI_DIRECT_SERVICE_TYPE_VENDOR = 0xff, /**< Service discovery Type vendor-specific*/ + WIFI_DIRECT_SERVICE_TYPE_ALL, /**< Service discovery Type all*/ + WIFI_DIRECT_SERVICE_TYPE_BONJOUR, /**< Service discovery Type bonjour*/ + WIFI_DIRECT_SERVICE_TYPE_UPNP, /**< Service discovery Type UPNP*/ + WIFI_DIRECT_SERVICE_TYPE_WS_DISCOVERY, /**< Service discovery Type ws discovery*/ + WIFI_DIRECT_SERVICE_TYPE_WIFI_DISPLAY, /**< Service discovery Type wifi-display*/ + WIFI_DIRECT_SERVICE_TYPE_BT_ADDR, /**< Service discovery Type bt address*/ + WIFI_DIRECT_SERVICE_TYPE_CONTACT_INFO, /**< Service discovery Type contact info*/ + WIFI_DIRECT_SERVICE_TYPE_VENDOR = 0xff, /**< Service discovery Type vendor-specific*/ } wifi_direct_service_type_e; + /** - * @brief Enumeration for Wi-Fi Display device type. - * @since_tizen 2.4 - */ +* @brief Enumeration for Wi-Fi Display device type. +* @since_tizen 2.4 +*/ typedef enum { WIFI_DIRECT_DISPLAY_TYPE_SOURCE, /**< Configure as WFD Source*/ WIFI_DIRECT_DISPLAY_TYPE_PRISINK, /**< Configure as WFD Primary Sink */ @@ -243,50 +253,52 @@ typedef enum { WIFI_DIRECT_DISPLAY_TYPE_MAX, } wifi_direct_display_type_e; + /** * @brief Enumeration for Wi-Fi Direct service Discovery state. * @since_tizen 2.3 - */ +*/ typedef enum { - WIFI_DIRECT_SERVICE_DISCOVERY_STARTED, /**< Service discovery started*/ - WIFI_DIRECT_SERVICE_DISCOVERY_FOUND, /**< Service discovery found*/ - WIFI_DIRECT_SERVICE_DISCOVERY_FINISHED, /**< Service discovery finished*/ + WIFI_DIRECT_SERVICE_DISCOVERY_STARTED, /**< Service discovery started*/ + WIFI_DIRECT_SERVICE_DISCOVERY_FOUND, /**< Service discovery found*/ + WIFI_DIRECT_SERVICE_DISCOVERY_FINISHED, /**< Service discovery finished*/ } wifi_direct_service_discovery_state_e; + /** * @brief Enumeration for Wi-Fi Direct Discovery Channel. * @since_tizen 2.3 - */ +*/ typedef enum { - WIFI_DIRECT_DISCOVERY_FULL_SCAN = 0, /**< Scan full channel*/ - WIFI_DIRECT_DISCOVERY_SOCIAL_CHANNEL = 1611, /**< Scan social channel*/ - WIFI_DIRECT_DISCOVERY_CHANNEL1 = 1, /**< Scan channel 1*/ - WIFI_DIRECT_DISCOVERY_CHANNEL6 = 6, /**< Scan channel 6*/ - WIFI_DIRECT_DISCOVERY_CHANNEL11 = 11, /**< Scan channel 11*/ + WIFI_DIRECT_DISCOVERY_FULL_SCAN = 0, /**< Scan full channel*/ + WIFI_DIRECT_DISCOVERY_SOCIAL_CHANNEL = 1611, /**< Scan social channel*/ + WIFI_DIRECT_DISCOVERY_CHANNEL1 = 1, /**< Scan channel 1*/ + WIFI_DIRECT_DISCOVERY_CHANNEL6 = 6, /**< Scan channel 6*/ + WIFI_DIRECT_DISCOVERY_CHANNEL11 = 11, /**< Scan channel 11*/ } wifi_direct_discovery_channel_e; + /** * @brief Wi-Fi Direct buffer structure to store result of peer discovery. * @since_tizen 2.3 - * @remarks You can use APIs for wifi-direct display function instead of is_miracast_device value which is deprecated since 2.4. + * @remarks You can use APIs for Wi-Fi Direct display function instead of is_miracast_device value which is deprecated since 2.4. */ typedef struct { - char *device_name; /**< Device's friendly name */ - char *mac_address; /**< Device's P2P Device Address */ - char *interface_address; /**< Device's P2P Interface Address, Valid only if device is a P2P GO */ - int channel; /**< Channel the device is listening on */ - bool is_connected; /**< Is peer connected*/ - bool is_group_owner; /**< Is an active P2P Group Owner */ - bool is_persistent_group_owner; /**< Is a stored Persistent GO */ - wifi_direct_primary_device_type_e primary_device_type; /**< Primary category of device */ - wifi_direct_secondary_device_type_e secondary_device_type; /**< Sub category of device */ - int supported_wps_types; /**< The list of supported WPS type. The OR operation on #wifi_direct_wps_type_e can be used like #WIFI_DIRECT_WPS_TYPE_PBC | #WIFI_DIRECT_WPS_TYPE_PIN_DISPLAY */ - bool is_p2p_invitation_procedure_supported; /**< Is capable of processing P2P Invitation Procedure signaling */ - unsigned int service_count; /**< The number of Registered services */ - char **service_list; /**< The list of registered services */ - bool is_miracast_device; /**< Is a wifi display device */ - - void *vsie_info; /**