blob: 2bca212792661a55f9345b284e92cacdc26b36c6 [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
Jorge E. Moreira721db102018-07-18 11:03:55 -070023enum LauncherExitCodes : int {
24 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,
Jorge E. Moreira721db102018-07-18 11:03:55 -070046};
47
Jorge E. Moreira50a07752018-07-18 18:49:04 -070048// Actions supported by the launcher server
49enum class LauncherAction : char {
50 kStop = 'X',
51};
52
53// Responses from the launcher server
54enum class LauncherResponse : char {
55 kSuccess = 'S',
56 kError = 'E',
57 kUnknownAction = 'U',
58};
59} // namespace cvd