xref: /openbmc/phosphor-hwmon/env.cpp (revision b6865fdcc10dbfd5ff023f3b74d9c8b645d319db)
1f3df6b4fSBrad Bishop /**
2f3df6b4fSBrad Bishop  * Copyright © 2016 IBM Corporation
3f3df6b4fSBrad Bishop  *
4f3df6b4fSBrad Bishop  * Licensed under the Apache License, Version 2.0 (the "License");
5f3df6b4fSBrad Bishop  * you may not use this file except in compliance with the License.
6f3df6b4fSBrad Bishop  * You may obtain a copy of the License at
7f3df6b4fSBrad Bishop  *
8f3df6b4fSBrad Bishop  *     http://www.apache.org/licenses/LICENSE-2.0
9f3df6b4fSBrad Bishop  *
10f3df6b4fSBrad Bishop  * Unless required by applicable law or agreed to in writing, software
11f3df6b4fSBrad Bishop  * distributed under the License is distributed on an "AS IS" BASIS,
12f3df6b4fSBrad Bishop  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13f3df6b4fSBrad Bishop  * See the License for the specific language governing permissions and
14f3df6b4fSBrad Bishop  * limitations under the License.
15f3df6b4fSBrad Bishop  */
16f3df6b4fSBrad Bishop 
17043d3230SPatrick Venture #include "env.hpp"
18043d3230SPatrick Venture 
19f3df6b4fSBrad Bishop #include <cstdlib>
20*bd9bc00bSKun Yi #include <string>
219331ab78SPatrick Venture 
22043d3230SPatrick Venture namespace env
23043d3230SPatrick Venture {
247a5285deSPatrick Venture 
get(const char * key) const25*bd9bc00bSKun Yi const char* EnvImpl::get(const char* key) const
26a24c8808SPatrick Venture {
27*bd9bc00bSKun Yi     return std::getenv(key);
28a24c8808SPatrick Venture }
29a24c8808SPatrick Venture 
30*bd9bc00bSKun Yi EnvImpl env_impl;
3182d507d0SMatt Spinler 
327a5285deSPatrick Venture } // namespace env
33