Add missing CFStream constant

This commit is contained in:
Andrew Hyatt 2017-05-06 10:52:11 -07:00
parent 5a22df59f9
commit f8ed593701
2 changed files with 5 additions and 0 deletions

View File

@ -360,6 +360,8 @@ CONST_STRING_DECL(kCFStreamPropertySocketRemotePortNumber, "kCFStreamPropertySoc
CONST_STRING_DECL(kCFStreamPropertyDataWritten, "kCFStreamPropertyDataWritten")
CONST_STRING_DECL(kCFStreamPropertyAppendToFile, "kCFStreamPropertyAppendToFile")
CONST_STRING_DECL(kCFStreamPropertySourceApplication, "kCFStreamPropertySourceApplication")
CF_PRIVATE void __CFStreamInitialize(void) {
static dispatch_once_t initOnce;
dispatch_once(&initOnce, ^{ __kCFReadStreamTypeID = _CFRuntimeRegisterClass(&__CFReadStreamClass); __kCFWriteStreamTypeID = _CFRuntimeRegisterClass(&__CFWriteStreamClass); });

View File

@ -129,6 +129,9 @@ const CFStringRef kCFStreamPropertySocketRemoteHostName;
CF_EXPORT
const CFStringRef kCFStreamPropertySocketRemotePortNumber;
CF_EXPORT
const CFStringRef kCFStreamPropertySourceApplication;
CF_IMPLICIT_BRIDGING_DISABLED
/* Socket streams; the returned streams are paired such that they use the same socket; pass NULL if you want only the read stream or the write stream */
CF_EXPORT