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