diff --git a/CFStream.c b/CFStream.c index f72e46d..33ec8d1 100644 --- a/CFStream.c +++ b/CFStream.c @@ -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); }); diff --git a/include/CoreFoundation/CFStream.h b/include/CoreFoundation/CFStream.h index 16a37f2..a3f9fcf 100644 --- a/include/CoreFoundation/CFStream.h +++ b/include/CoreFoundation/CFStream.h @@ -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