mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
Ladybird: Abstract spawning helper processes into separate methods
This will let us use the same path discovery methods for WebContent, SQLServer, and any other helper processes we need to launch.
This commit is contained in:
parent
792258afe8
commit
3e6d790cf0
Notes:
sideshowbarker
2024-07-17 07:09:53 +09:00
Author: https://github.com/ADKaster
Commit: 3e6d790cf0
Pull-request: https://github.com/SerenityOS/serenity/pull/17272
Issue: https://github.com/SerenityOS/serenity/issues/17062
Reviewed-by: https://github.com/trflynn89 ✅
4 changed files with 56 additions and 6 deletions
18
Ladybird/HelperProcess.h
Normal file
18
Ladybird/HelperProcess.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* Copyright (c) 2023, Andrew Kaster <akaster@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#define AK_DONT_REPLACE_STD
|
||||
|
||||
#include <AK/Error.h>
|
||||
#include <AK/Optional.h>
|
||||
#include <AK/Span.h>
|
||||
#include <AK/StringView.h>
|
||||
#include <LibCore/System.h>
|
||||
|
||||
ErrorOr<void> spawn_helper_process(StringView process_name, Span<StringView> arguments, Core::System::SearchInPath, Optional<Span<StringView>> environment = {});
|
||||
ErrorOr<Vector<String>> get_paths_for_helper_process(StringView process_name);
|
Loading…
Add table
Add a link
Reference in a new issue