binder: Implement interface add/remove methods
[mech_eap.git] / wpa_supplicant / binder / supplicant.h
index 02b5918..b96f4e6 100644 (file)
@@ -11,6 +11,7 @@
 #define SUPPLICANT_H
 
 #include "fi/w1/wpa_supplicant/BnSupplicant.h"
+#include "fi/w1/wpa_supplicant/IIface.h"
 #include "fi/w1/wpa_supplicant/ISupplicantCallbacks.h"
 
 extern "C" {
@@ -32,6 +33,17 @@ public:
        Supplicant(struct wpa_global *global);
        virtual ~Supplicant() = default;
 
+       android::binder::Status CreateInterface(
+               const android::os::PersistableBundle &params,
+               android::sp<fi::w1::wpa_supplicant::IIface> *aidl_return)
+               override;
+       android::binder::Status RemoveInterface(
+               const std::string &ifname) override;
+       android::binder::Status GetInterface(
+               const std::string &ifname,
+               android::sp<fi::w1::wpa_supplicant::IIface> *aidl_return)
+               override;
+
 private:
        /* Raw pointer to the global structure maintained by the core. */
        struct wpa_global *wpa_global_;