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_IFACE_H 11*a1157835SDaniel Fojt #define WPA_SUPPLICANT_BINDER_IFACE_H 12*a1157835SDaniel Fojt 13*a1157835SDaniel Fojt #include "fi/w1/wpa_supplicant/BnIface.h" 14*a1157835SDaniel Fojt 15*a1157835SDaniel Fojt extern "C" { 16*a1157835SDaniel Fojt #include "utils/common.h" 17*a1157835SDaniel Fojt #include "utils/includes.h" 18*a1157835SDaniel Fojt #include "../wpa_supplicant_i.h" 19*a1157835SDaniel Fojt } 20*a1157835SDaniel Fojt 21*a1157835SDaniel Fojt namespace wpa_supplicant_binder { 22*a1157835SDaniel Fojt 23*a1157835SDaniel Fojt /** 24*a1157835SDaniel Fojt * Implementation of Iface binder object. Each unique binder 25*a1157835SDaniel Fojt * object is used for control operations on a specific interface 26*a1157835SDaniel Fojt * controlled by wpa_supplicant. 27*a1157835SDaniel Fojt */ 28*a1157835SDaniel Fojt class Iface : public fi::w1::wpa_supplicant::BnIface 29*a1157835SDaniel Fojt { 30*a1157835SDaniel Fojt public: 31*a1157835SDaniel Fojt Iface(struct wpa_supplicant *wpa_s); 32*a1157835SDaniel Fojt virtual ~Iface() = default; 33*a1157835SDaniel Fojt 34*a1157835SDaniel Fojt private: 35*a1157835SDaniel Fojt /* Raw pointer to the structure maintained by the core for this 36*a1157835SDaniel Fojt * interface. */ 37*a1157835SDaniel Fojt struct wpa_supplicant *wpa_s_; 38*a1157835SDaniel Fojt }; 39*a1157835SDaniel Fojt 40*a1157835SDaniel Fojt } /* namespace wpa_supplicant_binder */ 41*a1157835SDaniel Fojt 42*a1157835SDaniel Fojt #endif /* WPA_SUPPLICANT_BINDER_IFACE_H */ 43