Android-cuttlefish cvd tool
vmm_mode.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2018 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 <ostream>
19#include <string>
20#include <string_view>
21
22#include <fmt/ostream.h>
23
25
26namespace cuttlefish {
27
28enum class VmmMode {
29 kUnknown,
30 kCrosvm,
31 kGem5,
32 kQemu,
33};
34
35std::ostream& operator<<(std::ostream&, VmmMode);
36std::string ToString(VmmMode mode);
37Result<VmmMode> ParseVmm(std::string_view);
38
39} // namespace cuttlefish
40
41#if FMT_VERSION >= 90000
42template <>
43struct fmt::formatter<cuttlefish::VmmMode> : ostream_formatter {};
44#endif
Definition: alloc_utils.cpp:23
std::string ToString(GuestHwuiRenderer renderer)
Definition: guest_hwui_renderer.cc:33
VmmMode
Definition: vmm_mode.h:28
std::ostream & operator<<(std::ostream &out, Arch arch)
Definition: architecture.cpp:67
Result< VmmMode > ParseVmm(std::string_view str)
Definition: vmm_mode.cc:49