2022-09-19 12:06:23 +03:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
|
2023-08-05 19:42:26 +03:00
|
|
|
* Copyright (c) 2023, Andrew Kaster <akaster@serenityos.org>
|
2022-09-19 12:06:23 +03:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2023-12-16 17:19:34 +03:00
|
|
|
#include <AK/ByteString.h>
|
2023-08-01 20:56:10 +03:00
|
|
|
#include <AK/Error.h>
|
2023-02-01 20:47:56 +03:00
|
|
|
#include <AK/String.h>
|
2023-08-01 20:56:10 +03:00
|
|
|
#include <AK/Vector.h>
|
2022-09-19 12:06:23 +03:00
|
|
|
|
2022-10-05 16:23:41 +03:00
|
|
|
void platform_init();
|
2024-07-15 22:50:51 +03:00
|
|
|
void copy_default_config_files(StringView config_path);
|
2024-02-22 04:27:05 +03:00
|
|
|
ErrorOr<ByteString> application_directory();
|
|
|
|
ErrorOr<Vector<ByteString>> get_paths_for_helper_process(StringView process_name);
|
2022-10-05 16:23:41 +03:00
|
|
|
|
2024-07-21 17:50:14 +03:00
|
|
|
extern ByteString s_ladybird_resource_root;
|
2024-04-22 19:56:02 +03:00
|
|
|
Optional<ByteString const&> mach_server_name();
|
2024-04-04 23:13:14 +03:00
|
|
|
void set_mach_server_name(ByteString name);
|