Android-cuttlefish cvd tool
flags.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
18#include <string>
19
20#include <fruit/fruit.h>
21
33
34namespace cuttlefish {
35
36Result<void> SetFlagDefaultsForVmm(
37 const std::vector<GuestConfig>& guest_configs,
38 const SystemImageDirFlag& system_image_dir,
39 const VmManagerFlag& vm_manager_flag);
40// Must be called after ParseCommandLineFlags.
41Result<CuttlefishConfig> InitializeCuttlefishConfiguration(
42 const std::string& root_dir, const std::vector<GuestConfig>& guest_configs,
43 fruit::Injector<>& injector, const FetcherConfig& fetcher_config,
44 const BootImageFlag&, const InitramfsPathFlag&,
45 const KernelPathFlag& kernel_path, const SuperImageFlag&,
46 const SystemImageDirFlag&, const VendorBootImageFlag&,
47 const VmManagerFlag&);
48
49std::string GetConfigFilePath(const CuttlefishConfig& config);
50
51} // namespace cuttlefish
Definition: alloc_utils.cpp:23
std::string GetConfigFilePath(const CuttlefishConfig &config)
Definition: flags.cc:1396
Result< CuttlefishConfig > InitializeCuttlefishConfiguration(const std::string &root_dir, const std::vector< GuestConfig > &guest_configs, fruit::Injector<> &injector, const FetcherConfig &fetcher_config, const BootImageFlag &boot_image, const InitramfsPathFlag &initramfs_path, const KernelPathFlag &kernel_path, const SuperImageFlag &super_image, const SystemImageDirFlag &system_image_dir, const VendorBootImageFlag &vendor_boot_image, const VmManagerFlag &vm_manager_flag)
Definition: flags.cc:318
Result< void > SetFlagDefaultsForVmm(const std::vector< GuestConfig > &guest_configs, const SystemImageDirFlag &system_image_dir, const VmManagerFlag &vm_manager_flag)
Definition: flags.cc:1365