Modified to get current time to match stc
[platform/core/connectivity/net-config.git] / include / wifi-tdls.h
1 /*
2  * Network Configuration Module
3  *
4  * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd. All rights reserved.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  *
18  */
19 #ifndef __TIZEN_NETWORK_WIFI_TDLS_H__
20 #define __TIZEN_NETWORK_WIFI_TDLS_H__
21
22 #ifdef __cplusplus
23          extern "C" {
24 #endif
25
26 #include <glib.h>
27 #include "netsupplicant.h"
28
29
30 typedef enum {
31         NETCONFIG_ERROR_TDLS_NO_ERROR                           = 0x00,
32         NETCONFIG_ERROR_TDLS_FAIL_DISCOVER                      = 0x01,
33         NETCONFIG_ERROR_TDLS_FAIL_DISCONNECT            = 0x02,
34         NETCONFIG_ERROR_TDLS_FAIL_CONNECT                       = 0x03,
35         NETCONFIG_ERROR_TDLS_ALREADY_DONE                       = 0x04,
36         NETCONFIG_ERROR_TDLS_FAIL_CHANNEL_SWITCH        = 0x05,
37 } netconfig_tdls_error_e;
38
39 void netconfig_wifi_tdls_peer_found_event(GVariant *message);
40 void netconfig_wifi_tdls_connected_event(GVariant *message);
41 void netconfig_wifi_tdls_disconnected_event(GVariant *message);
42 void __netconfig_wifi_notify_tdls_connected_event(const char *peer_mac);
43 gboolean handle_tdls_disconnect(Wifi *wifi, GDBusMethodInvocation *context, gchar *peer_mac_addr);
44 gboolean handle_tdls_connected_peer(Wifi *wifi, GDBusMethodInvocation *context);
45 gboolean handle_tdls_connect(Wifi *wifi, GDBusMethodInvocation *context, gchar *peer_mac_Addr);
46 gboolean handle_tdls_discover(Wifi *wifi, GDBusMethodInvocation *context, gchar *peer_mac_Addr);
47 gboolean handle_tdls_channel_switch(Wifi *wifi, GDBusMethodInvocation *context,
48                         gchar *peer_mac_Addr, int freq);
49 gboolean handle_tdls_cancel_channel_switch(Wifi *wifi, GDBusMethodInvocation *context,
50                         gchar *peer_mac_Addr);
51
52
53
54 #ifdef __cplusplus
55 }
56 #endif
57
58 #endif /* __TIZEN_NETWORK_WIFI_TDLS_H__ */
59