blob: d76449aa607bf662e1e9db5b3f43a4cd6e4c1178 [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FUCHSIA_BASE_CONFIG_READER_H_
#define FUCHSIA_BASE_CONFIG_READER_H_
#include "base/files/file_path.h"
#include "base/values.h"
namespace cr_fuchsia {
// Loads and parses configuration data from the environment.
// Returns a null value if the file(s) do not exist.
// CHECK-fails if the file(s) are present but not parseable.
const base::Optional<base::Value>& LoadPackageConfig();
} // namespace cr_fuchsia
#endif // FUCHSIA_BASE_CONFIG_READER_H_