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