blob: 8780d0cc92e87c812760bdd9a796b7390b18e7f6 [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
mukesh agrawal0a59a5a2014-04-24 19:10:46 -070014const char Config::kDefaultUserStorageDirectory[] = RUNDIR "/user_profiles/";
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
mukesh agrawal0a59a5a2014-04-24 19:10:46 -070028std::string Config::GetUserStorageDirectory() {
29 return kDefaultUserStorageDirectory;
Chris Masone2ae797d2011-08-23 20:41:00 -070030}
Paul Stewart75897df2011-04-27 09:05:53 -070031
32} // namespace shill