objc2_security/generated/
emmtype.rs1#[cfg(feature = "objc2")]
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8#[cfg(feature = "cssmconfig")]
10pub type CSSM_MANAGER_EVENT_TYPES = uint32;
11
12#[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#[deprecated]
56#[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
57pub type CSSM_MANAGER_EVENT_NOTIFICATION = cssm_manager_event_notification;
58
59#[deprecated]
61#[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
62pub type CSSM_MANAGER_EVENT_NOTIFICATION_PTR = *mut cssm_manager_event_notification;