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