iface.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /*
  2. * binder interface for wpa_supplicant daemon
  3. * Copyright (c) 2004-2016, Jouni Malinen <j@w1.fi>
  4. * Copyright (c) 2004-2016, Roshan Pius <rpius@google.com>
  5. *
  6. * This software may be distributed under the terms of the BSD license.
  7. * See README for more details.
  8. */
  9. #ifndef WPA_SUPPLICANT_BINDER_IFACE_H
  10. #define WPA_SUPPLICANT_BINDER_IFACE_H
  11. #include "fi/w1/wpa_supplicant/BnIface.h"
  12. extern "C" {
  13. #include "utils/common.h"
  14. #include "utils/includes.h"
  15. #include "../wpa_supplicant_i.h"
  16. }
  17. namespace wpa_supplicant_binder {
  18. /**
  19. * Implementation of Iface binder object. Each unique binder
  20. * object is used for control operations on a specific interface
  21. * controlled by wpa_supplicant.
  22. */
  23. class Iface : public fi::w1::wpa_supplicant::BnIface
  24. {
  25. public:
  26. Iface(struct wpa_supplicant *wpa_s);
  27. virtual ~Iface() = default;
  28. private:
  29. /* Raw pointer to the structure maintained by the core for this
  30. * interface. */
  31. struct wpa_supplicant *wpa_s_;
  32. };
  33. } /* namespace wpa_supplicant_binder */
  34. #endif /* WPA_SUPPLICANT_BINDER_IFACE_H */