2022-01-20 18:27:56 +00:00
|
|
|
// This file Copyright © 2017-2022 Mnemosyne LLC.
|
2022-08-08 18:05:39 +00:00
|
|
|
// It may be used under GPLv2 (SPDX: GPL-2.0-only), GPLv3 (SPDX: GPL-3.0-only),
|
2022-01-20 18:27:56 +00:00
|
|
|
// or any future license endorsed by Mnemosyne LLC.
|
|
|
|
// License text can be found in the licenses/ folder.
|
2017-11-27 22:22:44 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2021-11-24 19:25:23 +00:00
|
|
|
#include <map>
|
|
|
|
#include <string_view>
|
|
|
|
|
2021-12-15 21:25:42 +00:00
|
|
|
struct tr_error;
|
2020-08-11 18:11:55 +00:00
|
|
|
|
2021-11-24 19:25:23 +00:00
|
|
|
bool tr_spawn_async(
|
|
|
|
char const* const* cmd,
|
|
|
|
std::map<std::string_view, std::string_view> const& env,
|
2022-08-05 19:16:25 +00:00
|
|
|
std::string_view work_dir,
|
2021-12-15 21:25:42 +00:00
|
|
|
tr_error** error);
|