| 1 |
/* |
| 2 |
* binder interface for wpa_supplicant daemon |
| 3 |
* Copyright (c) 2004-2016, Jouni Malinen <[email protected]> |
| 4 |
* Copyright (c) 2004-2016, Roshan Pius <[email protected]> |
| 5 |
* |
| 6 |
* This software may be distributed under the terms of the BSD license. |
| 7 |
* See README for more details. |
| 8 |
*/ |
| 9 |
|
| 10 |
#ifndef WPA_SUPPLICANT_BINDER_BINDER_H |
| 11 |
#define WPA_SUPPLICANT_BINDER_BINDER_H |
| 12 |
|
| 13 |
#ifdef _cplusplus |
| 14 |
extern "C" { |
| 15 |
#endif /* _cplusplus */ |
| 16 |
|
| 17 |
/** |
| 18 |
* This is the binder RPC interface entry point to the wpa_supplicant core. |
| 19 |
* This initializes the binder driver & BinderManager instance and then forwards |
| 20 |
* all the notifications from the supplicant core to the BinderManager. |
| 21 |
*/ |
| 22 |
struct wpas_binder_priv; |
| 23 |
struct wpa_global; |
| 24 |
|
| 25 |
struct wpas_binder_priv *wpas_binder_init(struct wpa_global *global); |
| 26 |
void wpas_binder_deinit(struct wpas_binder_priv *priv); |
| 27 |
|
| 28 |
#ifdef CONFIG_CTRL_IFACE_BINDER |
| 29 |
int wpas_binder_register_interface(struct wpa_supplicant *wpa_s); |
| 30 |
int wpas_binder_unregister_interface(struct wpa_supplicant *wpa_s); |
| 31 |
#else /* CONFIG_CTRL_IFACE_BINDER */ |
| 32 |
static inline int wpas_binder_register_interface(struct wpa_supplicant *wpa_s) |
| 33 |
{ |
| 34 |
return 0; |
| 35 |
} |
| 36 |
static inline int wpas_binder_unregister_interface(struct wpa_supplicant *wpa_s) |
| 37 |
{ |
| 38 |
return 0; |
| 39 |
} |
| 40 |
#endif /* CONFIG_CTRL_IFACE_BINDER */ |
| 41 |
|
| 42 |
#ifdef _cplusplus |
| 43 |
} |
| 44 |
#endif /* _cplusplus */ |
| 45 |
|
| 46 |
#endif /* WPA_SUPPLICANT_BINDER_BINDER_H */ |