blob: daf88686fa77aa372d39717b309c4be66234d175 [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
18namespace cvd {
19
Jorge E. Moreirafd10cae2019-02-19 15:35:42 -080020constexpr char kLogcatSerialMode[] = "serial";
21constexpr char kLogcatVsockMode[] = "vsock";
22
Cody Schuffelena9d9a862019-09-10 16:16:06 -070023enum RunnerExitCodes : int {
Jorge E. Moreira721db102018-07-18 11:03:55 -070024 kSuccess = 0,
25 kArgumentParsingError = 1,
26 kInvalidHostConfiguration = 2,
27 kCuttlefishConfigurationInitError = 3,
28 kInstanceDirCreationError = 4,
29 kPrioFilesCleanupError = 5,
30 kBootImageUnpackError = 6,
31 kCuttlefishConfigurationSaveError = 7,
32 kDaemonizationError = 8,
33 kVMCreationError = 9,
34 kPipeIOError = 10,
35 kVirtualDeviceBootFailed = 11,
36 kProcessGroupError = 12,
Jorge E. Moreira50a07752018-07-18 18:49:04 -070037 kMonitorCreationFailed = 13,
38 kServerError = 14,
Jorge E. Moreirab5a71d72018-07-22 23:01:20 -070039 kUsbV1SocketError = 15,
Jorge E. Moreira734e1d12018-11-07 20:30:38 -080040 kE2eTestFailed = 16,
Jorge E. Moreira80ddd7f2019-02-04 16:30:13 -080041 kKernelDecompressError = 17,
Jorge E. Moreirafd10cae2019-02-19 15:35:42 -080042 kLogcatServerError = 18,
Jorge E. Moreiraf1f7cb32019-04-15 18:44:41 -070043 kConfigServerError = 19,
Ram Muthiah792e2ad2019-04-19 11:19:46 -070044 kTombstoneServerError = 20,
45 kTombstoneDirCreationError = 21,
Ram Muthiahaad97c52019-08-14 17:05:01 -070046 kInitRamFsConcatError = 22,
Cody Schuffelen971842d2019-12-10 16:33:11 -080047 kTapDeviceInUse = 23,
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 {
Cody Schuffelen4f8e3302019-10-23 11:21:10 -070052 kStatus = 'I',
Jorge E. Moreira50a07752018-07-18 18:49:04 -070053 kStop = 'X',
54};
55
56// Responses from the launcher server
57enum class LauncherResponse : char {
58 kSuccess = 'S',
59 kError = 'E',
60 kUnknownAction = 'U',
61};
62} // namespace cvd