Darin Petkov | 4f5e549 | 2012-04-18 14:05:55 +0200 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
Paul Stewart | 75897df | 2011-04-27 09:05:53 -0700 | [diff] [blame] | 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 | |
| 7 | namespace shill { |
| 8 | |
Chris Masone | 2ae797d | 2011-08-23 20:41:00 -0700 | [diff] [blame] | 9 | // static |
Paul Stewart | 78af94c | 2013-04-17 16:02:06 -0700 | [diff] [blame] | 10 | const char Config::kDefaultRunDirectory[] = RUNDIR; |
Chris Masone | 2ae797d | 2011-08-23 20:41:00 -0700 | [diff] [blame] | 11 | // static |
| 12 | const char Config::kDefaultStorageDirectory[] = "/var/cache/shill"; |
| 13 | // static |
mukesh agrawal | 0a59a5a | 2014-04-24 19:10:46 -0700 | [diff] [blame] | 14 | const char Config::kDefaultUserStorageDirectory[] = RUNDIR "/user_profiles/"; |
Chris Masone | 2ae797d | 2011-08-23 20:41:00 -0700 | [diff] [blame] | 15 | |
Wade Guthrie | bb5d4a6 | 2013-06-07 09:41:51 -0700 | [diff] [blame] | 16 | Config::Config() {} |
Chris Masone | 2ae797d | 2011-08-23 20:41:00 -0700 | [diff] [blame] | 17 | |
| 18 | Config::~Config() {} |
| 19 | |
Chris Masone | b9c0059 | 2011-10-06 13:10:39 -0700 | [diff] [blame] | 20 | std::string Config::GetRunDirectory() { |
Wade Guthrie | bb5d4a6 | 2013-06-07 09:41:51 -0700 | [diff] [blame] | 21 | return kDefaultRunDirectory; |
Chris Masone | 2ae797d | 2011-08-23 20:41:00 -0700 | [diff] [blame] | 22 | } |
| 23 | |
Chris Masone | b9c0059 | 2011-10-06 13:10:39 -0700 | [diff] [blame] | 24 | std::string Config::GetStorageDirectory() { |
Wade Guthrie | bb5d4a6 | 2013-06-07 09:41:51 -0700 | [diff] [blame] | 25 | return kDefaultStorageDirectory; |
Chris Masone | 2ae797d | 2011-08-23 20:41:00 -0700 | [diff] [blame] | 26 | } |
| 27 | |
mukesh agrawal | 0a59a5a | 2014-04-24 19:10:46 -0700 | [diff] [blame] | 28 | std::string Config::GetUserStorageDirectory() { |
| 29 | return kDefaultUserStorageDirectory; |
Chris Masone | 2ae797d | 2011-08-23 20:41:00 -0700 | [diff] [blame] | 30 | } |
Paul Stewart | 75897df | 2011-04-27 09:05:53 -0700 | [diff] [blame] | 31 | |
| 32 | } // namespace shill |