diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2024-03-19 08:16:17 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2024-03-22 07:37:09 +0200 |
commit | 4ec9106cdcce82d2f560f201b7f40691f5455da8 (patch) | |
tree | e6749078f367be71009b52ed3155b4db69bc696a /bbot/agent/machine.hxx | |
parent | 78bb97e255c946f3235dfe7cb50487328e9d60e0 (diff) |
Implement auxiliary machine support in bbot-agent
Diffstat (limited to 'bbot/agent/machine.hxx')
-rw-r--r-- | bbot/agent/machine.hxx | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/bbot/agent/machine.hxx b/bbot/agent/machine.hxx index 0bb74b9..13646db 100644 --- a/bbot/agent/machine.hxx +++ b/bbot/agent/machine.hxx @@ -78,20 +78,28 @@ namespace bbot class machine_manifest; + // The machine number should be between 0-9 with 0 for the build machine and + // 1-9 for the auxiliary machines. + // + // Note that tftp_port is not a base (in other words, it is expected to + // already be appropriately offset). + // unique_ptr<machine> start_machine (const dir_path&, const machine_manifest&, + uint16_t machine_num, + size_t cpus, + size_t ram, // In KiB. const optional<string>& mac, const string& br_iface, uint16_t tftp_port, - bool pub_vnc, - optional<size_t> boost_cpus = nullopt); + bool public_vnc); // Return the machine's public or private VNC session endpoint in the // '<ip>:<port>' form. // string - machine_vnc (bool pub_vnc); + machine_vnc (uint16_t machine_num, bool public_vnc); } #endif // BBOT_AGENT_MACHINE_HXX |