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