CoreFoundation tvOS 11.4 to 12.0 API Differences

CFAvailability.h
Added #def CF_CLOSED_ENUM
CFStream.h
Declaration
Fromtypedef void (*CFReadStreamClientCallBack)(CFReadStreamRef stream, CFStreamEventType type, void *clientCallBackInfo)
Totypedef void (*CFReadStreamClientCallBack)(CFReadStreamRef _Null_unspecified stream, CFStreamEventType type, void * _Null_unspecified clientCallBackInfo)

Declaration
Fromtypedef void (*CFWriteStreamClientCallBack)(CFWriteStreamRef stream, CFStreamEventType type, void *clientCallBackInfo)
Totypedef void (*CFWriteStreamClientCallBack)(CFWriteStreamRef _Null_unspecified stream, CFStreamEventType type, void * _Null_unspecified clientCallBackInfo)

Declaration
Fromconst CFStreamPropertyKey kCFStreamPropertyDataWritten
ToCFStreamPropertyKey _Null_unspecified const kCFStreamPropertyDataWritten

Declaration
FromCFReadStreamRef CFReadStreamCreateWithBytesNoCopy(CFAllocatorRef alloc, const UInt8 *bytes, CFIndex length, CFAllocatorRef bytesDeallocator)
ToCFReadStreamRef _Null_unspecified CFReadStreamCreateWithBytesNoCopy(CFAllocatorRef _Null_unspecified alloc, const UInt8 * _Null_unspecified bytes, CFIndex length, CFAllocatorRef _Null_unspecified bytesDeallocator)

Declaration
FromCFWriteStreamRef CFWriteStreamCreateWithBuffer(CFAllocatorRef alloc, UInt8 *buffer, CFIndex bufferCapacity)
ToCFWriteStreamRef _Null_unspecified CFWriteStreamCreateWithBuffer(CFAllocatorRef _Null_unspecified alloc, UInt8 * _Null_unspecified buffer, CFIndex bufferCapacity)

Declaration
FromCFWriteStreamRef CFWriteStreamCreateWithAllocatedBuffers(CFAllocatorRef alloc, CFAllocatorRef bufferAllocator)
ToCFWriteStreamRef _Null_unspecified CFWriteStreamCreateWithAllocatedBuffers(CFAllocatorRef _Null_unspecified alloc, CFAllocatorRef _Null_unspecified bufferAllocator)

Declaration
FromCFReadStreamRef CFReadStreamCreateWithFile(CFAllocatorRef alloc, CFURLRef fileURL)
ToCFReadStreamRef _Null_unspecified CFReadStreamCreateWithFile(CFAllocatorRef _Null_unspecified alloc, CFURLRef _Null_unspecified fileURL)

Declaration
FromCFWriteStreamRef CFWriteStreamCreateWithFile(CFAllocatorRef alloc, CFURLRef fileURL)
ToCFWriteStreamRef _Null_unspecified CFWriteStreamCreateWithFile(CFAllocatorRef _Null_unspecified alloc, CFURLRef _Null_unspecified fileURL)

Declaration
Fromvoid CFStreamCreateBoundPair(CFAllocatorRef alloc, CFReadStreamRef *readStream, CFWriteStreamRef *writeStream, CFIndex transferBufferSize)
Tovoid CFStreamCreateBoundPair(CFAllocatorRef _Null_unspecified alloc, CFReadStreamRef _Null_unspecified * _Null_unspecified readStream, CFWriteStreamRef _Null_unspecified * _Null_unspecified writeStream, CFIndex transferBufferSize)

Declaration
Fromconst CFStreamPropertyKey kCFStreamPropertyAppendToFile
ToCFStreamPropertyKey _Null_unspecified const kCFStreamPropertyAppendToFile

Declaration
Fromconst CFStreamPropertyKey kCFStreamPropertyFileCurrentOffset
ToCFStreamPropertyKey _Null_unspecified const kCFStreamPropertyFileCurrentOffset

Declaration
Fromconst CFStreamPropertyKey kCFStreamPropertySocketNativeHandle
ToCFStreamPropertyKey _Null_unspecified const kCFStreamPropertySocketNativeHandle

Declaration
Fromconst CFStreamPropertyKey kCFStreamPropertySocketRemoteHostName
ToCFStreamPropertyKey _Null_unspecified const kCFStreamPropertySocketRemoteHostName

Declaration
Fromconst CFStreamPropertyKey kCFStreamPropertySocketRemotePortNumber
ToCFStreamPropertyKey _Null_unspecified const kCFStreamPropertySocketRemotePortNumber

Declaration
Fromvoid CFStreamCreatePairWithSocket(CFAllocatorRef alloc, CFSocketNativeHandle sock, CFReadStreamRef *readStream, CFWriteStreamRef *writeStream)
Tovoid CFStreamCreatePairWithSocket(CFAllocatorRef _Null_unspecified alloc, CFSocketNativeHandle sock, CFReadStreamRef _Null_unspecified * _Null_unspecified readStream, CFWriteStreamRef _Null_unspecified * _Null_unspecified writeStream)

