pub unsafe extern "C-unwind" fn AuthorizationPluginCreate(
callbacks: NonNull<AuthorizationCallbacks>,
out_plugin: NonNull<AuthorizationPluginRef>,
out_plugin_interface: NonNull<*const AuthorizationPluginInterface>,
) -> i32Authorization and AuthorizationPlugin only.Expand description
Initialize a plugin after it gets loaded. This is the main entry point to a plugin. This function will only be called once. After all Mechanism instances have been destroyed outPluginInterface->PluginDestroy will be called.
Parameter callbacks: (input) A pointer to an AuthorizationCallbacks which contains the callbacks implemented by the AuthorizationEngine.
Parameter outPlugin: (output) On successful completion should contain a valid AuthorizationPluginRef. This will be passed in to any subsequent calls the engine makes to outPluginInterface->MechanismCreate and outPluginInterface->PluginDestroy.
Parameter outPluginInterface: (output) On successful completion should contain a pointer to a AuthorizationPluginInterface that will stay valid until outPluginInterface->PluginDestroy is called.
ยงSafety
callbacksmust be a valid pointer.out_pluginmust be a valid pointer.out_plugin_interfacemust be a valid pointer.