objc2_core_image/generated/
CIPlugInInterface.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8extern_protocol!(
9    /// This protocol defines the calls made by the host to the CIPlugIn when initializing it
10    ///
11    /// The principal class of a CIPlugIn must support the CIPlugInRegistration protocol
12    ///
13    /// See also [Apple's documentation](https://developer.apple.com/documentation/coreimage/cipluginregistration?language=objc)
14    pub unsafe trait CIPlugInRegistration {
15        /// the plugin gets a chance to do custom initialization (like registration check ) here
16        ///
17        /// 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
18        ///
19        /// Parameter `host`: for future use only
20        ///
21        /// # Safety
22        ///
23        /// `host` must be a valid pointer.
24        #[unsafe(method(load:))]
25        #[unsafe(method_family = none)]
26        unsafe fn load(&self, host: *mut c_void) -> bool;
27    }
28);