If there is no commitid, we need to initialize Delta->commitid to NULL to
[dragonfly.git] / contrib / wpa_supplicant-0.4.9 / ctrl_iface.h
blobaffa6040a7e86c71be9b56465b051360a5d6663f
1 /*
2 * WPA Supplicant / UNIX domain socket -based control interface
3 * Copyright (c) 2004-2005, Jouni Malinen <jkmaline@cc.hut.fi>
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.
9 * Alternatively, this software may be distributed under the terms of BSD
10 * license.
12 * See README and COPYING for more details.
15 #ifndef CTRL_IFACE_H
16 #define CTRL_IFACE_H
18 #ifdef CONFIG_CTRL_IFACE
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);
28 #else /* CONFIG_CTRL_IFACE */
30 static inline int wpa_supplicant_ctrl_iface_init(struct wpa_supplicant *wpa_s)
32 return 0;
35 static inline void
36 wpa_supplicant_ctrl_iface_deinit(struct wpa_supplicant *wpa_s)
40 static inline void
41 wpa_supplicant_ctrl_iface_send(struct wpa_supplicant *wpa_s, int level,
42 char *buf, size_t len)
46 static inline void
47 wpa_supplicant_ctrl_iface_wait(struct wpa_supplicant *wpa_s)
51 static inline int
52 wpa_supplicant_global_ctrl_iface_init(struct wpa_global *global)
54 return 0;
57 static inline void
58 wpa_supplicant_global_ctrl_iface_deinit(struct wpa_global *global)
62 #endif /* CONFIG_CTRL_IFACE */
64 #endif /* CTRL_IFACE_H */