[shill] Add wpa_supplicant API spec to shill. Also, change 'proxy' -> 'adaptor'
Add the XML description of the wpa_supplicant DBus API, so we can
generate client (proxy object) bindings for it. to use these
bindings, #include "shill/supplicant_cli.h" and then inherit from the
appropriate class in the fi::w1::wpa_supplicant1 namespace.
For example, for the WPA supplicant "Network" interface:
class SupplicantNetworkProxy : public fi::w1::wpa_supplicant1::Network_proxy {
public:
SupplicantNetworkProxy() {}
virtual ~SupplicantNetworkProxy() {}
// All signal handlers are abstract in the base class; implement them all here
virtual void PropertiesChanged(
const std::map< std::string, ::DBus::Variant >& properties) {
return;
}
// Methods are all implemented for you, as are accessors for properties.
};
BUG=chromium-os:15092
TEST=build
Change-Id: I55e42148bc64965317e7223c852707ed6359b0bc
Reviewed-on: http://gerrit.chromium.org/gerrit/572
Reviewed-by: Chris Masone <cmasone@chromium.org>
Tested-by: Chris Masone <cmasone@chromium.org>
diff --git a/device.cc b/device.cc
index 358c7db..b21d7c8 100644
--- a/device.cc
+++ b/device.cc
@@ -16,22 +16,22 @@
namespace shill {
Device::Device(ControlInterface *control_interface,
EventDispatcher */* dispatcher */)
- : proxy_(control_interface->CreateDeviceProxy(this)),
+ : adaptor_(control_interface->CreateDeviceAdaptor(this)),
running_(false) {
}
Device::~Device() {
- delete(proxy_);
+ delete(adaptor_);
}
void Device::Start() {
running_ = true;
- proxy_->UpdateEnabled();
+ adaptor_->UpdateEnabled();
}
void Device::Stop() {
running_ = false;
- proxy_->UpdateEnabled();
+ adaptor_->UpdateEnabled();
}
} // namespace shill