• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //
2 // Copyright (C) 2012 The Android Open Source Project
3 //
4 // Licensed under the Apache License, Version 2.0 (the "License");
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
7 //
8 //      http://www.apache.org/licenses/LICENSE-2.0
9 //
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
15 //
16 
17 #include "shill/shill_config.h"
18 
19 namespace shill {
20 
21 // static
22 const char Config::kDefaultRunDirectory[] = RUNDIR;
23 // static
24 #if defined(__ANDROID__)
25 const char Config::kDefaultStorageDirectory[] = RUNDIR "/default_profiles/";
26 #else
27 const char Config::kDefaultStorageDirectory[] = "/var/cache/shill";
28 #endif  // __ANDROID__
29 // static
30 const char Config::kDefaultUserStorageDirectory[] = RUNDIR "/user_profiles/";
31 
Config()32 Config::Config() {}
33 
~Config()34 Config::~Config() {}
35 
GetRunDirectory()36 std::string Config::GetRunDirectory() {
37   return kDefaultRunDirectory;
38 }
39 
GetStorageDirectory()40 std::string Config::GetStorageDirectory() {
41   return kDefaultStorageDirectory;
42 }
43 
GetUserStorageDirectory()44 std::string Config::GetUserStorageDirectory() {
45   return kDefaultUserStorageDirectory;
46 }
47 
48 }  // namespace shill
49