objc2_security/generated/
cssmaci.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4#[cfg(feature = "objc2")]
5use objc2::__framework_prelude::*;
6
7use crate::*;
8
9/// [Apple's documentation](https://developer.apple.com/documentation/security/cssm_spi_ac_funcs?language=objc)
10#[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
11#[deprecated]
12#[repr(C)]
13#[allow(unpredictable_function_pointer_comparisons)]
14#[derive(Clone, Copy, Debug, PartialEq)]
15pub struct cssm_spi_ac_funcs {
16    pub AuthCompute: Option<
17        unsafe extern "C-unwind" fn(
18            CSSM_AC_HANDLE,
19            *const CSSM_TUPLEGROUP,
20            *const CSSM_TUPLEGROUP,
21            uint32,
22            *const CSSM_LIST,
23            *const CSSM_LIST,
24            *const CSSM_LIST,
25            CSSM_TUPLEGROUP_PTR,
26        ) -> CSSM_RETURN,
27    >,
28    pub PassThrough: Option<
29        unsafe extern "C-unwind" fn(
30            CSSM_AC_HANDLE,
31            CSSM_TP_HANDLE,
32            CSSM_CL_HANDLE,
33            CSSM_CC_HANDLE,
34            *const CSSM_DL_DB_LIST,
35            uint32,
36            *const c_void,
37            *mut *mut c_void,
38        ) -> CSSM_RETURN,
39    >,
40}
41
42#[cfg(all(feature = "cssmconfig", feature = "cssmtype", feature = "objc2"))]
43unsafe impl Encode for cssm_spi_ac_funcs {
44    const ENCODING: Encoding = Encoding::Struct(
45        "cssm_spi_ac_funcs",
46        &[
47            <Option<
48                unsafe extern "C-unwind" fn(
49                    CSSM_AC_HANDLE,
50                    *const CSSM_TUPLEGROUP,
51                    *const CSSM_TUPLEGROUP,
52                    uint32,
53                    *const CSSM_LIST,
54                    *const CSSM_LIST,
55                    *const CSSM_LIST,
56                    CSSM_TUPLEGROUP_PTR,
57                ) -> CSSM_RETURN,
58            >>::ENCODING,
59            <Option<
60                unsafe extern "C-unwind" fn(
61                    CSSM_AC_HANDLE,
62                    CSSM_TP_HANDLE,
63                    CSSM_CL_HANDLE,
64                    CSSM_CC_HANDLE,
65                    *const CSSM_DL_DB_LIST,
66                    uint32,
67                    *const c_void,
68                    *mut *mut c_void,
69                ) -> CSSM_RETURN,
70            >>::ENCODING,
71        ],
72    );
73}
74
75#[cfg(all(feature = "cssmconfig", feature = "cssmtype", feature = "objc2"))]
76unsafe impl RefEncode for cssm_spi_ac_funcs {
77    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
78}
79
80/// [Apple's documentation](https://developer.apple.com/documentation/security/cssm_spi_ac_funcs?language=objc)
81#[deprecated]
82#[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
83pub type CSSM_SPI_AC_FUNCS = cssm_spi_ac_funcs;
84
85/// [Apple's documentation](https://developer.apple.com/documentation/security/cssm_spi_ac_funcs_ptr?language=objc)
86#[deprecated]
87#[cfg(all(feature = "cssmconfig", feature = "cssmtype"))]
88pub type CSSM_SPI_AC_FUNCS_PTR = *mut cssm_spi_ac_funcs;