Android-cuttlefish cvd tool
image_aggregator.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2019 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
22#include <stdint.h>
23
24#include <string>
25#include <vector>
26
29
30namespace cuttlefish {
31
33 std::string label;
34 std::string image_file_path;
36};
37
38uint64_t AlignToPartitionSize(uint64_t size);
39
45Result<void> AggregateImage(const std::vector<ImagePartition>& partitions,
46 const std::string& output_path);
47
61 std::vector<ImagePartition> partitions, const std::string& header_file,
62 const std::string& footer_file, const std::string& output_composite_path,
63 bool read_only);
64} // namespace cuttlefish
uint32_t size
Definition: io.h:2
Definition: alloc_driver.h:20
Result< void > AggregateImage(const std::vector< ImagePartition > &partitions, const std::string &output_path)
Definition: image_aggregator.cc:310
uint64_t AlignToPartitionSize(uint64_t size)
Definition: image_aggregator.cc:306
tl::expected< T, StackTraceError > Result
Definition: result_type.h:30
Result< void > CreateOrUpdateCompositeDisk(std::vector< ImagePartition > partitions, const std::string &header_file, const std::string &footer_file, const std::string &output_composite_path, bool read_only)
Definition: image_aggregator.cc:345
GptPartitionType
Definition: gpt_type_guid.h:24
Definition: image_aggregator.h:32
GptPartitionType type
Definition: image_aggregator.h:35
std::string image_file_path
Definition: image_aggregator.h:34
std::string label
Definition: image_aggregator.h:33