blob: b51e894517c71eca380fdb41f351fed064180b40 [file] [log] [blame]
Jorge E. Moreira721db102018-07-18 11:03:55 -07001/*
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
A. Cody Schuffelen51c5e5e2020-06-22 22:43:37 +000018namespace cuttlefish {
Jorge E. Moreira721db102018-07-18 11:03:55 -070019
Cody Schuffelena9d9a862019-09-10 16:16:06 -070020enum RunnerExitCodes : int {
Jorge E. Moreira721db102018-07-18 11:03:55 -070021 kSuccess = 0,
22 kArgumentParsingError = 1,
23 kInvalidHostConfiguration = 2,
24 kCuttlefishConfigurationInitError = 3,
25 kInstanceDirCreationError = 4,
26 kPrioFilesCleanupError = 5,
27 kBootImageUnpackError = 6,
28 kCuttlefishConfigurationSaveError = 7,
29 kDaemonizationError = 8,
30 kVMCreationError = 9,
31 kPipeIOError = 10,
32 kVirtualDeviceBootFailed = 11,
33 kProcessGroupError = 12,
Jorge E. Moreira50a07752018-07-18 18:49:04 -070034 kMonitorCreationFailed = 13,
35 kServerError = 14,
Jorge E. Moreirab5a71d72018-07-22 23:01:20 -070036 kUsbV1SocketError = 15,
Jorge E. Moreira734e1d12018-11-07 20:30:38 -080037 kE2eTestFailed = 16,
Jorge E. Moreira80ddd7f2019-02-04 16:30:13 -080038 kKernelDecompressError = 17,
Jorge E. Moreirafd10cae2019-02-19 15:35:42 -080039 kLogcatServerError = 18,
Jorge E. Moreiraf1f7cb32019-04-15 18:44:41 -070040 kConfigServerError = 19,
Ram Muthiah792e2ad2019-04-19 11:19:46 -070041 kTombstoneServerError = 20,
42 kTombstoneDirCreationError = 21,
Ram Muthiahaad97c52019-08-14 17:05:01 -070043 kInitRamFsConcatError = 22,
Cody Schuffelen971842d2019-12-10 16:33:11 -080044 kTapDeviceInUse = 23,
A. Cody Schuffelen3aaef4f2020-02-28 15:17:51 -080045 kTpmPassthroughError = 24,
Yan Cao9e560e32020-07-29 16:33:06 -070046 kModemSimulatorServerError = 25,
Jorge E. Moreira7dc223a2021-04-26 16:42:16 -070047 kSocketProxyServerError = 26,
Jorge E. Moreira721db102018-07-18 11:03:55 -070048};
49
Jorge E. Moreira50a07752018-07-18 18:49:04 -070050// Actions supported by the launcher server
51enum class LauncherAction : char {
A. Cody Schuffelen4c923dc2020-07-15 19:29:44 -070052 kPowerwash = 'P',
A. Cody Schuffelen55666fb2021-01-13 16:31:13 -080053 kRestart = 'R',
Cody Schuffelen4f8e3302019-10-23 11:21:10 -070054 kStatus = 'I',
Jorge E. Moreira50a07752018-07-18 18:49:04 -070055 kStop = 'X',
56};
57
58// Responses from the launcher server
59enum class LauncherResponse : char {
60 kSuccess = 'S',
61 kError = 'E',
62 kUnknownAction = 'U',
63};
A. Cody Schuffelen51c5e5e2020-06-22 22:43:37 +000064} // namespace cuttlefish