Jorge E. Moreira | 721db10 | 2018-07-18 11:03:55 -0700 | [diff] [blame] | 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 | |
Jorge E. Moreira | fd10cae | 2019-02-19 15:35:42 -0800 | [diff] [blame] | 20 | constexpr char kLogcatSerialMode[] = "serial"; |
| 21 | constexpr char kLogcatVsockMode[] = "vsock"; |
| 22 | |
Jorge E. Moreira | 721db10 | 2018-07-18 11:03:55 -0700 | [diff] [blame] | 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, |
Jorge E. Moreira | 50a0775 | 2018-07-18 18:49:04 -0700 | [diff] [blame] | 37 | kMonitorCreationFailed = 13, |
| 38 | kServerError = 14, |
Jorge E. Moreira | b5a71d7 | 2018-07-22 23:01:20 -0700 | [diff] [blame] | 39 | kUsbV1SocketError = 15, |
Jorge E. Moreira | 734e1d1 | 2018-11-07 20:30:38 -0800 | [diff] [blame] | 40 | kE2eTestFailed = 16, |
Jorge E. Moreira | 80ddd7f | 2019-02-04 16:30:13 -0800 | [diff] [blame] | 41 | kKernelDecompressError = 17, |
Jorge E. Moreira | fd10cae | 2019-02-19 15:35:42 -0800 | [diff] [blame] | 42 | kLogcatServerError = 18, |
Jorge E. Moreira | f1f7cb3 | 2019-04-15 18:44:41 -0700 | [diff] [blame] | 43 | kConfigServerError = 19, |
Ram Muthiah | 792e2ad | 2019-04-19 11:19:46 -0700 | [diff] [blame] | 44 | kTombstoneServerError = 20, |
| 45 | kTombstoneDirCreationError = 21, |
Jorge E. Moreira | 721db10 | 2018-07-18 11:03:55 -0700 | [diff] [blame] | 46 | }; |
| 47 | |
Jorge E. Moreira | 50a0775 | 2018-07-18 18:49:04 -0700 | [diff] [blame] | 48 | // Actions supported by the launcher server |
| 49 | enum class LauncherAction : char { |
| 50 | kStop = 'X', |
| 51 | }; |
| 52 | |
| 53 | // Responses from the launcher server |
| 54 | enum class LauncherResponse : char { |
| 55 | kSuccess = 'S', |
| 56 | kError = 'E', |
| 57 | kUnknownAction = 'U', |
| 58 | }; |
| 59 | } // namespace cvd |