2 * Network Configuration Module
4 * Copyright (c) 2012 Samsung Electronics Co., Ltd. All rights reserved.
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
10 * http://www.apache.org/licenses/LICENSE-2.0
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.
21 * This file declares wifi direct peer functions.
23 * @file wifi-direct-peer.h
24 * @author Gibyoung Kim (lastkgb.kim@samsung.com)
28 #ifndef __WIFI_DIRECT_PEER_H__
29 #define __WIFI_DIRECT_PEER_H__
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);
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);
47 wfd_device_s *wfd_peer_find_by_addr(void *data, unsigned char *addr);
53 #endif /* __WIFI_DIRECT_PEER_H__ */