2022-09-19 06:06:23 -03:00
|
|
|
/*
|
2024-10-04 08:19:50 -03:00
|
|
|
* Copyright (c) 2022, Andreas Kling <andreas@ladybird.org>
|
2023-08-05 13:42:26 -03:00
|
|
|
* Copyright (c) 2023, Andrew Kaster <akaster@serenityos.org>
|
2022-09-19 06:06:23 -03:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2023-12-16 11:19:34 -03:00
|
|
|
#include <AK/ByteString.h>
|
2023-08-01 14:56:10 -03:00
|
|
|
#include <AK/Error.h>
|
2023-02-01 14:47:56 -03:00
|
|
|
#include <AK/String.h>
|
2023-08-01 14:56:10 -03:00
|
|
|
#include <AK/Vector.h>
|
2025-07-02 00:55:11 -03:00
|
|
|
#include <LibWebView/Forward.h>
|
2022-09-19 06:06:23 -03:00
|
|
|
|
2024-11-10 12:26:07 -03:00
|
|
|
namespace WebView {
|
|
|
|
|
|
2025-07-02 00:55:11 -03:00
|
|
|
WEBVIEW_API void platform_init(Optional<ByteString> ladybird_binary_path = {});
|
|
|
|
|
WEBVIEW_API void copy_default_config_files(StringView config_path);
|
|
|
|
|
WEBVIEW_API ErrorOr<Vector<ByteString>> get_paths_for_helper_process(StringView process_name);
|
2022-10-05 10:23:41 -03:00
|
|
|
|
2025-07-02 00:55:11 -03:00
|
|
|
WEBVIEW_API extern ByteString s_ladybird_resource_root;
|
|
|
|
|
WEBVIEW_API Optional<ByteString const&> mach_server_name();
|
|
|
|
|
WEBVIEW_API void set_mach_server_name(ByteString name);
|
2024-11-10 12:26:07 -03:00
|
|
|
|
2025-07-02 00:55:11 -03:00
|
|
|
WEBVIEW_API ErrorOr<void> handle_attached_debugger();
|
2025-06-10 20:20:46 -03:00
|
|
|
|
2024-11-10 12:26:07 -03:00
|
|
|
}
|