| #pragma once |
| |
| #include <functional> |
| |
| #include "common/libs/utils/subprocess.h" |
| #include "host/commands/launch/process_monitor.h" |
| #include "host/libs/config/cuttlefish_config.h" |
| |
| int GetHostPort(); |
| bool AdbUsbEnabled(const vsoc::CuttlefishConfig& config); |
| void ValidateAdbModeFlag(const vsoc::CuttlefishConfig& config); |
| |
| cvd::Command GetIvServerCommand(const vsoc::CuttlefishConfig& config); |
| cvd::Command GetKernelLogMonitorCommand(const vsoc::CuttlefishConfig& config, |
| cvd::SharedFD* boot_events_pipe); |
| void LaunchLogcatReceiverIfEnabled(const vsoc::CuttlefishConfig& config, |
| cvd::ProcessMonitor* process_monitor); |
| void LaunchUsbServerIfEnabled(const vsoc::CuttlefishConfig& config, |
| cvd::ProcessMonitor* process_monitor); |
| void LaunchVNCServerIfEnabled(const vsoc::CuttlefishConfig& config, |
| cvd::ProcessMonitor* process_monitor, |
| std::function<bool(cvd::MonitorEntry*)> callback); |
| void LaunchStreamAudioIfEnabled(const vsoc::CuttlefishConfig& config, |
| cvd::ProcessMonitor* process_monitor, |
| std::function<bool(cvd::MonitorEntry*)> callback); |
| void LaunchAdbConnectorIfEnabled(cvd::ProcessMonitor* process_monitor, |
| const vsoc::CuttlefishConfig& config); |
| void LaunchSocketForwardProxyIfEnabled(cvd::ProcessMonitor* process_monitor, |
| const vsoc::CuttlefishConfig& config); |
| void LaunchSocketVsockProxyIfEnabled(cvd::ProcessMonitor* process_monitor, |
| const vsoc::CuttlefishConfig& config); |
| void LaunchIvServerIfEnabled(cvd::ProcessMonitor* process_monitor, |
| const vsoc::CuttlefishConfig& config); |