use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern "C" {
pub static SCStreamErrorDomain: &'static NSString;
}
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct SCStreamErrorCode(pub NSInteger);
impl SCStreamErrorCode {
pub const SCStreamErrorUserDeclined: Self = Self(-3801);
pub const SCStreamErrorFailedToStart: Self = Self(-3802);
pub const SCStreamErrorMissingEntitlements: Self = Self(-3803);
pub const SCStreamErrorFailedApplicationConnectionInvalid: Self = Self(-3804);
pub const SCStreamErrorFailedApplicationConnectionInterrupted: Self = Self(-3805);
pub const SCStreamErrorFailedNoMatchingApplicationContext: Self = Self(-3806);
pub const SCStreamErrorAttemptToStartStreamState: Self = Self(-3807);
pub const SCStreamErrorAttemptToStopStreamState: Self = Self(-3808);
pub const SCStreamErrorAttemptToUpdateFilterState: Self = Self(-3809);
pub const SCStreamErrorAttemptToConfigState: Self = Self(-3810);
pub const SCStreamErrorInternalError: Self = Self(-3811);
pub const SCStreamErrorInvalidParameter: Self = Self(-3812);
pub const SCStreamErrorNoWindowList: Self = Self(-3813);
pub const SCStreamErrorNoDisplayList: Self = Self(-3814);
pub const SCStreamErrorNoCaptureSource: Self = Self(-3815);
pub const SCStreamErrorRemovingStream: Self = Self(-3816);
pub const SCStreamErrorUserStopped: Self = Self(-3817);
pub const SCStreamErrorFailedToStartAudioCapture: Self = Self(-3818);
pub const SCStreamErrorFailedToStopAudioCapture: Self = Self(-3819);
}
unsafe impl Encode for SCStreamErrorCode {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for SCStreamErrorCode {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}