mukesh agrawal | af57195 | 2011-07-14 14:31:12 -0700 | [diff] [blame] | 1 | // Copyright (c) 2011 The Chromium OS Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 5 | #include "shill/supplicant_process_proxy.h" |
mukesh agrawal | af57195 | 2011-07-14 14:31:12 -0700 | [diff] [blame] | 6 | |
| 7 | #include <map> |
| 8 | #include <string> |
| 9 | |
| 10 | #include <base/logging.h> |
| 11 | #include <dbus-c++/dbus.h> |
| 12 | |
| 13 | using std::map; |
| 14 | using std::string; |
| 15 | |
| 16 | namespace shill { |
| 17 | |
Darin Petkov | aceede3 | 2011-07-18 15:32:38 -0700 | [diff] [blame] | 18 | SupplicantProcessProxy::SupplicantProcessProxy(DBus::Connection *bus, |
| 19 | const char *dbus_path, |
| 20 | const char *dbus_addr) |
| 21 | : proxy_(bus, dbus_path, dbus_addr) {} |
mukesh agrawal | af57195 | 2011-07-14 14:31:12 -0700 | [diff] [blame] | 22 | |
| 23 | SupplicantProcessProxy::~SupplicantProcessProxy() {} |
| 24 | |
| 25 | ::DBus::Path SupplicantProcessProxy::CreateInterface( |
| 26 | const map<string, ::DBus::Variant> &args) { |
| 27 | return proxy_.CreateInterface(args); |
| 28 | } |
| 29 | |
| 30 | void SupplicantProcessProxy::RemoveInterface(const ::DBus::Path &path) { |
| 31 | return proxy_.RemoveInterface(path); |
| 32 | } |
| 33 | |
| 34 | ::DBus::Path SupplicantProcessProxy::GetInterface(const string &ifname) { |
| 35 | return proxy_.GetInterface(ifname); |
| 36 | } |
| 37 | |
| 38 | // definitions for private class SupplicantProcessProxy::Proxy |
| 39 | |
| 40 | SupplicantProcessProxy::Proxy::Proxy( |
| 41 | DBus::Connection *bus, const char *dbus_path, const char *dbus_addr) |
| 42 | : DBus::ObjectProxy(*bus, dbus_path, dbus_addr) {} |
| 43 | |
| 44 | SupplicantProcessProxy::Proxy::~Proxy() {} |
| 45 | |
| 46 | void SupplicantProcessProxy::Proxy::InterfaceAdded( |
mukesh agrawal | 1830fa1 | 2011-09-26 14:31:40 -0700 | [diff] [blame] | 47 | const ::DBus::Path& /*path*/, |
| 48 | const map<string, ::DBus::Variant> &/*properties*/) { |
mukesh agrawal | af57195 | 2011-07-14 14:31:12 -0700 | [diff] [blame] | 49 | LOG(INFO) << __func__; |
| 50 | // XXX |
| 51 | } |
| 52 | |
| 53 | void SupplicantProcessProxy::Proxy::InterfaceRemoved( |
mukesh agrawal | 1830fa1 | 2011-09-26 14:31:40 -0700 | [diff] [blame] | 54 | const ::DBus::Path& /*path*/) { |
mukesh agrawal | af57195 | 2011-07-14 14:31:12 -0700 | [diff] [blame] | 55 | LOG(INFO) << __func__; |
| 56 | // XXX |
| 57 | } |
| 58 | |
| 59 | void SupplicantProcessProxy::Proxy::PropertiesChanged( |
mukesh agrawal | 1830fa1 | 2011-09-26 14:31:40 -0700 | [diff] [blame] | 60 | const map<string, ::DBus::Variant>& /*properties*/) { |
mukesh agrawal | af57195 | 2011-07-14 14:31:12 -0700 | [diff] [blame] | 61 | LOG(INFO) << __func__; |
| 62 | // XXX |
| 63 | } |
| 64 | |
| 65 | } // namespace shill |