Adjust for symbol name changes.
[dragonfly.git] / contrib / wpa_supplicant-0.4.9 / ctrl_iface.h
1 /*
2  * WPA Supplicant / UNIX domain socket -based control interface
3  * Copyright (c) 2004-2005, Jouni Malinen <jkmaline@cc.hut.fi>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License version 2 as
7  * published by the Free Software Foundation.
8  *
9  * Alternatively, this software may be distributed under the terms of BSD
10  * license.
11  *
12  * See README and COPYING for more details.
13  */
14
15 #ifndef CTRL_IFACE_H
16 #define CTRL_IFACE_H
17
18 #ifdef CONFIG_CTRL_IFACE
19
20 int wpa_supplicant_ctrl_iface_init(struct wpa_supplicant *wpa_s);
21 void wpa_supplicant_ctrl_iface_deinit(struct wpa_supplicant *wpa_s);
22 void wpa_supplicant_ctrl_iface_send(struct wpa_supplicant *wpa_s, int level,
23                                     char *buf, size_t len);
24 void wpa_supplicant_ctrl_iface_wait(struct wpa_supplicant *wpa_s);
25 int wpa_supplicant_global_ctrl_iface_init(struct wpa_global *global);
26 void wpa_supplicant_global_ctrl_iface_deinit(struct wpa_global *global);
27
28 #else /* CONFIG_CTRL_IFACE */
29
30 static inline int wpa_supplicant_ctrl_iface_init(struct wpa_supplicant *wpa_s)
31 {
32         return 0;
33 }
34
35 static inline void
36 wpa_supplicant_ctrl_iface_deinit(struct wpa_supplicant *wpa_s)
37 {
38 }
39
40 static inline void
41 wpa_supplicant_ctrl_iface_send(struct wpa_supplicant *wpa_s, int level,
42                                char *buf, size_t len)
43 {
44 }
45
46 static inline void
47 wpa_supplicant_ctrl_iface_wait(struct wpa_supplicant *wpa_s)
48 {
49 }
50
51 static inline int
52 wpa_supplicant_global_ctrl_iface_init(struct wpa_global *global)
53 {
54         return 0;
55 }
56
57 static inline void
58 wpa_supplicant_global_ctrl_iface_deinit(struct wpa_global *global)
59 {
60 }
61
62 #endif /* CONFIG_CTRL_IFACE */
63
64 #endif /* CTRL_IFACE_H */