Add cplusplus definition to header
[platform/core/connectivity/wifi-direct-manager.git] / include / wifi-direct-asp.h
1 /*
2  * Network Configuration Module
3  *
4  * Copyright (c) 2016 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 Application Service Platform(ASP) utility functions.
22  *
23  * @file        wifi-direct-asp.h
24  * @author      Jiung Yu (jiung.yu@samsung.com)
25  * @version     0.1
26  */
27
28 #ifndef __WIFI_DIRECT_ASP_H__
29 #define __WIFI_DIRECT_ASP_H__
30
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34
35 typedef enum {
36         ASP_CONNECT_STATUS_NETWORK_ROLE_REJECTED,  /**< network role rejected */
37         ASP_CONNECT_STATUS_NOMORE_CONNECT,  /**< no more connect */
38         ASP_CONNECT_STATUS_REQUEST_SENT,  /**< session request sent */
39         ASP_CONNECT_STATUS_REQUEST_RECEIVED,  /**< session request received */
40         ASP_CONNECT_STATUS_REQUEST_DEFERRED,  /**< session request deferred */
41         ASP_CONNECT_STATUS_REQUEST_ACCEPTED,  /**< session request accepted */
42         ASP_CONNECT_STATUS_REQUEST_FAILED,  /**< session request failed */
43         ASP_CONNECT_STATUS_GROUP_FORMATION_STARTED,  /**< group formation started */
44         ASP_CONNECT_STATUS_GROUP_FORMATION_COMPLETED,  /**< group formation completed */
45         ASP_CONNECT_STATUS_GROUP_FORMATION_FAILED,  /**< group formation failed*/
46 } asp_connect_status_e;
47
48 bool wfd_asp_is_asp_session(wfd_session_s *session);
49 void wfd_asp_session_request(wfd_oem_asp_prov_s *prov_param);
50 void wfd_asp_session_config_request(unsigned int session_id, int get_pin, char *pin);
51 void wfd_asp_connect_status(unsigned char *session_mac,
52                 unsigned int session_id, int status, char *deferred);
53 void wfd_asp_session_peer_ip(unsigned char *session_mac,
54                 unsigned int session_id, unsigned char *service_mac,
55                 unsigned char *session_ip);
56
57 #ifdef __cplusplus
58 }
59 #endif
60
61 #endif /* __WIFI_DIRECT_ASP_H__ */