AWE Core OS 8.B.22 Documentation
Data Fields
_awe_PluginCallbacks Struct Reference

Callbacks passed by the loader to each plugin entrypoint. More...

#include <AWEPluginTypes.h>

Data Fields

bool(* checkApiVersion )(const char *version)
 Used to verify compatibility with the loader's API version.
 
void *(* malloc )(size_t size)
 Allocate dynamic memory.
 
void *(* realloc )(void *ptr, size_t size)
 Reallocate dynamic memory.
 
void(* free )(void *ptr)
 Free dynamic memory.
 
void(* log )(int32_t level, uint32_t type, const char *fmt,...)
 

Detailed Description

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.


The documentation for this struct was generated from the following file: