Add cplusplus definition to header
[platform/core/connectivity/wifi-direct-manager.git] / include / wifi-direct-peer.h
1 /*
2  * Network Configuration Module
3  *
4  * Copyright (c) 2012 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
20 /**
21  * This file declares wifi direct peer functions.
22  *
23  * @file                wifi-direct-peer.h
24  * @author      Gibyoung Kim (lastkgb.kim@samsung.com)
25  * @version     0.7
26  */
27
28 #ifndef __WIFI_DIRECT_PEER_H__
29 #define __WIFI_DIRECT_PEER_H__
30
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34
35 wfd_device_s *wfd_add_peer(void *data, unsigned char *dev_addr, char *dev_name);
36 int wfd_remove_peer(void *data, unsigned char *dev_addr);
37 int wfd_update_peer(void *data, wfd_device_s *peer);
38 int wfd_update_peer_time(void*data, unsigned char *peer_addr);
39 int wfd_peer_clear_all(void *data);
40 wfd_device_s *wfd_peer_find_by_dev_addr(void *data, unsigned char *dev_addr);
41 #if 0
42 wfd_device_s *wfd_peer_find_by_intf_addr(void *data, unsigned char *intf_addr);
43 wfd_device_s *wfd_peer_find_current_peer(void *data);
44 int wfd_peer_get_data(unsigned char *dev_addr, int type, int data);
45 int wfd_peer_set_data(unsigned char *dev_addr, int type, int data);
46 #endif
47 wfd_device_s *wfd_peer_find_by_addr(void *data, unsigned char *addr);
48
49 #ifdef __cplusplus
50 }
51 #endif
52
53 #endif /* __WIFI_DIRECT_PEER_H__ */