_plugin_registercallback¶
This function registers an event callback for a plugin. Every plugin can have it’s own callbacks for every event. It is not possible to have multiple callbacks on the same event.
void _plugin_registercallback(
int pluginHandle, //plugin handle
CBTYPE cbType, //event type
CBPLUGIN cbPlugin //callback function
);
Parameters¶
pluginHandle: | Handle of the calling plugin. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cbType: | The event type. This can be any of the following values:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
cbPlugin: | Callback with the following typdef: |
void CBPLUGIN(
CBTYPE bType //event type (useful when you use the same function for multiple events
void* callbackInfo //pointer to a structure of information (see above)
);
Return Values¶
This function does not return a value.