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