]> git.saurik.com Git - apple/cf.git/blobdiff - CFStreamAbstract.h
CF-635.15.tar.gz
[apple/cf.git] / CFStreamAbstract.h
index bf12c928cf9ad3196594efcaa0199e2f6ba21300..28c9412c04c77f39cdf8c33dfbf61b26782b3e03 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2010 Apple Inc. All rights reserved.
+ * Copyright (c) 2011 Apple Inc. All rights reserved.
  *
  * @APPLE_LICENSE_HEADER_START@
  * 
@@ -22,7 +22,7 @@
  */
 
 /*     CFStreamAbstract.h
-       Copyright (c) 2000-2009, Apple Inc. All rights reserved.
+       Copyright (c) 2000-2011, Apple Inc. All rights reserved.
 */
 
 #if !defined(__COREFOUNDATION_CFSTREAMABSTRACT__)
@@ -134,11 +134,18 @@ CF_EXPORT
 void *_CFWriteStreamGetClient(CFWriteStreamRef writeStream);
 
 // Returns an array of the runloops and modes on which the stream is currently scheduled
+// Note that these are unretained mutable arrays - use the copy variant instead.
 CF_EXPORT
 CFArrayRef _CFReadStreamGetRunLoopsAndModes(CFReadStreamRef readStream);
 CF_EXPORT
 CFArrayRef _CFWriteStreamGetRunLoopsAndModes(CFWriteStreamRef writeStream);
 
+// Returns an array of the runloops and modes on which the stream is currently scheduled
+CF_EXPORT
+CFArrayRef _CFReadStreamCopyRunLoopsAndModes(CFReadStreamRef readStream);
+CF_EXPORT
+CFArrayRef _CFWriteStreamCopyRunLoopsAndModes(CFWriteStreamRef writeStream);
+
 /* Deprecated versions; here for backwards compatibility. */
 typedef struct {
     CFIndex version; /* == 1 */