Android-cuttlefish cvd tool
defs.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
20namespace cuttlefish {
21
22enum RunnerExitCodes : int {
23 kSuccess = 0,
37 kServerError = 14,
50};
51
52// Actions supported by the launcher server
53enum class LauncherAction : char {
54 kExtended = 'A',
55 kFail = 'F',
56 kPowerwash = 'P',
57 kRestart = 'R',
58 kStatus = 'I',
59 kStop = 'X',
60};
61
62// Responses from the launcher server
63enum class LauncherResponse : char {
64 kSuccess = 'S',
65 kError = 'E',
66 kUnknownAction = 'U',
67};
68
69std::ostream& operator<<(std::ostream&, LauncherResponse);
70
71} // namespace cuttlefish
Definition: alloc_driver.h:20
LauncherAction
Definition: defs.h:53
@ kExtended
expect additional information to follow
RunnerExitCodes
Definition: defs.h:22
@ kLogcatServerError
Definition: defs.h:41
@ kKernelDecompressError
Definition: defs.h:40
@ kCuttlefishConfigurationInitError
Definition: defs.h:26
@ kVMCreationError
Definition: defs.h:32
@ kInitRamFsConcatError
Definition: defs.h:45
@ kProcessGroupError
Definition: defs.h:35
@ kTombstoneDirCreationError
Definition: defs.h:44
@ kTapDeviceInUse
Definition: defs.h:46
@ kCuttlefishConfigurationSaveError
Definition: defs.h:30
@ kUsbV1SocketError
Definition: defs.h:38
@ kInvalidHostConfiguration
Definition: defs.h:25
@ kSocketProxyServerError
Definition: defs.h:49
@ kTpmPassthroughError
Definition: defs.h:47
@ kInstanceDirCreationError
Definition: defs.h:27
@ kTombstoneServerError
Definition: defs.h:43
@ kArgumentParsingError
Definition: defs.h:24
@ kSuccess
Definition: channel_monitor.h:30
@ kConfigServerError
Definition: defs.h:42
@ kVirtualDeviceBootFailed
Definition: defs.h:34
@ kMonitorCreationFailed
Definition: defs.h:36
@ kPipeIOError
Definition: defs.h:33
@ kModemSimulatorServerError
Definition: defs.h:48
@ kBootImageUnpackError
Definition: defs.h:29
@ kE2eTestFailed
Definition: defs.h:39
@ kPrioFilesCleanupError
Definition: defs.h:28
@ kDaemonizationError
Definition: defs.h:31
@ kServerError
Definition: channel_monitor.h:32
LauncherResponse
Definition: defs.h:63
std::ostream & operator<<(std::ostream &out, DeviceType device_type)
Definition: device_type.cpp:72