blob: 714b5bd1310510efe0968d3a7c8c228c35dd0f56 [file] [log] [blame]
Cody Schuffelen5bc697c2019-01-28 21:05:29 -08001#pragma once
2
Cody Schuffelen17b34722019-01-28 22:57:14 -08003#include <functional>
4
Cody Schuffelen5bc697c2019-01-28 21:05:29 -08005#include "common/libs/utils/subprocess.h"
Cody Schuffelen147b88e2019-09-09 16:00:11 -07006#include "host/commands/run_cvd/process_monitor.h"
Cody Schuffelen5bc697c2019-01-28 21:05:29 -08007#include "host/libs/config/cuttlefish_config.h"
8
Cody Schuffelen134ff032019-11-22 00:25:32 -08009cvd::Command GetIvServerCommand(const vsoc::CuttlefishConfig& config);
Jorge E. Moreira277e1c42019-05-06 17:24:27 -070010std::vector <cvd::SharedFD> LaunchKernelLogMonitor(
11 const vsoc::CuttlefishConfig& config,
12 cvd::ProcessMonitor* process_monitor,
13 unsigned int number_of_event_pipes);
Jorge E. Moreirafd10cae2019-02-19 15:35:42 -080014void LaunchLogcatReceiverIfEnabled(const vsoc::CuttlefishConfig& config,
15 cvd::ProcessMonitor* process_monitor);
Jorge E. Moreiraf1f7cb32019-04-15 18:44:41 -070016void LaunchConfigServer(const vsoc::CuttlefishConfig& config,
17 cvd::ProcessMonitor* process_monitor);
Cody Schuffelen660d9e82019-01-29 16:33:33 -080018void LaunchUsbServerIfEnabled(const vsoc::CuttlefishConfig& config,
19 cvd::ProcessMonitor* process_monitor);
Jorge E. Moreira7e1df152019-05-14 15:05:33 -070020bool LaunchVNCServerIfEnabled(const vsoc::CuttlefishConfig& config,
Cody Schuffelen17b34722019-01-28 22:57:14 -080021 cvd::ProcessMonitor* process_monitor,
22 std::function<bool(cvd::MonitorEntry*)> callback);
Cody Schuffelen134ff032019-11-22 00:25:32 -080023void LaunchStreamAudioIfEnabled(const vsoc::CuttlefishConfig& config,
24 cvd::ProcessMonitor* process_monitor,
25 std::function<bool(cvd::MonitorEntry*)> callback);
Cody Schuffelen660d9e82019-01-29 16:33:33 -080026void LaunchAdbConnectorIfEnabled(cvd::ProcessMonitor* process_monitor,
Jorge E. Moreira9ec15852019-05-02 17:52:58 -070027 const vsoc::CuttlefishConfig& config,
28 cvd::SharedFD adbd_events_pipe);
Cody Schuffelen134ff032019-11-22 00:25:32 -080029void LaunchSocketForwardProxyIfEnabled(cvd::ProcessMonitor* process_monitor,
30 const vsoc::CuttlefishConfig& config);
Cody Schuffelen660d9e82019-01-29 16:33:33 -080031void LaunchSocketVsockProxyIfEnabled(cvd::ProcessMonitor* process_monitor,
32 const vsoc::CuttlefishConfig& config);
Cody Schuffelen134ff032019-11-22 00:25:32 -080033void LaunchIvServerIfEnabled(cvd::ProcessMonitor* process_monitor,
34 const vsoc::CuttlefishConfig& config);
Ram Muthiah792e2ad2019-04-19 11:19:46 -070035void LaunchTombstoneReceiverIfEnabled(const vsoc::CuttlefishConfig& config,
Cody Schuffelen75ef8872019-09-06 17:35:54 -070036 cvd::ProcessMonitor* process_monitor);