objc2_security/generated/
emmtype.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3#[cfg(feature = "objc2")]
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8/// [Apple's documentation](https://developer.apple.com/documentation/security/cssm_manager_event_types?language=objc)
9#[cfg(feature = "cssmconfig")]
10pub type CSSM_MANAGER_EVENT_TYPES = uint32;
11
12/// [Apple's documentation](https://developer.apple.com/documentation/security/cssm_manager_event_notification?language=objc)
13#[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
14#[deprecated]
15#[repr(C)]
16#[derive(Clone, Copy, Debug, PartialEq)]
17pub struct cssm_manager_event_notification {
18    pub DestinationModuleManagerType: CSSM_SERVICE_MASK,
19    pub SourceModuleManagerType: CSSM_SERVICE_MASK,
20    pub Event: CSSM_MANAGER_EVENT_TYPES,
21    pub EventId: uint32,
22    pub EventData: SecAsn1Item,
23}
24
25#[cfg(all(
26    feature = "SecAsn1Types",
27    feature = "cssmconfig",
28    feature = "cssmtype",
29    feature = "objc2"
30))]
31unsafe impl Encode for cssm_manager_event_notification {
32    const ENCODING: Encoding = Encoding::Struct(
33        "cssm_manager_event_notification",
34        &[
35            <CSSM_SERVICE_MASK>::ENCODING,
36            <CSSM_SERVICE_MASK>::ENCODING,
37            <CSSM_MANAGER_EVENT_TYPES>::ENCODING,
38            <uint32>::ENCODING,
39            <SecAsn1Item>::ENCODING,
40        ],
41    );
42}
43
44#[cfg(all(
45    feature = "SecAsn1Types",
46    feature = "cssmconfig",
47    feature = "cssmtype",
48    feature = "objc2"
49))]
50unsafe impl RefEncode for cssm_manager_event_notification {
51    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
52}
53
54/// [Apple's documentation](https://developer.apple.com/documentation/security/cssm_manager_event_notification?language=objc)
55#[deprecated]
56#[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
57pub type CSSM_MANAGER_EVENT_NOTIFICATION = cssm_manager_event_notification;
58
59/// [Apple's documentation](https://developer.apple.com/documentation/security/cssm_manager_event_notification_ptr?language=objc)
60#[deprecated]
61#[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
62pub type CSSM_MANAGER_EVENT_NOTIFICATION_PTR = *mut cssm_manager_event_notification;