Android-cuttlefish cvd tool
misc_info.h
Go to the documentation of this file.
1//
2// Copyright (C) 2020 The Android Open Source Project
3//
4// Licensed under the Apache License, Version 2.0 (the "License");
5// you may not use this file except in compliance with the License.
6// You may obtain a copy of the License at
7//
8// http://www.apache.org/licenses/LICENSE-2.0
9//
10// Unless required by applicable law or agreed to in writing, software
11// distributed under the License is distributed on an "AS IS" BASIS,
12// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13// See the License for the specific language governing permissions and
14// limitations under the License.
15
16#pragma once
17
18#include <functional>
19#include <map>
20#include <set>
21#include <string>
22
25
26namespace cuttlefish {
27
28using MiscInfo = std::map<std::string, std::string, std::less<void>>;
29
30struct VbmetaArgs {
31 std::string algorithm;
32 std::string key_path;
33 std::vector<ChainPartition> chained_partitions;
34 std::vector<std::string> included_partitions;
35 std::vector<std::string> extra_arguments;
36};
37
39 const MiscInfo& vendor_info, const MiscInfo& system_info,
40 const std::set<std::string>& extracted_images);
42 const MiscInfo& vendor_info, const MiscInfo& system_info,
43 const MiscInfo& combined_dp_info,
44 const std::vector<std::string>& system_partitions);
46 const std::string& image_path);
47
48} // namespace cuttlefish
Definition: alloc_driver.h:20
Result< MiscInfo > MergeMiscInfos(const MiscInfo &vendor_info, const MiscInfo &system_info, const MiscInfo &combined_dp_info, const std::vector< std::string > &system_partitions)
Definition: misc_info.cc:214
Result< VbmetaArgs > GetVbmetaArgs(const MiscInfo &misc_info, const std::string &image_path)
Definition: misc_info.cc:250
std::map< std::string, std::string, std::less< void > > MiscInfo
Definition: misc_info.h:28
Result< MiscInfo > GetCombinedDynamicPartitions(const MiscInfo &vendor_info, const MiscInfo &system_info, const std::set< std::string > &extracted_images)
Definition: misc_info.cc:152
tl::expected< T, StackTraceError > Result
Definition: result_type.h:30
Definition: misc_info.h:30
std::vector< std::string > extra_arguments
Definition: misc_info.h:35
std::string key_path
Definition: misc_info.h:32
std::vector< std::string > included_partitions
Definition: misc_info.h:34
std::vector< ChainPartition > chained_partitions
Definition: misc_info.h:33
std::string algorithm
Definition: misc_info.h:31