blob: 05a63d55f1edcb77e1fad4cfe0f701bdc283748c [file] [log] [blame]
Gilad Arnold55f39b72014-01-28 12:51:45 -08001// Copyright (c) 2014 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 "update_engine/policy_manager/generic_variables.h"
6#include "update_engine/policy_manager/real_shill_provider.h"
7
8namespace chromeos_policy_manager {
9
10// ShillProvider implementation.
11
12bool RealShillProvider::DoInit(void) {
13 // TODO(garnold) Initialize with actual (or fake) DBus connection.
14
15 var_is_connected_.reset(
Alex Deymo0e433692014-02-20 07:23:03 -080016 new CopyVariable<bool>("is_connected", kVariableModeAsync,
17 is_connected_));
Gilad Arnold55f39b72014-01-28 12:51:45 -080018 var_conn_type_.reset(
Alex Deymo0e433692014-02-20 07:23:03 -080019 new CopyVariable<ShillConnType>("conn_type", kVariableModeAsync,
20 conn_type_));
Gilad Arnold55f39b72014-01-28 12:51:45 -080021 var_conn_last_changed_.reset(
Alex Deymo0e433692014-02-20 07:23:03 -080022 new CopyVariable<Time>("conn_last_changed", kVariableModeAsync,
23 conn_last_changed_));
Gilad Arnold55f39b72014-01-28 12:51:45 -080024 return true;
25}
26
27} // namespace chromeos_policy_manager