blob: 48ce9d74660c1d6a635a2cfc222c29d7c0fca245 [file] [log] [blame]
// Copyright 2016 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Library to provide access to the Chrome OS model configuration
#include "chromeos-config/libcros_config/cros_config_impl.h"
#include <cstdlib>
#include "chromeos-config/libcros_config/cros_config_interface.h"
namespace brillo {
bool CrosConfigInterface::IsLoggingEnabled() {
static const char* logging_var = getenv("CROS_CONFIG_DEBUG");
static bool enabled = logging_var && *logging_var;
return enabled;
CrosConfigImpl::CrosConfigImpl() {}
CrosConfigImpl::~CrosConfigImpl() {}
bool CrosConfigImpl::InitCheck() const {
if (!inited_) {
<< "Init*() must be called before accessing configuration";
return false;
return true;
} // namespace brillo