Cody Schuffelen | 5bc697c | 2019-01-28 21:05:29 -0800 | [diff] [blame] | 1 | #pragma once |
| 2 | |
Cody Schuffelen | 17b3472 | 2019-01-28 22:57:14 -0800 | [diff] [blame] | 3 | #include <functional> |
| 4 | |
Cody Schuffelen | 5bc697c | 2019-01-28 21:05:29 -0800 | [diff] [blame] | 5 | #include "common/libs/utils/subprocess.h" |
Cody Schuffelen | 147b88e | 2019-09-09 16:00:11 -0700 | [diff] [blame] | 6 | #include "host/commands/run_cvd/process_monitor.h" |
Cody Schuffelen | 5bc697c | 2019-01-28 21:05:29 -0800 | [diff] [blame] | 7 | #include "host/libs/config/cuttlefish_config.h" |
| 8 | |
Cody Schuffelen | 134ff03 | 2019-11-22 00:25:32 -0800 | [diff] [blame^] | 9 | cvd::Command GetIvServerCommand(const vsoc::CuttlefishConfig& config); |
Jorge E. Moreira | 277e1c4 | 2019-05-06 17:24:27 -0700 | [diff] [blame] | 10 | std::vector <cvd::SharedFD> LaunchKernelLogMonitor( |
| 11 | const vsoc::CuttlefishConfig& config, |
| 12 | cvd::ProcessMonitor* process_monitor, |
| 13 | unsigned int number_of_event_pipes); |
Jorge E. Moreira | fd10cae | 2019-02-19 15:35:42 -0800 | [diff] [blame] | 14 | void LaunchLogcatReceiverIfEnabled(const vsoc::CuttlefishConfig& config, |
| 15 | cvd::ProcessMonitor* process_monitor); |
Jorge E. Moreira | f1f7cb3 | 2019-04-15 18:44:41 -0700 | [diff] [blame] | 16 | void LaunchConfigServer(const vsoc::CuttlefishConfig& config, |
| 17 | cvd::ProcessMonitor* process_monitor); |
Cody Schuffelen | 660d9e8 | 2019-01-29 16:33:33 -0800 | [diff] [blame] | 18 | void LaunchUsbServerIfEnabled(const vsoc::CuttlefishConfig& config, |
| 19 | cvd::ProcessMonitor* process_monitor); |
Jorge E. Moreira | 7e1df15 | 2019-05-14 15:05:33 -0700 | [diff] [blame] | 20 | bool LaunchVNCServerIfEnabled(const vsoc::CuttlefishConfig& config, |
Cody Schuffelen | 17b3472 | 2019-01-28 22:57:14 -0800 | [diff] [blame] | 21 | cvd::ProcessMonitor* process_monitor, |
| 22 | std::function<bool(cvd::MonitorEntry*)> callback); |
Cody Schuffelen | 134ff03 | 2019-11-22 00:25:32 -0800 | [diff] [blame^] | 23 | void LaunchStreamAudioIfEnabled(const vsoc::CuttlefishConfig& config, |
| 24 | cvd::ProcessMonitor* process_monitor, |
| 25 | std::function<bool(cvd::MonitorEntry*)> callback); |
Cody Schuffelen | 660d9e8 | 2019-01-29 16:33:33 -0800 | [diff] [blame] | 26 | void LaunchAdbConnectorIfEnabled(cvd::ProcessMonitor* process_monitor, |
Jorge E. Moreira | 9ec1585 | 2019-05-02 17:52:58 -0700 | [diff] [blame] | 27 | const vsoc::CuttlefishConfig& config, |
| 28 | cvd::SharedFD adbd_events_pipe); |
Cody Schuffelen | 134ff03 | 2019-11-22 00:25:32 -0800 | [diff] [blame^] | 29 | void LaunchSocketForwardProxyIfEnabled(cvd::ProcessMonitor* process_monitor, |
| 30 | const vsoc::CuttlefishConfig& config); |
Cody Schuffelen | 660d9e8 | 2019-01-29 16:33:33 -0800 | [diff] [blame] | 31 | void LaunchSocketVsockProxyIfEnabled(cvd::ProcessMonitor* process_monitor, |
| 32 | const vsoc::CuttlefishConfig& config); |
Cody Schuffelen | 134ff03 | 2019-11-22 00:25:32 -0800 | [diff] [blame^] | 33 | void LaunchIvServerIfEnabled(cvd::ProcessMonitor* process_monitor, |
| 34 | const vsoc::CuttlefishConfig& config); |
Ram Muthiah | 792e2ad | 2019-04-19 11:19:46 -0700 | [diff] [blame] | 35 | void LaunchTombstoneReceiverIfEnabled(const vsoc::CuttlefishConfig& config, |
Cody Schuffelen | 75ef887 | 2019-09-06 17:35:54 -0700 | [diff] [blame] | 36 | cvd::ProcessMonitor* process_monitor); |