• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 namespace cvd {
19 
20 constexpr char kLogcatSerialMode[] = "serial";
21 constexpr char kLogcatVsockMode[] = "vsock";
22 
23 enum 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,
37   kMonitorCreationFailed = 13,
38   kServerError = 14,
39   kUsbV1SocketError = 15,
40   kE2eTestFailed = 16,
41   kKernelDecompressError = 17,
42   kLogcatServerError = 18,
43 };
44 
45 // Actions supported by the launcher server
46 enum class LauncherAction : char {
47   kStop = 'X',
48 };
49 
50 // Responses from the launcher server
51 enum class LauncherResponse : char {
52   kSuccess = 'S',
53   kError = 'E',
54   kUnknownAction = 'U',
55 };
56 }  // namespace cvd
57