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

Method table to provide overrides to awe_PluginLoader_initWithMethods. More...

#include <AWEPluginLoader.h>

Data Fields

void *(* malloc )(size_t size)
 Allocate memory.
 
void *(* realloc )(void *ptr, size_t size)
 Reallocate memory.
 
void(* free )(void *ptr)
 Free memory.
 
void *(* open )(const char *file)
 Open a shared library, returning a handle.
 
void(* close )(void *handle)
 Close a shared library.
 
void *(* sym )(void *handle, const char *name)
 Look up a symbol in a shared library.
 
void(* vlog )(int32_t level, uint32_t type, const char *fmt, va_list args)
 Handle a log message.
 

Detailed Description

Method table to provide overrides to awe_PluginLoader_initWithMethods.

This struct defines a set of function pointers which are used by awe_PluginLoader to perform memory allocation, dynamic library loading, and symbol resolution. It should be passed to awe_PluginLoader_initWithMethods. To avoid overriding a default value, leave it null.

Examples
Libtester.c.

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