blob: 73c3c9264970a3ded531d6ea69f443737634fdf5 [file] [log] [blame]
Ben Chan8fb742b2014-04-28 23:46:57 -07001// Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef CROS_DISKS_MOUNT_ENTRY_H_
6#define CROS_DISKS_MOUNT_ENTRY_H_
7
8#include <string>
Ben Chan8fb742b2014-04-28 23:46:57 -07009
Ben Chan8fb742b2014-04-28 23:46:57 -070010#include <chromeos/dbus/service_constants.h>
Ben Chan8fb742b2014-04-28 23:46:57 -070011
12namespace cros_disks {
13
Ben Chan0214e302017-10-17 15:39:16 -070014struct MountEntry {
Ben Chan8fb742b2014-04-28 23:46:57 -070015 public:
16 MountEntry(MountErrorType error_type,
17 const std::string& source_path,
18 MountSourceType source_type,
Tatsuhisa Yamaguchi5a6a3032016-08-19 20:03:54 +090019 const std::string& mount_path,
Ben Chan0214e302017-10-17 15:39:16 -070020 bool is_read_only)
21 : error_type(error_type),
22 source_path(source_path),
23 source_type(source_type),
24 mount_path(mount_path),
25 is_read_only(is_read_only) {}
26
Ben Chan40ecb9b2017-03-08 11:26:07 -080027 ~MountEntry() = default;
Ben Chan8fb742b2014-04-28 23:46:57 -070028
Ben Chan0214e302017-10-17 15:39:16 -070029 MountErrorType error_type;
30 std::string source_path;
31 MountSourceType source_type;
32 std::string mount_path;
33 bool is_read_only;
Ben Chan8fb742b2014-04-28 23:46:57 -070034};
35
36} // namespace cros_disks
37
38#endif // CROS_DISKS_MOUNT_ENTRY_H_