• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Hostapd
3  * Copyright (c) 2003-2016, Jouni Malinen <j@w1.fi>
4  * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED.
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  * This software may be distributed under the terms of the BSD license.
18  * See README for more details.
19  *
20  * This file implements functions for registering and unregistering
21  * %wpa_supplicant interfaces. In addition, this file contains number of
22  * functions for managing network connections.
23  */
24 
25 #ifndef _HOSTAPD_IF_H_
26 #define _HOSTAPD_IF_H_
27 
28 #include "ap/ap_config.h"
29 #include "ap/hostapd.h"
30 
31 #ifdef __cplusplus
32 #if __cplusplus
33 extern "C" {
34 #endif /* __cplusplus */
35 #endif /* __cplusplus */
36 
37 void hostapd_main(const char *ifname);
38 void hostapd_global_deinit(void);
39 void hostapd_global_interfaces_deinit(void);
40 void hostapd_interface_deinit_free(struct hostapd_iface *iface);
41 int hostapd_global_ctrl_iface_init(struct hapd_interfaces *interface);
42 void hostapd_global_ctrl_iface_deinit(struct hapd_interfaces *interfaces);
43 struct hapd_interfaces * hostapd_get_interfaces(void);
44 struct hostapd_config * hostapd_config_read2(const char *fname);
45 int hostapd_stop(void);
46 int hostapd_ctrl_iface_init(struct hostapd_data *hapd);
47 void hostapd_ctrl_iface_deinit(struct hostapd_data *hapd);
48 void hostapd_pre_quit(struct hapd_interfaces *interfaces);
49 
50 #ifdef __cplusplus
51 #if __cplusplus
52 }
53 #endif /* __cplusplus */
54 #endif /* __cplusplus */
55 #endif
56