Declaration
Fromvoid CFStreamCreatePairWithSocketToHost(CFAllocatorRef alloc, CFStringRef host, UInt32 port, CFReadStreamRef *readStream, CFWriteStreamRef *writeStream)
Tovoid CFStreamCreatePairWithSocketToHost(CFAllocatorRef _Null_unspecified alloc, CFStringRef _Null_unspecified host, UInt32 port, CFReadStreamRef _Null_unspecified * _Null_unspecified readStream, CFWriteStreamRef _Null_unspecified * _Null_unspecified writeStream)

Declaration
Fromvoid CFStreamCreatePairWithPeerSocketSignature(CFAllocatorRef alloc, const CFSocketSignature *signature, CFReadStreamRef *readStream, CFWriteStreamRef *writeStream)
Tovoid CFStreamCreatePairWithPeerSocketSignature(CFAllocatorRef _Null_unspecified alloc, const CFSocketSignature * _Null_unspecified signature, CFReadStreamRef _Null_unspecified * _Null_unspecified readStream, CFWriteStreamRef _Null_unspecified * _Null_unspecified writeStream)

Declaration
FromCFStreamStatus CFReadStreamGetStatus(CFReadStreamRef stream)
ToCFStreamStatus CFReadStreamGetStatus(CFReadStreamRef _Null_unspecified stream)

Declaration
FromCFStreamStatus CFWriteStreamGetStatus(CFWriteStreamRef stream)
ToCFStreamStatus CFWriteStreamGetStatus(CFWriteStreamRef _Null_unspecified stream)

Declaration
FromCFErrorRef CFReadStreamCopyError(CFReadStreamRef stream)
ToCFErrorRef _Null_unspecified CFReadStreamCopyError(CFReadStreamRef _Null_unspecified stream)

Declaration
FromCFErrorRef CFWriteStreamCopyError(CFWriteStreamRef stream)
ToCFErrorRef _Null_unspecified CFWriteStreamCopyError(CFWriteStreamRef _Null_unspecified stream)

Declaration
FromBoolean CFReadStreamOpen(CFReadStreamRef stream)
ToBoolean CFReadStreamOpen(CFReadStreamRef _Null_unspecified stream)

Declaration
FromBoolean CFWriteStreamOpen(CFWriteStreamRef stream)
ToBoolean CFWriteStreamOpen(CFWriteStreamRef _Null_unspecified stream)

Declaration
Fromvoid CFReadStreamClose(CFReadStreamRef stream)
Tovoid CFReadStreamClose(CFReadStreamRef _Null_unspecified stream)

Declaration
Fromvoid CFWriteStreamClose(CFWriteStreamRef stream)
Tovoid CFWriteStreamClose(CFWriteStreamRef _Null_unspecified stream)

Declaration
FromBoolean CFReadStreamHasBytesAvailable(CFReadStreamRef stream)
ToBoolean CFReadStreamHasBytesAvailable(CFReadStreamRef _Null_unspecified stream)

Declaration
FromCFIndex CFReadStreamRead(CFReadStreamRef stream, UInt8 *buffer, CFIndex bufferLength)
ToCFIndex CFReadStreamRead(CFReadStreamRef _Null_unspecified stream, UInt8 * _Null_unspecified buffer, CFIndex bufferLength)

Declaration
Fromconst UInt8 *CFReadStreamGetBuffer(CFReadStreamRef stream, CFIndex maxBytesToRead, CFIndex *numBytesRead)
Toconst UInt8 * _Null_unspecified CFReadStreamGetBuffer(CFReadStreamRef _Null_unspecified stream, CFIndex maxBytesToRead, CFIndex * _Null_unspecified numBytesRead)

Declaration
FromBoolean CFWriteStreamCanAcceptBytes(CFWriteStreamRef stream)
ToBoolean CFWriteStreamCanAcceptBytes(CFWriteStreamRef _Null_unspecified stream)

Declaration
FromCFIndex CFWriteStreamWrite(CFWriteStreamRef stream, const UInt8 *buffer, CFIndex bufferLength)
ToCFIndex CFWriteStreamWrite(CFWriteStreamRef _Null_unspecified stream, const UInt8 * _Null_unspecified buffer, CFIndex bufferLength)

Declaration
FromCFTypeRef CFReadStreamCopyProperty(CFReadStreamRef stream, CFStreamPropertyKey propertyName)
ToCFTypeRef _Null_unspecified CFReadStreamCopyProperty(CFReadStreamRef _Null_unspecified stream, CFStreamPropertyKey _Null_unspecified propertyName)

Declaration
FromCFTypeRef CFWriteStreamCopyProperty(CFWriteStreamRef stream, CFStreamPropertyKey propertyName)
ToCFTypeRef _Null_unspecified CFWriteStreamCopyProperty(CFWriteStreamRef _Null_unspecified stream, CFStreamPropertyKey _Null_unspecified propertyName)

