43#ifndef RTYPE_LIBRARYBACKEND_HPP_
44 #define RTYPE_LIBRARYBACKEND_HPP_
48 #include <string_view>
71 static auto open(std::string_view path)
72 -> std::expected<void *, rtp::Error>;
80 static auto close(
void *handle)
noexcept
81 -> std::expected<void, rtp::Error>;
90 static auto getSymbol(
void *handle, std::string_view name)
91 -> std::expected<void *, rtp::Error>;
Declarations for platform-specific dynamic library handling.
Provides platform-specific implementations for dynamic library operations.
static auto getSymbol(void *handle, std::string_view name) -> std::expected< void *, rtp::Error >
Get a symbol from the dynamic library.
static auto open(std::string_view path) -> std::expected< void *, rtp::Error >
Open a dynamic library from the given path.
static auto close(void *handle) noexcept -> std::expected< void, rtp::Error >
Close the dynamic library handle.