2022-09-19 11:06:23 +02:00
|
|
|
/*
|
2024-10-04 13:19:50 +02:00
|
|
|
* Copyright (c) 2022, Andreas Kling <andreas@ladybird.org>
|
2023-08-05 10:42:26 -06:00
|
|
|
* Copyright (c) 2023, Andrew Kaster <akaster@serenityos.org>
|
2022-09-19 11:06:23 +02:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2023-12-16 17:49:34 +03:30
|
|
|
#include <AK/ByteString.h>
|
2023-08-01 11:56:10 -06:00
|
|
|
#include <AK/Error.h>
|
2023-02-01 18:47:56 +01:00
|
|
|
#include <AK/String.h>
|
2023-08-01 11:56:10 -06:00
|
|
|
#include <AK/Vector.h>
|
2025-07-01 20:55:11 -07:00
|
|
|
#include <LibWebView/Forward.h>
|
2022-09-19 11:06:23 +02:00
|
|
|
|
2024-11-10 10:26:07 -05:00
|
|
|
namespace WebView {
|
|
|
|
|
2025-07-01 20:55:11 -07: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 15:23:41 +02:00
|
|
|
|
2025-07-01 20:55:11 -07: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 10:26:07 -05:00
|
|
|
|
2025-07-01 20:55:11 -07:00
|
|
|
WEBVIEW_API ErrorOr<void> handle_attached_debugger();
|
2025-06-10 19:20:46 -04:00
|
|
|
|
2024-11-10 10:26:07 -05:00
|
|
|
}
|