blob: c523acba591cbf4423d3aaccca0e931dff858d7e [file] [log] [blame]
mukesh agrawalaf571952011-07-14 14:31:12 -07001// 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 Petkovef34f182011-08-26 14:14:40 -07005#include "shill/supplicant_process_proxy.h"
mukesh agrawalaf571952011-07-14 14:31:12 -07006
7#include <map>
8#include <string>
9
10#include <base/logging.h>
11#include <dbus-c++/dbus.h>
12
13using std::map;
14using std::string;
15
16namespace shill {
17
Darin Petkovaceede32011-07-18 15:32:38 -070018SupplicantProcessProxy::SupplicantProcessProxy(DBus::Connection *bus,
19 const char *dbus_path,
20 const char *dbus_addr)
21 : proxy_(bus, dbus_path, dbus_addr) {}
mukesh agrawalaf571952011-07-14 14:31:12 -070022
23SupplicantProcessProxy::~SupplicantProcessProxy() {}
24
25::DBus::Path SupplicantProcessProxy::CreateInterface(
26 const map<string, ::DBus::Variant> &args) {
27 return proxy_.CreateInterface(args);
28}
29
30void 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
40SupplicantProcessProxy::Proxy::Proxy(
41 DBus::Connection *bus, const char *dbus_path, const char *dbus_addr)
42 : DBus::ObjectProxy(*bus, dbus_path, dbus_addr) {}
43
44SupplicantProcessProxy::Proxy::~Proxy() {}
45
46void SupplicantProcessProxy::Proxy::InterfaceAdded(
47 const ::DBus::Path& path,
48 const map<string, ::DBus::Variant> &properties) {
49 LOG(INFO) << __func__;
50 // XXX
51}
52
53void SupplicantProcessProxy::Proxy::InterfaceRemoved(
54 const ::DBus::Path& path) {
55 LOG(INFO) << __func__;
56 // XXX
57}
58
59void SupplicantProcessProxy::Proxy::PropertiesChanged(
60 const map<string, ::DBus::Variant>& properties) {
61 LOG(INFO) << __func__;
62 // XXX
63}
64
65} // namespace shill