use core::ptr::NonNull;
use objc2_core_foundation::*;
use crate::*;
extern "C" {
pub static kCFStreamErrorDomainFTP: i32;
}
extern "C" {
#[deprecated = "Use NSURLSessionAPI for ftp requests"]
pub static kCFStreamPropertyFTPUserName: &'static CFString;
}
extern "C" {
#[deprecated = "Use NSURLSessionAPI for ftp requests"]
pub static kCFStreamPropertyFTPPassword: &'static CFString;
}
extern "C" {
#[deprecated = "Use NSURLSessionAPI for ftp requests"]
pub static kCFStreamPropertyFTPUsePassiveMode: &'static CFString;
}
extern "C" {
#[deprecated = "Use NSURLSessionAPI for ftp requests"]
pub static kCFStreamPropertyFTPResourceSize: &'static CFString;
}
extern "C" {
#[deprecated = "Use NSURLSessionAPI for ftp requests"]
pub static kCFStreamPropertyFTPFetchResourceInfo: &'static CFString;
}
extern "C" {
#[deprecated = "Use NSURLSessionAPI for ftp requests"]
pub static kCFStreamPropertyFTPFileTransferOffset: &'static CFString;
}
extern "C" {
#[deprecated = "Use NSURLSessionAPI for ftp requests"]
pub static kCFStreamPropertyFTPAttemptPersistentConnection: &'static CFString;
}
extern "C" {
#[deprecated = "Use NSURLSessionAPI for ftp requests"]
pub static kCFStreamPropertyFTPProxy: &'static CFString;
}
extern "C" {
#[deprecated = "Use NSURLSessionAPI for ftp requests"]
pub static kCFStreamPropertyFTPProxyHost: &'static CFString;
}
extern "C" {
#[deprecated = "Use NSURLSessionAPI for ftp requests"]
pub static kCFStreamPropertyFTPProxyPort: &'static CFString;
}
extern "C" {
#[deprecated = "Use NSURLSessionAPI for ftp requests"]
pub static kCFStreamPropertyFTPProxyUser: &'static CFString;
}
extern "C" {
#[deprecated = "Use NSURLSessionAPI for ftp requests"]
pub static kCFStreamPropertyFTPProxyPassword: &'static CFString;
}
extern "C" {
#[deprecated = "Use NSURLSessionAPI for ftp requests"]
pub static kCFFTPResourceMode: &'static CFString;
}
extern "C" {
#[deprecated = "Use NSURLSessionAPI for ftp requests"]
pub static kCFFTPResourceName: &'static CFString;
}
extern "C" {
#[deprecated = "Use NSURLSessionAPI for ftp requests"]
pub static kCFFTPResourceOwner: &'static CFString;
}
extern "C" {
#[deprecated = "Use NSURLSessionAPI for ftp requests"]
pub static kCFFTPResourceGroup: &'static CFString;
}
extern "C" {
#[deprecated = "Use NSURLSessionAPI for ftp requests"]
pub static kCFFTPResourceLink: &'static CFString;
}
extern "C" {
#[deprecated = "Use NSURLSessionAPI for ftp requests"]
pub static kCFFTPResourceSize: &'static CFString;
}
extern "C" {
#[deprecated = "Use NSURLSessionAPI for ftp requests"]
pub static kCFFTPResourceType: &'static CFString;
}
extern "C" {
#[deprecated = "Use NSURLSessionAPI for ftp requests"]
pub static kCFFTPResourceModDate: &'static CFString;
}
#[deprecated = "Use NSURLSessionAPI for ftp requests"]
#[inline]
pub unsafe extern "C-unwind" fn CFReadStreamCreateWithFTPURL(
alloc: Option<&CFAllocator>,
ftp_url: &CFURL,
) -> CFRetained<CFReadStream> {
extern "C-unwind" {
fn CFReadStreamCreateWithFTPURL(
alloc: Option<&CFAllocator>,
ftp_url: &CFURL,
) -> Option<NonNull<CFReadStream>>;
}
let ret = unsafe { CFReadStreamCreateWithFTPURL(alloc, ftp_url) };
let ret = ret.expect("function was marked as returning non-null, but actually returned NULL");
unsafe { CFRetained::from_raw(ret) }
}
extern "C-unwind" {
#[deprecated = "Use NSURLSessionAPI for ftp requests"]
pub fn CFFTPCreateParsedResourceListing(
alloc: Option<&CFAllocator>,
buffer: NonNull<u8>,
buffer_length: CFIndex,
parsed: *mut *const CFDictionary,
) -> CFIndex;
}
#[deprecated = "Use NSURLSessionAPI for ftp requests"]
#[inline]
pub unsafe extern "C-unwind" fn CFWriteStreamCreateWithFTPURL(
alloc: Option<&CFAllocator>,
ftp_url: &CFURL,
) -> CFRetained<CFWriteStream> {
extern "C-unwind" {
fn CFWriteStreamCreateWithFTPURL(
alloc: Option<&CFAllocator>,
ftp_url: &CFURL,
) -> Option<NonNull<CFWriteStream>>;
}
let ret = unsafe { CFWriteStreamCreateWithFTPURL(alloc, ftp_url) };
let ret = ret.expect("function was marked as returning non-null, but actually returned NULL");
unsafe { CFRetained::from_raw(ret) }
}