RegisterHookFn#

Fully qualified name: carb::RegisterHookFn

Defined in carb/Framework.h

using carb::RegisterHookFn = void (*)(const PluginDesc &plugin, void *userData)#

Register Hook function.

Called when a plugin is registered that exports the requested interface. Note that the plugin has not yet been started.

The thread that registers the plugin will call all register hooks for the requested interface. It is safe to acquire the requested interface from within the register hook. Calling register hooks is done without an internal Framework mutex locked, so other threads are able to acquire other interfaces while register hooks are executing.

It is safe for a RegisterHookFn to call Framework::removeRegisterHook() for the RegisterHookFn being called, or any other RegisterHookFn.

Param plugin:

The PluginDesc for the plugin that was registered.

Param userData:

The void* that was passed to Framework::addRegisterHook().