objc2-cf-network 0.3.2

Bindings to the CFNetwork framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ffi::*;
use core::ptr::NonNull;
use objc2_core_foundation::*;

use crate::*;

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreampropertysslcontext?language=objc)
    pub static kCFStreamPropertySSLContext: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreampropertysslpeertrust?language=objc)
    pub static kCFStreamPropertySSLPeerTrust: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreamsslvalidatescertificatechain?language=objc)
    pub static kCFStreamSSLValidatesCertificateChain: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreampropertysslsettings?language=objc)
    pub static kCFStreamPropertySSLSettings: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreamssllevel?language=objc)
    pub static kCFStreamSSLLevel: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreamsslpeername?language=objc)
    pub static kCFStreamSSLPeerName: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreamsslcertificates?language=objc)
    pub static kCFStreamSSLCertificates: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreamsslisserver?language=objc)
    pub static kCFStreamSSLIsServer: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreamnetworkservicetype?language=objc)
    pub static kCFStreamNetworkServiceType: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreamnetworkservicetypevideo?language=objc)
    pub static kCFStreamNetworkServiceTypeVideo: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreamnetworkservicetypevoice?language=objc)
    pub static kCFStreamNetworkServiceTypeVoice: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreamnetworkservicetypebackground?language=objc)
    pub static kCFStreamNetworkServiceTypeBackground: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreamnetworkservicetyperesponsivedata?language=objc)
    pub static kCFStreamNetworkServiceTypeResponsiveData: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreamnetworkservicetypecallsignaling?language=objc)
    pub static kCFStreamNetworkServiceTypeCallSignaling: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreamnetworkservicetypeavstreaming?language=objc)
    pub static kCFStreamNetworkServiceTypeAVStreaming: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreamnetworkservicetyperesponsiveav?language=objc)
    pub static kCFStreamNetworkServiceTypeResponsiveAV: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreamnetworkservicetypevoip?language=objc)
    #[deprecated = "use PushKit for VoIP control purposes"]
    pub static kCFStreamNetworkServiceTypeVoIP: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreampropertynocellular?language=objc)
    pub static kCFStreamPropertyNoCellular: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreampropertyconnectioniscellular?language=objc)
    pub static kCFStreamPropertyConnectionIsCellular: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreampropertyallowexpensivenetworkaccess?language=objc)
    pub static kCFStreamPropertyAllowExpensiveNetworkAccess: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreampropertyconnectionisexpensive?language=objc)
    pub static kCFStreamPropertyConnectionIsExpensive: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreampropertyallowconstrainednetworkaccess?language=objc)
    pub static kCFStreamPropertyAllowConstrainedNetworkAccess: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreamerrordomainwinsock?language=objc)
    pub static kCFStreamErrorDomainWinSock: CFIndex;
}

// TODO: pub fn CFSocketStreamSOCKSGetErrorSubdomain(error: NonNull<CFStreamError>,) -> i32;

// TODO: pub fn CFSocketStreamSOCKSGetError(error: NonNull<CFStreamError>,) -> i32;

/// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreamerrorsockssubdomainnone?language=objc)
pub const kCFStreamErrorSOCKSSubDomainNone: c_uint = 0;
/// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreamerrorsockssubdomainversioncode?language=objc)
pub const kCFStreamErrorSOCKSSubDomainVersionCode: c_uint = 1;
/// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreamerrorsocks4subdomainresponse?language=objc)
pub const kCFStreamErrorSOCKS4SubDomainResponse: c_uint = 2;
/// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreamerrorsocks5subdomainuserpass?language=objc)
pub const kCFStreamErrorSOCKS5SubDomainUserPass: c_uint = 3;
/// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreamerrorsocks5subdomainmethod?language=objc)
pub const kCFStreamErrorSOCKS5SubDomainMethod: c_uint = 4;
/// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreamerrorsocks5subdomainresponse?language=objc)
pub const kCFStreamErrorSOCKS5SubDomainResponse: c_uint = 5;

/// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreamerrorsocks5badresponseaddr?language=objc)
pub const kCFStreamErrorSOCKS5BadResponseAddr: c_uint = 1;
/// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreamerrorsocks5badstate?language=objc)
pub const kCFStreamErrorSOCKS5BadState: c_uint = 2;
/// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreamerrorsocksunknownclientversion?language=objc)
pub const kCFStreamErrorSOCKSUnknownClientVersion: c_uint = 3;

/// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreamerrorsocks4requestfailed?language=objc)
pub const kCFStreamErrorSOCKS4RequestFailed: c_uint = 91;
/// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreamerrorsocks4identdfailed?language=objc)
pub const kCFStreamErrorSOCKS4IdentdFailed: c_uint = 92;
/// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreamerrorsocks4idconflict?language=objc)
pub const kCFStreamErrorSOCKS4IdConflict: c_uint = 93;

/// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/ksocks5noacceptablemethod?language=objc)
pub const kSOCKS5NoAcceptableMethod: c_uint = 0xFF;

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreampropertyproxylocalbypass?language=objc)
    pub static kCFStreamPropertyProxyLocalBypass: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreampropertysocketremotehost?language=objc)
    pub static kCFStreamPropertySocketRemoteHost: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreampropertysocketremotenetservice?language=objc)
    pub static kCFStreamPropertySocketRemoteNetService: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreampropertysocketextendedbackgroundidlemode?language=objc)
    pub static kCFStreamPropertySocketExtendedBackgroundIdleMode: &'static CFString;
}

extern "C-unwind" {
    /// # Safety
    ///
    /// - `read_stream` must be a valid pointer or null.
    /// - `write_stream` must be a valid pointer or null.
    #[cfg(feature = "CFHost")]
    #[deprecated = "Use Network framework instead"]
    pub fn CFStreamCreatePairWithSocketToCFHost(
        alloc: Option<&CFAllocator>,
        host: &CFHost,
        port: i32,
        read_stream: *mut *mut CFReadStream,
        write_stream: *mut *mut CFWriteStream,
    );
}

extern "C-unwind" {
    /// # Safety
    ///
    /// - `read_stream` must be a valid pointer or null.
    /// - `write_stream` must be a valid pointer or null.
    #[cfg(feature = "CFNetServices")]
    #[deprecated = "Use Network framework instead"]
    pub fn CFStreamCreatePairWithSocketToNetService(
        alloc: Option<&CFAllocator>,
        service: &CFNetService,
        read_stream: *mut *mut CFReadStream,
        write_stream: *mut *mut CFWriteStream,
    );
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreampropertysslpeercertificates?language=objc)
    #[deprecated]
    pub static kCFStreamPropertySSLPeerCertificates: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreamsslallowsexpiredcertificates?language=objc)
    #[deprecated]
    pub static kCFStreamSSLAllowsExpiredCertificates: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreamsslallowsexpiredroots?language=objc)
    #[deprecated]
    pub static kCFStreamSSLAllowsExpiredRoots: &'static CFString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/cfnetwork/kcfstreamsslallowsanyroot?language=objc)
    #[deprecated]
    pub static kCFStreamSSLAllowsAnyRoot: &'static CFString;
}