_awe_PluginCallbacks
Module: AudioWeaver Plugins
Callbacks passed by the loader to each plugin entrypoint. More...
#include <AWEPluginTypes.h>
Public Attributes
| Name | |
|---|---|
| bool()(const char version) | checkApiVersion Used to verify compatibility with the loader's API version. |
| void ()(size_t size) | malloc Allocate dynamic memory. |
| void ()(void *ptr, size_t size) | realloc Reallocate dynamic memory. |
| void()(void ptr) | free Free dynamic memory. |
| void()(int32_t level, uint32_t type, const char fmt,...) | log |
Detailed Description
struct _awe_PluginCallbacks;
Callbacks passed by the loader to each plugin entrypoint.
The plugin entrypoint should prefer to use these functions during initialization. They are guaranteed to outlive the plugin, so it is safe to cache them internally. This is typically necessary if memory is to be freed in the plugin's cleanup function. They may be NULL, in which case the plugin entrypoint must either choose to use a fallback or simply return NULL to indicate an initialization failure.
Public Attributes Documentation
variable checkApiVersion
bool(*)(const char *version) checkApiVersion;
Used to verify compatibility with the loader's API version.
variable malloc
void *(*)(size_t size) malloc;
Allocate dynamic memory.
variable realloc
void *(*)(void *ptr, size_t size) realloc;
Reallocate dynamic memory.
variable free
void(*)(void *ptr) free;
Free dynamic memory.
variable log
void(*)(int32_t level, uint32_t type, const char *fmt,...) log;
Updated on 2026-02-10 at 15:44:29 -0500