9#include "utils/utf8_string.h"
11namespace zrythm::plugins
32 PluginLibrary (
const PluginLibrary &) =
delete;
33 PluginLibrary &operator= (
const PluginLibrary &) =
delete;
34 PluginLibrary (PluginLibrary &&other)
noexcept;
35 PluginLibrary &operator= (PluginLibrary &&other)
noexcept;
67 std::unique_ptr<Impl> impl_;
void unload()
Unloads the library.
void(*)() FunctionSymbol
Function pointer type returned when resolving library symbols.
utils::Utf8String error_string() const
Returns a human-readable description of the last error.
bool load(const utils::Utf8String &path)
Loads the plugin library at the given path.
FunctionSymbol resolve(std::string_view symbol_name)
Resolves a symbol from the loaded library.
bool is_loaded() const
Returns true if the library is currently loaded.
Lightweight UTF-8 string wrapper with safe conversions.