aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/binder/binder.h
diff options
context:
space:
mode:
authorRoshan Pius <rpius@google.com>2016-02-17 00:40:06 (GMT)
committerJouni Malinen <j@w1.fi>2016-04-02 14:35:28 (GMT)
commitf1a5a34d8e5554d4286842f91797d811a713a5fc (patch)
tree7530798d290bc1c60d8085686707e79a7ed53036 /wpa_supplicant/binder/binder.h
parent7b4bbb9f946fb6861b2b4ded0f10949277514047 (diff)
downloadhostap-f1a5a34d8e5554d4286842f91797d811a713a5fc.zip
hostap-f1a5a34d8e5554d4286842f91797d811a713a5fc.tar.gz
hostap-f1a5a34d8e5554d4286842f91797d811a713a5fc.tar.bz2
binder: Implement interface add/remove methods
This commit implements the methods defined in Supplicant service: 1. CreateInterface 2. RemoveInterface 3. GetInterface The binder service returns the corresponding iface binder object references which can be used by clients to control a specific interface. Signed-off-by: Roshan Pius <rpius@google.com>
Diffstat (limited to 'wpa_supplicant/binder/binder.h')
-rw-r--r--wpa_supplicant/binder/binder.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/wpa_supplicant/binder/binder.h b/wpa_supplicant/binder/binder.h
index 6406f09..a165074 100644
--- a/wpa_supplicant/binder/binder.h
+++ b/wpa_supplicant/binder/binder.h
@@ -25,6 +25,20 @@ struct wpa_global;
struct wpas_binder_priv * wpas_binder_init(struct wpa_global *global);
void wpas_binder_deinit(struct wpas_binder_priv *priv);
+#ifdef CONFIG_CTRL_IFACE_BINDER
+int wpas_binder_register_interface(struct wpa_supplicant *wpa_s);
+int wpas_binder_unregister_interface(struct wpa_supplicant *wpa_s);
+#else /* CONFIG_CTRL_IFACE_BINDER */
+static inline int wpas_binder_register_interface(struct wpa_supplicant *wpa_s)
+{
+ return 0;
+}
+static inline int wpas_binder_unregister_interface(struct wpa_supplicant *wpa_s)
+{
+ return 0;
+}
+#endif /* CONFIG_CTRL_IFACE_BINDER */
+
#ifdef _cplusplus
}
#endif /* _cplusplus */