1780fb4a2SCy Schubert /* 2780fb4a2SCy Schubert * binder interface for wpa_supplicant daemon 3780fb4a2SCy Schubert * Copyright (c) 2004-2016, Jouni Malinen <j@w1.fi> 4780fb4a2SCy Schubert * Copyright (c) 2004-2016, Roshan Pius <rpius@google.com> 5780fb4a2SCy Schubert * 6780fb4a2SCy Schubert * This software may be distributed under the terms of the BSD license. 7780fb4a2SCy Schubert * See README for more details. 8780fb4a2SCy Schubert */ 9780fb4a2SCy Schubert 10780fb4a2SCy Schubert #ifndef WPA_SUPPLICANT_BINDER_BINDER_H 11780fb4a2SCy Schubert #define WPA_SUPPLICANT_BINDER_BINDER_H 12780fb4a2SCy Schubert 13780fb4a2SCy Schubert #ifdef _cplusplus 14780fb4a2SCy Schubert extern "C" { 15780fb4a2SCy Schubert #endif /* _cplusplus */ 16780fb4a2SCy Schubert 17780fb4a2SCy Schubert /** 18780fb4a2SCy Schubert * This is the binder RPC interface entry point to the wpa_supplicant core. 19780fb4a2SCy Schubert * This initializes the binder driver & BinderManager instance and then forwards 20*c1d255d3SCy Schubert * all the notifications from the supplicant core to the BinderManager. 21780fb4a2SCy Schubert */ 22780fb4a2SCy Schubert struct wpas_binder_priv; 23780fb4a2SCy Schubert struct wpa_global; 24780fb4a2SCy Schubert 25780fb4a2SCy Schubert struct wpas_binder_priv *wpas_binder_init(struct wpa_global *global); 26780fb4a2SCy Schubert void wpas_binder_deinit(struct wpas_binder_priv *priv); 27780fb4a2SCy Schubert 28780fb4a2SCy Schubert #ifdef CONFIG_CTRL_IFACE_BINDER 29780fb4a2SCy Schubert int wpas_binder_register_interface(struct wpa_supplicant *wpa_s); 30780fb4a2SCy Schubert int wpas_binder_unregister_interface(struct wpa_supplicant *wpa_s); 31780fb4a2SCy Schubert #else /* CONFIG_CTRL_IFACE_BINDER */ wpas_binder_register_interface(struct wpa_supplicant * wpa_s)32780fb4a2SCy Schubertstatic inline int wpas_binder_register_interface(struct wpa_supplicant *wpa_s) 33780fb4a2SCy Schubert { 34780fb4a2SCy Schubert return 0; 35780fb4a2SCy Schubert } wpas_binder_unregister_interface(struct wpa_supplicant * wpa_s)36780fb4a2SCy Schubertstatic inline int wpas_binder_unregister_interface(struct wpa_supplicant *wpa_s) 37780fb4a2SCy Schubert { 38780fb4a2SCy Schubert return 0; 39780fb4a2SCy Schubert } 40780fb4a2SCy Schubert #endif /* CONFIG_CTRL_IFACE_BINDER */ 41780fb4a2SCy Schubert 42780fb4a2SCy Schubert #ifdef _cplusplus 43780fb4a2SCy Schubert } 44780fb4a2SCy Schubert #endif /* _cplusplus */ 45780fb4a2SCy Schubert 46780fb4a2SCy Schubert #endif /* WPA_SUPPLICANT_BINDER_BINDER_H */ 47