blob: fafc54f1efbe003ae02e15fd7a9005b4727e7250 [file] [log] [blame]
// Copyright 2021 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.
#ifndef SECANOMALYD_MOUNTS_H_
#define SECANOMALYD_MOUNTS_H_
#include <optional>
#include <string>
#include <vector>
#include "secanomalyd/mount_entry.h"
namespace secanomalyd {
using MountEntries = std::vector<MountEntry>;
using MaybeMountEntries = std::optional<MountEntries>;
enum class MountFilter { kAll = 0, kUploadableOnly };
MaybeMountEntries ReadMounts(MountFilter filter);
// Used mostly for testing.
MaybeMountEntries ReadMountsFromString(const std::string& mounts,
MountFilter filter);
} // namespace secanomalyd
#endif // SECANOMALYD_MOUNTS_H_