Function gc_plugin_init
pub unsafe extern "C" fn gc_plugin_init(
interface: *const sGCPluginInterface,
) -> *mut c_voidExpand description
@brief Initializes the plugin
This function is called by the core to initialize the plugin. This is the entrypoint of the plugin, and it will be called once for every plugin instance. It may also be called multiple times for the same plugin instance in the case of a restart for example, but in this case it is guaranteed that the plugin instance will be shutdown before (when the core issues a shutdown command). The core will only call other plugin exported functions after this function returns.
@param interface The interface that the core provides to the plugin @return The handle to the plugin instance, this maybe any pointer to memory and can be use to keep track of the instance state as it will be forwarded to all other plugin exported functions.