2023-02-02 13:00:30 +03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2023, Andrew Kaster <akaster@serenityos.org>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <AK/Error.h>
|
|
|
|
#include <AK/Optional.h>
|
|
|
|
#include <AK/Span.h>
|
|
|
|
#include <AK/StringView.h>
|
|
|
|
#include <LibCore/System.h>
|
|
|
|
|
2023-02-05 22:02:54 +03:00
|
|
|
ErrorOr<void> spawn_helper_process(StringView process_name, ReadonlySpan<StringView> arguments, Core::System::SearchInPath, Optional<ReadonlySpan<StringView>> environment = {});
|
2023-02-02 13:00:30 +03:00
|
|
|
ErrorOr<Vector<String>> get_paths_for_helper_process(StringView process_name);
|