12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- #ifndef WPA_SUPPLICANT_BINDER_BINDER_MANAGER_H
- #define WPA_SUPPLICANT_BINDER_BINDER_MANAGER_H
- #include <map>
- #include <string>
- #include "iface.h"
- #include "supplicant.h"
- struct wpa_global;
- struct wpa_supplicant;
- namespace wpa_supplicant_binder {
- class BinderManager
- {
- public:
- static BinderManager *getInstance();
- static void destroyInstance();
- int registerBinderService(struct wpa_global *global);
- int registerInterface(struct wpa_supplicant *wpa_s);
- int unregisterInterface(struct wpa_supplicant *wpa_s);
- int getIfaceBinderObjectByKey(
- const void *iface_object_key,
- android::sp<fi::w1::wpa_supplicant::IIface> *iface_object);
- private:
- BinderManager() = default;
- ~BinderManager() = default;
-
- static BinderManager *instance_;
-
- android::sp<Supplicant> supplicant_object_;
-
- std::map<const void *, android::sp<Iface>> iface_object_map_;
- };
- }
- #endif
|