~ubuntu-branches/ubuntu/hoary/wpasupplicant/hoary

« back to all changes in this revision

Viewing changes to ctrl_iface.h

  • Committer: Bazaar Package Importer
  • Author(s): Kyle McMartin
  • Date: 2005-02-15 00:51:28 UTC
  • Revision ID: james.westby@ubuntu.com-20050215005128-xr4m8owiunur2008
Tags: upstream-0.3.8
ImportĀ upstreamĀ versionĀ 0.3.8

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef CTRL_IFACE_H
 
2
#define CTRL_IFACE_H
 
3
 
 
4
#ifdef CONFIG_CTRL_IFACE
 
5
 
 
6
int wpa_supplicant_ctrl_iface_init(struct wpa_supplicant *wpa_s);
 
7
void wpa_supplicant_ctrl_iface_deinit(struct wpa_supplicant *wpa_s);
 
8
void wpa_supplicant_ctrl_iface_send(struct wpa_supplicant *wpa_s, int level,
 
9
                                    char *buf, size_t len);
 
10
 
 
11
#else /* CONFIG_CTRL_IFACE */
 
12
 
 
13
static inline int wpa_supplicant_ctrl_iface_init(struct wpa_supplicant *wpa_s)
 
14
{
 
15
        return 0;
 
16
}
 
17
 
 
18
static inline void
 
19
wpa_supplicant_ctrl_iface_deinit(struct wpa_supplicant *wpa_s)
 
20
{
 
21
}
 
22
 
 
23
static inline void
 
24
wpa_supplicant_ctrl_iface_send(struct wpa_supplicant *wpa_s, int level,
 
25
                               char *buf, size_t len)
 
26
{
 
27
}
 
28
 
 
29
#endif /* CONFIG_CTRL_IFACE */
 
30
 
 
31
#endif /* CTRL_IFACE_H */