// // Copyright (C) 2019 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #pragma once #include #include #include "common/libs/fs/shared_fd.h" #include "common/libs/utils/subprocess.h" #include "host/libs/config/cuttlefish_config.h" namespace cuttlefish { struct KernelLogMonitorData { std::vector pipes; std::vector commands; }; KernelLogMonitorData LaunchKernelLogMonitor(const CuttlefishConfig& config, unsigned int number_of_event_pipes); std::vector LaunchAdbConnectorIfEnabled( const CuttlefishConfig& config); std::vector LaunchSocketVsockProxyIfEnabled( const CuttlefishConfig& config, SharedFD adbd_events_pipe); std::vector LaunchModemSimulatorIfEnabled( const CuttlefishConfig& config); std::vector LaunchVNCServer(const CuttlefishConfig& config); std::vector LaunchTombstoneReceiver(const CuttlefishConfig& config); std::vector LaunchRootCanal(const CuttlefishConfig& config); std::vector LaunchLogcatReceiver(const CuttlefishConfig& config); std::vector LaunchConfigServer(const CuttlefishConfig& config); std::vector LaunchWebRTC(const CuttlefishConfig& config, SharedFD kernel_log_events_pipe); std::vector LaunchMetrics(); std::vector LaunchGnssGrpcProxyServerIfEnabled( const CuttlefishConfig& config); std::vector LaunchSecureEnvironment(const CuttlefishConfig& config); std::vector LaunchBluetoothConnector(const CuttlefishConfig& config); std::vector LaunchVehicleHalServerIfEnabled( const CuttlefishConfig& config); std::vector LaunchConsoleForwarderIfEnabled( const CuttlefishConfig& config); } // namespace cuttlefish