blob: ddf1c79ed7c6d9a76b9a71e745d17708da097448 [file] [log] [blame]
Paul Stewart75897df2011-04-27 09:05:53 -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
5#include "shill/shill_config.h"
6
7namespace shill {
8
Chris Masone2ae797d2011-08-23 20:41:00 -07009// static
Paul Stewart75897df2011-04-27 09:05:53 -070010const char Config::kShillDefaultPrefsDir[] = "/var/lib/shill";
11
Chris Masone2ae797d2011-08-23 20:41:00 -070012// static
13const char Config::kDefaultRunDirectory[] = "/var/run/shill";
14// static
15const char Config::kDefaultStorageDirectory[] = "/var/cache/shill";
16// static
17const char Config::kDefaultUserStorageFormat[] = "/home/%s/user/shill";
18// static
19const char Config::kFlimflamStorageDirectory[] = "/var/cache/flimflam";
20// static
21const char Config::kFlimflamUserStorageFormat[] = "/home/%s/user/flimflam";
22
23Config::Config() : use_flimflam_(false) {
24}
25
26Config::~Config() {}
27
28std::string Config::RunDirectory() {
29 return kDefaultRunDirectory;
30}
31
32std::string Config::StorageDirectory() {
33 return (use_flimflam_ ?
34 kFlimflamStorageDirectory :
35 kDefaultStorageDirectory);
36}
37
38std::string Config::UserStorageDirectoryFormat() {
39 return (use_flimflam_ ?
40 kFlimflamUserStorageFormat :
41 kDefaultUserStorageFormat);
42}
Paul Stewart75897df2011-04-27 09:05:53 -070043
44} // namespace shill