mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-18 09:50:27 +00:00
This patch adds explicit symbol export to LibCore. This leads to about 350 less symbols being exported.
27 lines
776 B
C++
27 lines
776 B
C++
/*
|
|
* Copyright (c) 2026, Tim Flynn <trflynn89@ladybird.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/Optional.h>
|
|
#include <AK/Types.h>
|
|
#include <LibCore/AnonymousBuffer.h>
|
|
#include <LibCore/Export.h>
|
|
|
|
namespace Core {
|
|
|
|
using SharedVersion = u64;
|
|
using SharedVersionIndex = u32;
|
|
|
|
constexpr inline SharedVersion INVALID_SHARED_VERSION = 0;
|
|
constexpr inline SharedVersion INITIAL_SHARED_VERSION = 1;
|
|
|
|
[[nodiscard]] CORE_API AnonymousBuffer create_shared_version_buffer();
|
|
[[nodiscard]] CORE_API bool initialize_shared_version(AnonymousBuffer&, SharedVersionIndex);
|
|
CORE_API void increment_shared_version(AnonymousBuffer&, SharedVersionIndex);
|
|
CORE_API Optional<SharedVersion> get_shared_version(AnonymousBuffer const&, SharedVersionIndex);
|
|
|
|
}
|