1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern "C" {
    pub static SCStreamErrorDomain: &'static NSString;
}

// NS_ERROR_ENUM
#[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);
}