blob: d8494f900bd74043a9994d76fb734d138d9d3452 [file] [log] [blame]
mukesh agrawalb20776f2012-02-10 16:00:36 -08001// Copyright (c) 2012 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
5#include "shill/supplicant_bss_proxy.h"
6
7#include <map>
8#include <string>
9
10#include <dbus-c++/dbus.h>
11
Christopher Wileyb691efd2012-08-09 13:51:51 -070012#include "shill/logging.h"
mukesh agrawalb20776f2012-02-10 16:00:36 -080013#include "shill/wifi_endpoint.h"
14
15using std::map;
16using std::string;
17
18namespace shill {
19
20SupplicantBSSProxy::SupplicantBSSProxy(
21 WiFiEndpoint *wifi_endpoint,
22 DBus::Connection *bus,
23 const ::DBus::Path &object_path,
24 const char *dbus_addr)
25 : proxy_(wifi_endpoint, bus, object_path, dbus_addr) {}
26
27SupplicantBSSProxy::~SupplicantBSSProxy() {}
28
29// definitions for private class SupplicantBSSProxy::Proxy
30
31SupplicantBSSProxy::Proxy::Proxy(
32 WiFiEndpoint *wifi_endpoint, DBus::Connection *bus,
33 const DBus::Path &dbus_path, const char *dbus_addr)
34 : DBus::ObjectProxy(*bus, dbus_path, dbus_addr),
35 wifi_endpoint_(wifi_endpoint) {}
36
37SupplicantBSSProxy::Proxy::~Proxy() {}
38
39void SupplicantBSSProxy::Proxy::PropertiesChanged(
40 const std::map<string, ::DBus::Variant> &properties) {
mukesh agrawal06175d72012-04-23 16:46:01 -070041 SLOG(DBus, 2) << __func__;
mukesh agrawalb20776f2012-02-10 16:00:36 -080042 wifi_endpoint_->PropertiesChanged(properties);
43}
44
45} // namespace shill