Declaration
FromBoolean CFReadStreamSetProperty(CFReadStreamRef stream, CFStreamPropertyKey propertyName, CFTypeRef propertyValue)
ToBoolean CFReadStreamSetProperty(CFReadStreamRef _Null_unspecified stream, CFStreamPropertyKey _Null_unspecified propertyName, CFTypeRef _Null_unspecified propertyValue)

Declaration
FromBoolean CFWriteStreamSetProperty(CFWriteStreamRef stream, CFStreamPropertyKey propertyName, CFTypeRef propertyValue)
ToBoolean CFWriteStreamSetProperty(CFWriteStreamRef _Null_unspecified stream, CFStreamPropertyKey _Null_unspecified propertyName, CFTypeRef _Null_unspecified propertyValue)

Declaration
FromBoolean CFReadStreamSetClient(CFReadStreamRef stream, CFOptionFlags streamEvents, CFReadStreamClientCallBack clientCB, CFStreamClientContext *clientContext)
ToBoolean CFReadStreamSetClient(CFReadStreamRef _Null_unspecified stream, CFOptionFlags streamEvents, CFReadStreamClientCallBack _Null_unspecified clientCB, CFStreamClientContext * _Null_unspecified clientContext)

Declaration
FromBoolean CFWriteStreamSetClient(CFWriteStreamRef stream, CFOptionFlags streamEvents, CFWriteStreamClientCallBack clientCB, CFStreamClientContext *clientContext)
ToBoolean CFWriteStreamSetClient(CFWriteStreamRef _Null_unspecified stream, CFOptionFlags streamEvents, CFWriteStreamClientCallBack _Null_unspecified clientCB, CFStreamClientContext * _Null_unspecified clientContext)

Declaration
Fromvoid CFReadStreamScheduleWithRunLoop(CFReadStreamRef stream, CFRunLoopRef runLoop, CFRunLoopMode runLoopMode)
Tovoid CFReadStreamScheduleWithRunLoop(CFReadStreamRef _Null_unspecified stream, CFRunLoopRef _Null_unspecified runLoop, CFRunLoopMode _Null_unspecified runLoopMode)

Declaration
Fromvoid CFWriteStreamScheduleWithRunLoop(CFWriteStreamRef stream, CFRunLoopRef runLoop, CFRunLoopMode runLoopMode)
Tovoid CFWriteStreamScheduleWithRunLoop(CFWriteStreamRef _Null_unspecified stream, CFRunLoopRef _Null_unspecified runLoop, CFRunLoopMode _Null_unspecified runLoopMode)

Declaration
Fromvoid CFReadStreamUnscheduleFromRunLoop(CFReadStreamRef stream, CFRunLoopRef runLoop, CFRunLoopMode runLoopMode)
Tovoid CFReadStreamUnscheduleFromRunLoop(CFReadStreamRef _Null_unspecified stream, CFRunLoopRef _Null_unspecified runLoop, CFRunLoopMode _Null_unspecified runLoopMode)

Declaration
Fromvoid CFWriteStreamUnscheduleFromRunLoop(CFWriteStreamRef stream, CFRunLoopRef runLoop, CFRunLoopMode runLoopMode)
Tovoid CFWriteStreamUnscheduleFromRunLoop(CFWriteStreamRef _Null_unspecified stream, CFRunLoopRef _Null_unspecified runLoop, CFRunLoopMode _Null_unspecified runLoopMode)

Declaration
Fromvoid CFReadStreamSetDispatchQueue(CFReadStreamRef stream, dispatch_queue_t q)
Tovoid CFReadStreamSetDispatchQueue(CFReadStreamRef _Null_unspecified stream, dispatch_queue_t _Null_unspecified q)

Declaration
Fromvoid CFWriteStreamSetDispatchQueue(CFWriteStreamRef stream, dispatch_queue_t q)
Tovoid CFWriteStreamSetDispatchQueue(CFWriteStreamRef _Null_unspecified stream, dispatch_queue_t _Null_unspecified q)

Declaration
Fromdispatch_queue_t CFReadStreamCopyDispatchQueue(CFReadStreamRef stream)
Todispatch_queue_t _Null_unspecified CFReadStreamCopyDispatchQueue(CFReadStreamRef _Null_unspecified stream)

Declaration
Fromdispatch_queue_t CFWriteStreamCopyDispatchQueue(CFWriteStreamRef stream)
Todispatch_queue_t _Null_unspecified CFWriteStreamCopyDispatchQueue(CFWriteStreamRef _Null_unspecified stream)

Declaration
FromCFStreamError CFReadStreamGetError(CFReadStreamRef stream)
ToCFStreamError CFReadStreamGetError(CFReadStreamRef _Null_unspecified stream)

Declaration
FromCFStreamError CFWriteStreamGetError(CFWriteStreamRef stream)
ToCFStreamError CFWriteStreamGetError(CFWriteStreamRef _Null_unspecified stream)