blob: c0ee12c65fa5da23b156f177111952facf32b685 [file] [log] [blame]
Dmitry Shmidte4663042016-04-04 10:07:49 -07001/*
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
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -070010#ifndef WPA_SUPPLICANT_BINDER_IFACE_H
11#define WPA_SUPPLICANT_BINDER_IFACE_H
Dmitry Shmidte4663042016-04-04 10:07:49 -070012
13#include "fi/w1/wpa_supplicant/BnIface.h"
14
15extern "C" {
Dmitry Shmidte4663042016-04-04 10:07:49 -070016#include "utils/common.h"
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -070017#include "utils/includes.h"
Dmitry Shmidte4663042016-04-04 10:07:49 -070018#include "../wpa_supplicant_i.h"
19}
20
21namespace 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 */
28class Iface : public fi::w1::wpa_supplicant::BnIface
29{
30public:
31 Iface(struct wpa_supplicant *wpa_s);
32 virtual ~Iface() = default;
33
34private:
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
Dmitry Shmidt7f2c7532016-08-15 09:48:12 -070042#endif /* WPA_SUPPLICANT_BINDER_IFACE_H */