| // Copyright 2019 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 DLCSERVICE_TYPES_H_ |
| #define DLCSERVICE_TYPES_H_ |
| |
| #include <map> |
| #include <set> |
| #include <string> |
| |
| #include <dlcservice/proto_bindings/dlcservice.pb.h> |
| |
| namespace dlcservice { |
| |
| // |DlcId| is the ID of the DLC. |
| using DlcId = std::string; |
| |
| // |DlcRoot| is the root within the mount point of the DLC. |
| using DlcRoot = std::string; |
| |
| // |DlcInfo| holds information related to a DLC. |
| struct DlcInfo { |
| explicit DlcInfo(const DlcState::State& state_in = DlcState::NOT_INSTALLED, |
| const DlcRoot& root_in = ""); |
| DlcState state; |
| DlcRoot root; |
| }; |
| |
| using DlcMap = std::map<DlcId, DlcInfo>; |
| using DlcSet = std::set<DlcId>; |
| |
| } // namespace dlcservice |
| |
| #endif // DLCSERVICE_TYPES_H_ |