pub unsafe trait CIPlugInRegistration {
// Provided method
unsafe fn load(&self, host: *mut c_void) -> bool
where Self: Sized + Message { ... }
}Available on crate feature
CIPlugInInterface only.Expand description
This protocol defines the calls made by the host to the CIPlugIn when initializing it
The principal class of a CIPlugIn must support the CIPlugInRegistration protocol
See also Apple’s documentation
Provided Methods§
Sourceunsafe fn load(&self, host: *mut c_void) -> bool
unsafe fn load(&self, host: *mut c_void) -> bool
the plugin gets a chance to do custom initialization (like registration check ) here
Load gets called once by the host when the first filter from the plug-in gets instantiated. Return of true means that the plugIn successfully initialized
Parameter host: for future use only
§Safety
host must be a valid pointer.