objc2-security 0.3.2

Bindings to the Security framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
#[cfg(feature = "objc2")]
use objc2::__framework_prelude::*;

use crate::*;

/// [Apple's documentation](https://developer.apple.com/documentation/security/cssm_manager_event_types?language=objc)
#[cfg(feature = "cssmconfig")]
pub type CSSM_MANAGER_EVENT_TYPES = uint32;

/// [Apple's documentation](https://developer.apple.com/documentation/security/cssm_manager_event_notification?language=objc)
#[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
#[deprecated]
#[repr(C)]
#[derive(Clone, Copy, Debug, PartialEq)]
pub struct cssm_manager_event_notification {
    pub DestinationModuleManagerType: CSSM_SERVICE_MASK,
    pub SourceModuleManagerType: CSSM_SERVICE_MASK,
    pub Event: CSSM_MANAGER_EVENT_TYPES,
    pub EventId: uint32,
    pub EventData: SecAsn1Item,
}

#[cfg(all(
    feature = "SecAsn1Types",
    feature = "cssmconfig",
    feature = "cssmtype",
    feature = "objc2"
))]
unsafe impl Encode for cssm_manager_event_notification {
    const ENCODING: Encoding = Encoding::Struct(
        "cssm_manager_event_notification",
        &[
            <CSSM_SERVICE_MASK>::ENCODING,
            <CSSM_SERVICE_MASK>::ENCODING,
            <CSSM_MANAGER_EVENT_TYPES>::ENCODING,
            <uint32>::ENCODING,
            <SecAsn1Item>::ENCODING,
        ],
    );
}

#[cfg(all(
    feature = "SecAsn1Types",
    feature = "cssmconfig",
    feature = "cssmtype",
    feature = "objc2"
))]
unsafe impl RefEncode for cssm_manager_event_notification {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

/// [Apple's documentation](https://developer.apple.com/documentation/security/cssm_manager_event_notification?language=objc)
#[deprecated]
#[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
pub type CSSM_MANAGER_EVENT_NOTIFICATION = cssm_manager_event_notification;

/// [Apple's documentation](https://developer.apple.com/documentation/security/cssm_manager_event_notification_ptr?language=objc)
#[deprecated]
#[cfg(all(feature = "SecAsn1Types", feature = "cssmconfig", feature = "cssmtype"))]
pub type CSSM_MANAGER_EVENT_NOTIFICATION_PTR = *mut cssm_manager_event_notification;