WPS: Move WPS glue code from wpas_glue.c to wps_supplicant.c
[mech_eap.git] / wpa_supplicant / wps_supplicant.h
1 /*
2  * wpa_supplicant / WPS integration
3  * Copyright (c) 2008, Jouni Malinen <j@w1.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 WPS_SUPPLICANT_H
16 #define WPS_SUPPLICANT_H
17
18 #ifdef CONFIG_WPS
19
20 int wpas_wps_eapol_cb(struct wpa_supplicant *wpa_s);
21 void * wpas_wps_get_cred_cb(void);
22
23 #else /* CONFIG_WPS */
24
25 static inline int wpas_wps_eapol_cb(struct wpa_supplicant *wpa_s)
26 {
27         return 0;
28 }
29
30 static inline void * wpas_wps_get_cred_cb(void)
31 {
32         return NULL;
33 }
34
35 #endif /* CONFIG_WPS */
36
37 #endif /* WPS_SUPPLICANT_H */