wiki.icculus.org
[ front page | index | search | recent changes | git repo | offline html ]

MOJOELF_UnloaderCallback

A callback used when MojoELF is done with a dependency.

Header File

Defined in <mojoelf.h>

Syntax

typedef void (*MOJOELF_UnloaderCallback)(void *handle);

Function Parameters

handle a pointer returned from a previous MOJOELF_LoaderCallback, to be destroyed.

Remarks

This is called during MOJOELF_dlclose(), once for each dependency that a MOJOELF_LoaderCallback successfully loaded. It will also be called during the MOJOELF_dlopen_* functions if they fail, to clean up the half-initialized state.

The callback should dispose of any resources allocated during the paired MOJOELF_LoaderCallback. After this call returns, MojoELF will not use this copy of handle again.

Thread Safety

This will be called from the same thread that called into MOJOELF_dlopen_* or MOJOELF_dlclose(). Locking is not provided by MojoELF.

Version

This function is available since MojoELF 1.0.0.

See Also


CategoryAPI, CategoryAPIDatatype, CategoryMojoELF


[ edit | delete | history | feedback | raw ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.