Android-cuttlefish cvd tool
guest_config.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 <optional>
19#include <string>
20#include <vector>
21
27
28namespace cuttlefish {
29
34 bool hctr2_supported = false;
36 bool gfxstream_supported = false;
38 bool vhost_user_vsock = false;
41 bool mouse_supported = false;
42 bool gamepad_supported = false;
43 std::string ti50_emulator;
44 std::optional<std::string> custom_keyboard_config;
45 std::optional<std::string> domkey_mapping_config;
47 std::optional<bool> enforce_mac80211_hwsim;
49};
50
52 const BootImageFlag&, const KernelPathFlag& kernel_path,
53 const SystemImageDirFlag& system_image_dir);
54}
55
Definition: expected.h:86
Definition: boot_image.h:28
Definition: kernel_path.h:26
Definition: system_image_dir.h:25
Definition: alloc_utils.cpp:23
Result< std::vector< GuestConfig > > ReadGuestConfig(const BootImageFlag &boot_image, const KernelPathFlag &kernel_path, const SystemImageDirFlag &system_image_dir)
Definition: guest_config.cc:56
DeviceType
Definition: device_type.h:22
Arch
Definition: architecture.h:23
Definition: guest_config.h:30
int output_audio_streams_count
Definition: guest_config.h:46
bool mouse_supported
Definition: guest_config.h:41
bool gfxstream_gl_program_binary_link_status_supported
Definition: guest_config.h:37
Arch target_arch
Definition: guest_config.h:31
std::optional< std::string > custom_keyboard_config
Definition: guest_config.h:44
bool gamepad_supported
Definition: guest_config.h:42
bool bootconfig_supported
Definition: guest_config.h:33
std::string android_version_number
Definition: guest_config.h:35
std::optional< bool > enforce_mac80211_hwsim
Definition: guest_config.h:47
std::string ti50_emulator
Definition: guest_config.h:43
bool gfxstream_supported
Definition: guest_config.h:36
bool supports_bgra_framebuffers
Definition: guest_config.h:39
bool vhost_user_vsock
Definition: guest_config.h:38
std::optional< std::string > domkey_mapping_config
Definition: guest_config.h:45
int blank_data_image_mb
Definition: guest_config.h:48
DeviceType device_type
Definition: guest_config.h:32
bool hctr2_supported
Definition: guest_config.h:34
bool prefer_drm_virgl_when_supported
Definition: guest_config.h:40