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
60Result<void> CreateCompositeDisk(std::vector<ImagePartition> partitions,
61 const std::string& header_file,
62 const std::string& footer_file,
63 const std::string& output_composite_path,
64 bool read_only);
65}
Definition: expected.h:86
uint32_t size
Definition: io.h:2
Definition: alloc_utils.cpp:23
Result< void > CreateCompositeDisk(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:343
Result< void > AggregateImage(const std::vector< ImagePartition > &partitions, const std::string &output_path)
Definition: image_aggregator.cc:303
uint64_t AlignToPartitionSize(uint64_t size)
Definition: image_aggregator.cc:299
GptPartitionType
Definition: gpt_type_guid.h:22
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