mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 17:40:27 +00:00
278fc8e57f
Rather than a copy, return a reference so that it's a bit safer to use the result as a StringView within the calling scope.
21 lines
571 B
C
21 lines
571 B
C
/*
|
|
* Copyright (c) 2022, Andreas Kling <kling@serenityos.org>
|
|
* Copyright (c) 2023, Andrew Kaster <akaster@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/ByteString.h>
|
|
#include <AK/Error.h>
|
|
#include <AK/String.h>
|
|
#include <AK/Vector.h>
|
|
|
|
void platform_init();
|
|
ErrorOr<ByteString> application_directory();
|
|
ErrorOr<Vector<ByteString>> get_paths_for_helper_process(StringView process_name);
|
|
|
|
extern ByteString s_serenity_resource_root;
|
|
Optional<ByteString const&> mach_server_name();
|
|
void set_mach_server_name(ByteString name);
|