blob: c7c172468c966fbdab1a6f22515253ddddf6757d [file] [log] [blame]
// Copyright 2017 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.
#include <cstdint>
#include <base/files/file_path.h>
namespace imageloader {
// Parses a mapper table entry for a device denoted by "name" to determine the
// loop device number.
// Returns true on success.
bool MapperParametersToLoop(const std::string& verity_mount_parameters,
int32_t* loop);
// Returns true if an ancestor-descendant relationship holds for the given
// paths.
bool IsAncestor(const base::FilePath& ancenstor,
const base::FilePath& descendant);
} // namespace imageloader