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 <map>
19#include <set>
20#include <string>
21
24
25namespace cuttlefish {
26
27using MiscInfo = std::map<std::string, std::string>;
28
29struct VbmetaArgs {
30 std::string algorithm;
31 std::string key_path;
32 std::vector<ChainPartition> chained_partitions;
33 std::vector<std::string> included_partitions;
34 std::vector<std::string> extra_arguments;
35};
36
38 const MiscInfo& vendor_info, const MiscInfo& system_info,
39 const std::set<std::string>& extracted_images);
41 const MiscInfo& vendor_info, const MiscInfo& system_info,
42 const MiscInfo& combined_dp_info,
43 const std::vector<std::string>& system_partitions);
45 const std::string& image_path);
46
47} // namespace cuttlefish
Definition: expected.h:86
Definition: alloc_utils.cpp:23
std::map< std::string, std::string > MiscInfo
Definition: misc_info.h:27
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:209
Result< VbmetaArgs > GetVbmetaArgs(const MiscInfo &misc_info, const std::string &image_path)
Definition: misc_info.cc:245
Result< MiscInfo > GetCombinedDynamicPartitions(const MiscInfo &vendor_info, const MiscInfo &system_info, const std::set< std::string > &extracted_images)
Definition: misc_info.cc:149
Definition: misc_info.h:29
std::vector< std::string > extra_arguments
Definition: misc_info.h:34
std::string key_path
Definition: misc_info.h:31
std::vector< std::string > included_partitions
Definition: misc_info.h:33
std::vector< ChainPartition > chained_partitions
Definition: misc_info.h:32
std::string algorithm
Definition: misc_info.h:30