| Index: manager.cc
|
| diff --git a/manager.cc b/manager.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0424e289670255d61aaf2b9ff408f2bb685bf8f3
|
| --- /dev/null
|
| +++ b/manager.cc
|
| @@ -0,0 +1,39 @@
|
| +// Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include <time.h>
|
| +
|
| +#include <stdio.h>
|
| +#include <string>
|
| +
|
| +#include "shill/shill_logging.h"
|
| +#include "shill/control_interface.h"
|
| +#include "shill/manager.h"
|
| +
|
| +using std::string;
|
| +
|
| +namespace shill {
|
| +Manager::Manager(ControlInterface *control_interface,
|
| + EventDispatcher */* dispatcher */)
|
| + : proxy_(control_interface->CreateManagerProxy(this)),
|
| + running_(false) {
|
| + // Initialize Interface montior, so we can detect new interfaces
|
| + SHILL_LOG(INFO, SHILL_LOG_MANAGER) << "Manager initialized.";
|
| +}
|
| +
|
| +Manager::~Manager() {
|
| + delete(proxy_);
|
| +}
|
| +
|
| +void Manager::Start() {
|
| + running_ = true;
|
| + proxy_->UpdateRunning();
|
| +}
|
| +
|
| +void Manager::Stop() {
|
| + running_ = false;
|
| + proxy_->UpdateRunning();
|
| +}
|
| +
|
| +} // namespace shill
|
|
|