blob: 6ef23f0c74dda46afb43d20531df8644f060f031 [file] [log] [blame]
Darin Petkov4f5e5492012-04-18 14:05:55 +02001// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
Paul Stewart75897df2011-04-27 09:05:53 -07002// 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 Stewart78af94c2013-04-17 16:02:06 -070010const char Config::kDefaultRunDirectory[] = RUNDIR;
Chris Masone2ae797d2011-08-23 20:41:00 -070011// static
12const char Config::kDefaultStorageDirectory[] = "/var/cache/shill";
13// static
Paul Stewart78af94c2013-04-17 16:02:06 -070014const char Config::kDefaultUserStorageFormat[] = RUNDIR "/user_profiles/%s";
Chris Masone2ae797d2011-08-23 20:41:00 -070015
Wade Guthriebb5d4a62013-06-07 09:41:51 -070016Config::Config() {}
Chris Masone2ae797d2011-08-23 20:41:00 -070017
18Config::~Config() {}
19
Chris Masoneb9c00592011-10-06 13:10:39 -070020std::string Config::GetRunDirectory() {
Wade Guthriebb5d4a62013-06-07 09:41:51 -070021 return kDefaultRunDirectory;
Chris Masone2ae797d2011-08-23 20:41:00 -070022}
23
Chris Masoneb9c00592011-10-06 13:10:39 -070024std::string Config::GetStorageDirectory() {
Wade Guthriebb5d4a62013-06-07 09:41:51 -070025 return kDefaultStorageDirectory;
Chris Masone2ae797d2011-08-23 20:41:00 -070026}
27
Chris Masoneb9c00592011-10-06 13:10:39 -070028std::string Config::GetUserStorageDirectoryFormat() {
Wade Guthriebb5d4a62013-06-07 09:41:51 -070029 return kDefaultUserStorageFormat;
Chris Masone2ae797d2011-08-23 20:41:00 -070030}
Paul Stewart75897df2011-04-27 09:05:53 -070031
32} // namespace shill