[ACR]Add new APIs for TDLS
[platform/core/connectivity/net-config.git] / include / wifi-tdls.h
1 /*\r
2  * Network Configuration Module\r
3  *\r
4  * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. All rights reserved.\r
5  *\r
6  * Licensed under the Apache License, Version 2.0 (the "License");\r
7  * you may not use this file except in compliance with the License.\r
8  * You may obtain a copy of the License at\r
9  *\r
10  * http://www.apache.org/licenses/LICENSE-2.0\r
11  *\r
12  * Unless required by applicable law or agreed to in writing, software\r
13  * distributed under the License is distributed on an "AS IS" BASIS,\r
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
15  * See the License for the specific language governing permissions and\r
16  * limitations under the License.\r
17  *\r
18  */\r
19 #ifndef __TIZEN_NETWORK_WIFI_TDLS_H__\r
20 #define __TIZEN_NETWORK_WIFI_TDLS_H__\r
21 \r
22 #ifdef __cplusplus\r
23          extern "C" {\r
24 #endif\r
25 \r
26 #include <glib.h>\r
27 #include "netsupplicant.h"\r
28 \r
29 typedef struct {\r
30         int is_connected;\r
31         int hdcp;\r
32         int port;\r
33         int availability;\r
34         int tdls_support;\r
35         unsigned char ip_add[4];\r
36 }wifi_tdls_wfd_info_s;\r
37 \r
38 void netconfig_wifi_tlds_connected_event(GVariant *message);\r
39 void netconfig_wifi_tlds_disconnected_event(GVariant *message);\r
40 void __netconfig_wifi_notify_tdls_connected_event(const char *peer_mac);\r
41 gboolean handle_tdls_disconnect(Wifi *wifi, GDBusMethodInvocation *context, gchar *peer_mac_addr);\r
42 gboolean handle_tdls_connected_peer(Wifi *wifi, GDBusMethodInvocation *context);\r
43 \r
44 \r
45 #ifdef __cplusplus\r
46 }\r
47 #endif\r
48 \r
49 #endif /* __TIZEN_NETWORK_WIFI_TDLS_H__ */\r
50 \r