Ronald Oussoren avatar Ronald Oussoren committed 8807230

Port CFNetwork to OSX 10.7

Comments (0)

Files changed (9)

pyobjc-framework-CFNetwork/BridgeSupport/CFNetwork.bridgesupport

   <constant name='kCFNetworkProxiesGopherPort' type='@' />
   <constant name='kCFNetworkProxiesGopherProxy' type='@' />
   <constant name='kCFProxyAutoConfigurationHTTPResponseKey' type='@' />
+  <constant name='kCFProxyAutoConfigurationJavaScriptKey' type='@' />
   <constant name='kCFURLErrorFailingURLErrorKey' type='@' />
   <constant name='kCFURLErrorFailingURLStringErrorKey' type='@' />
   <constant name='kCFStreamErrorDomainMach' type='i' />
   <constant name='kCFStreamErrorDomainNetDB' type='i' />
   <constant name='kCFStreamErrorDomainSystemConfiguration' type='i' />
   <constant name='kCFStreamErrorDomainNetServices' type='i' />
-  <constant name='kCFProxyTypeKey' type='^{__CFString=}' />
-  <constant name='kCFProxyHostNameKey' type='^{__CFString=}' />
-  <constant name='kCFProxyPortNumberKey' type='^{__CFString=}' />
-  <constant name='kCFProxyAutoConfigurationURLKey' type='^{__CFString=}' />
-  <constant name='kCFProxyUsernameKey' type='^{__CFString=}' />
-  <constant name='kCFProxyPasswordKey' type='^{__CFString=}' />
-  <constant name='kCFProxyTypeNone' type='^{__CFString=}' />
-  <constant name='kCFProxyTypeHTTP' type='^{__CFString=}' />
-  <constant name='kCFProxyTypeHTTPS' type='^{__CFString=}' />
-  <constant name='kCFProxyTypeSOCKS' type='^{__CFString=}' />
-  <constant name='kCFProxyTypeFTP' type='^{__CFString=}' />
-  <constant name='kCFProxyTypeAutoConfigurationURL' type='^{__CFString=}' />
-  <constant name='kCFNetworkProxiesHTTPEnable' type='^{__CFString=}' />
-  <constant name='kCFNetworkProxiesHTTPPort' type='^{__CFString=}' />
-  <constant name='kCFNetworkProxiesHTTPProxy' type='^{__CFString=}' />
-  <constant name='kCFNetworkProxiesProxyAutoConfigEnable' type='^{__CFString=}' />
-  <constant name='kCFNetworkProxiesProxyAutoConfigURLString' type='^{__CFString=}' />
-  <constant name='kCFErrorDomainCFNetwork' type='^{__CFString=}' />
-  <constant name='kCFErrorDomainWinSock' type='^{__CFString=}' />
-  <constant name='kCFGetAddrInfoFailureKey' type='^{__CFString=}' />
-  <constant name='kCFSOCKSStatusCodeKey' type='^{__CFString=}' />
-  <constant name='kCFSOCKSVersionKey' type='^{__CFString=}' />
-  <constant name='kCFSOCKSNegotiationMethodKey' type='^{__CFString=}' />
-  <constant name='kCFDNSServiceFailureKey' type='^{__CFString=}' />
-  <constant name='kCFFTPStatusCodeKey' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertyHTTPResponseHeader' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertyHTTPFinalURL' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertyHTTPFinalRequest' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertyHTTPProxy' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertyHTTPProxyHost' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertyHTTPProxyPort' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertyHTTPSProxyHost' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertyHTTPSProxyPort' type='^{__CFString=}' />
-  <constant name='kCFHTTPAuthenticationUsername' type='^{__CFString=}' />
-  <constant name='kCFHTTPAuthenticationPassword' type='^{__CFString=}' />
-  <constant name='kCFHTTPAuthenticationAccountDomain' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertyHTTPShouldAutoredirect' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertyHTTPAttemptPersistentConnection' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertyHTTPRequestBytesWrittenCount' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertyFTPUserName' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertyFTPPassword' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertyFTPUsePassiveMode' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertyFTPResourceSize' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertyFTPFetchResourceInfo' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertyFTPFileTransferOffset' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertyFTPAttemptPersistentConnection' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertyFTPProxy' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertyFTPProxyHost' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertyFTPProxyPort' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertyFTPProxyUser' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertyFTPProxyPassword' type='^{__CFString=}' />
-  <constant name='kCFHTTPVersion1_0' type='^{__CFString=}' />
-  <constant name='kCFHTTPVersion1_1' type='^{__CFString=}' />
-  <constant name='kCFHTTPAuthenticationSchemeBasic' type='^{__CFString=}' />
-  <constant name='kCFHTTPAuthenticationSchemeDigest' type='^{__CFString=}' />
-  <constant name='kCFHTTPAuthenticationSchemeNTLM' type='^{__CFString=}' />
-  <constant name='kCFHTTPAuthenticationSchemeNegotiate' type='^{__CFString=}' />
-  <constant name='kCFFTPResourceMode' type='^{__CFString=}' />
-  <constant name='kCFFTPResourceName' type='^{__CFString=}' />
-  <constant name='kCFFTPResourceOwner' type='^{__CFString=}' />
-  <constant name='kCFFTPResourceGroup' type='^{__CFString=}' />
-  <constant name='kCFFTPResourceLink' type='^{__CFString=}' />
-  <constant name='kCFFTPResourceSize' type='^{__CFString=}' />
-  <constant name='kCFFTPResourceType' type='^{__CFString=}' />
-  <constant name='kCFFTPResourceModDate' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertySOCKSPassword' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertySOCKSProxy' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertySOCKSProxyHost' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertySOCKSProxyPort' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertySOCKSUser' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertySOCKSVersion' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertyShouldCloseNativeSocket' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertySocketSecurityLevel' type='^{__CFString=}' />
-  <constant name='kCFStreamSocketSOCKSVersion4' type='^{__CFString=}' />
-  <constant name='kCFStreamSocketSOCKSVersion5' type='^{__CFString=}' />
-  <constant name='kCFStreamSocketSecurityLevelNegotiatedSSL' type='^{__CFString=}' />
-  <constant name='kCFStreamSocketSecurityLevelNone' type='^{__CFString=}' />
-  <constant name='kCFStreamSocketSecurityLevelSSLv2' type='^{__CFString=}' />
-  <constant name='kCFStreamSocketSecurityLevelSSLv3' type='^{__CFString=}' />
-  <constant name='kCFStreamSocketSecurityLevelTLSv1' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertySOCKSProxyHost' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertySOCKSProxyPort' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertySOCKSVersion' type='^{__CFString=}' />
-  <constant name='kCFStreamSocketSOCKSVersion4' type='^{__CFString=}' />
-  <constant name='kCFStreamSocketSOCKSVersion5' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertySOCKSUser' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertySOCKSPassword' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertySocketSecurityLevel' type='^{__CFString=}' />
-  <constant name='kCFStreamSocketSecurityLevelNone' type='^{__CFString=}' />
-  <constant name='kCFStreamSocketSecurityLevelSSLv2' type='^{__CFString=}' />
-  <constant name='kCFStreamSocketSecurityLevelSSLv3' type='^{__CFString=}' />
-  <constant name='kCFStreamSocketSecurityLevelTLSv1' type='^{__CFString=}' />
-  <constant name='kCFStreamSocketSecurityLevelNegotiatedSSL' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertyShouldCloseNativeSocket' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertySocketRemoteHost' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertySocketRemoteNetService' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertySSLPeerCertificates' type='^{__CFString=}' />
-  <constant name='kCFStreamPropertySSLSettings' type='^{__CFString=}' />
-  <constant name='kCFStreamSSLLevel' type='^{__CFString=}' />
-  <constant name='kCFStreamSSLAllowsExpiredCertificates' type='^{__CFString=}' />
-  <constant name='kCFStreamSSLAllowsExpiredRoots' type='^{__CFString=}' />
-  <constant name='kCFStreamSSLAllowsAnyRoot' type='^{__CFString=}' />
-  <constant name='kCFStreamSSLValidatesCertificateChain' type='^{__CFString=}' />
-  <constant name='kCFStreamSSLPeerName' type='^{__CFString=}' />
-  <constant name='kCFStreamSSLCertificates' type='^{__CFString=}' />
-  <constant name='kCFStreamSSLIsServer' type='^{__CFString=}' />
+  <constant name='kCFProxyTypeKey' type='@' />
+  <constant name='kCFProxyHostNameKey' type='@' />
+  <constant name='kCFProxyPortNumberKey' type='@' />
+  <constant name='kCFProxyAutoConfigurationURLKey' type='@' />
+  <constant name='kCFProxyUsernameKey' type='@' />
+  <constant name='kCFProxyTypeAutoConfigurationJavaScript' type='@' />
+  <constant name='kCFNetworkProxiesProxyAutoConfigJavaScript' type='@' />
+  <constant name='kCFNetworkProxiesProxyAutoDiscoveryEnable' type='@' />
+  <constant name='kCFProxyPasswordKey' type='@' />
+  <constant name='kCFProxyTypeNone' type='@' />
+  <constant name='kCFProxyTypeHTTP' type='@' />
+  <constant name='kCFProxyTypeHTTPS' type='@' />
+  <constant name='kCFProxyTypeSOCKS' type='@' />
+  <constant name='kCFProxyTypeFTP' type='@' />
+  <constant name='kCFStreamNetworkServiceType' type='@' />
+  <constant name='kCFStreamNetworkServiceTypeVoIP' type='@' />
+  <constant name='kCFStreamNetworkServiceTypeVideo' type='@' />
+  <constant name='kCFStreamNetworkServiceTypeBackground' type='@' />
+  <constant name='kCFStreamNetworkServiceTypeVoice' type='@' />
+  <constant name='kCFProxyTypeAutoConfigurationURL' type='@' />
+  <constant name='kCFNetworkProxiesHTTPEnable' type='@' />
+  <constant name='kCFNetworkProxiesHTTPPort' type='@' />
+  <constant name='kCFNetworkProxiesHTTPProxy' type='@' />
+  <constant name='kCFNetworkProxiesProxyAutoConfigEnable' type='@' />
+  <constant name='kCFNetworkProxiesProxyAutoConfigURLString' type='@' />
+  <constant name='kCFErrorDomainCFNetwork' type='@' />
+  <constant name='kCFErrorDomainWinSock' type='@' />
+  <constant name='kCFGetAddrInfoFailureKey' type='@' />
+  <constant name='kCFSOCKSStatusCodeKey' type='@' />
+  <constant name='kCFSOCKSVersionKey' type='@' />
+  <constant name='kCFSOCKSNegotiationMethodKey' type='@' />
+  <constant name='kCFDNSServiceFailureKey' type='@' />
+  <constant name='kCFFTPStatusCodeKey' type='@' />
+  <constant name='kCFStreamPropertyHTTPResponseHeader' type='@' />
+  <constant name='kCFStreamPropertyHTTPFinalURL' type='@' />
+  <constant name='kCFStreamPropertyHTTPFinalRequest' type='@' />
+  <constant name='kCFStreamPropertyHTTPProxy' type='@' />
+  <constant name='kCFStreamPropertyHTTPProxyHost' type='@' />
+  <constant name='kCFStreamPropertyHTTPProxyPort' type='@' />
+  <constant name='kCFStreamPropertyHTTPSProxyHost' type='@' />
+  <constant name='kCFStreamPropertyHTTPSProxyPort' type='@' />
+  <constant name='kCFHTTPAuthenticationUsername' type='@' />
+  <constant name='kCFHTTPAuthenticationPassword' type='@' />
+  <constant name='kCFHTTPAuthenticationAccountDomain' type='@' />
+  <constant name='kCFStreamPropertyHTTPShouldAutoredirect' type='@' />
+  <constant name='kCFStreamPropertyHTTPAttemptPersistentConnection' type='@' />
+  <constant name='kCFStreamPropertyHTTPRequestBytesWrittenCount' type='@' />
+  <constant name='kCFStreamPropertyFTPUserName' type='@' />
+  <constant name='kCFStreamPropertyFTPPassword' type='@' />
+  <constant name='kCFStreamPropertyFTPUsePassiveMode' type='@' />
+  <constant name='kCFStreamPropertyFTPResourceSize' type='@' />
+  <constant name='kCFStreamPropertyFTPFetchResourceInfo' type='@' />
+  <constant name='kCFStreamPropertyFTPFileTransferOffset' type='@' />
+  <constant name='kCFStreamPropertyFTPAttemptPersistentConnection' type='@' />
+  <constant name='kCFStreamPropertyFTPProxy' type='@' />
+  <constant name='kCFStreamPropertyFTPProxyHost' type='@' />
+  <constant name='kCFStreamPropertyFTPProxyPort' type='@' />
+  <constant name='kCFStreamPropertyFTPProxyUser' type='@' />
+  <constant name='kCFStreamPropertyFTPProxyPassword' type='@' />
+  <constant name='kCFHTTPVersion1_0' type='@' />
+  <constant name='kCFHTTPVersion1_1' type='@' />
+  <constant name='kCFHTTPAuthenticationSchemeBasic' type='@' />
+  <constant name='kCFHTTPAuthenticationSchemeDigest' type='@' />
+  <constant name='kCFHTTPAuthenticationSchemeNTLM' type='@' />
+  <constant name='kCFHTTPAuthenticationSchemeNegotiate' type='@' />
+  <constant name='kCFHTTPAuthenticationSchemeNegotiate2' type='@' />
+  <constant name='kCFHTTPAuthenticationSchemeXMobileMeAuthToken' type='@' />
+  <constant name='kCFHTTPAuthenticationSchemeKerberos' type='@' />
+  <constant name='kCFFTPResourceMode' type='@' />
+  <constant name='kCFFTPResourceName' type='@' />
+  <constant name='kCFFTPResourceOwner' type='@' />
+  <constant name='kCFFTPResourceGroup' type='@' />
+  <constant name='kCFFTPResourceLink' type='@' />
+  <constant name='kCFFTPResourceSize' type='@' />
+  <constant name='kCFFTPResourceType' type='@' />
+  <constant name='kCFFTPResourceModDate' type='@' />
+  <constant name='kCFStreamPropertySOCKSPassword' type='@' />
+  <constant name='kCFStreamPropertySOCKSProxy' type='@' />
+  <constant name='kCFStreamPropertySOCKSProxyHost' type='@' />
+  <constant name='kCFStreamPropertySOCKSProxyPort' type='@' />
+  <constant name='kCFStreamPropertySOCKSUser' type='@' />
+  <constant name='kCFStreamPropertySOCKSVersion' type='@' />
+  <constant name='kCFStreamPropertyShouldCloseNativeSocket' type='@' />
+  <constant name='kCFStreamPropertySocketSecurityLevel' type='@' />
+  <constant name='kCFStreamSocketSOCKSVersion4' type='@' />
+  <constant name='kCFStreamSocketSOCKSVersion5' type='@' />
+  <constant name='kCFStreamSocketSecurityLevelNegotiatedSSL' type='@' />
+  <constant name='kCFStreamSocketSecurityLevelNone' type='@' />
+  <constant name='kCFStreamSocketSecurityLevelSSLv2' type='@' />
+  <constant name='kCFStreamSocketSecurityLevelSSLv3' type='@' />
+  <constant name='kCFStreamSocketSecurityLevelTLSv1' type='@' />
+  <constant name='kCFStreamPropertySOCKSProxyHost' type='@' />
+  <constant name='kCFStreamPropertySOCKSProxyPort' type='@' />
+  <constant name='kCFStreamPropertySOCKSVersion' type='@' />
+  <constant name='kCFStreamSocketSOCKSVersion4' type='@' />
+  <constant name='kCFStreamSocketSOCKSVersion5' type='@' />
+  <constant name='kCFStreamPropertySOCKSUser' type='@' />
+  <constant name='kCFStreamPropertySOCKSPassword' type='@' />
+  <constant name='kCFStreamPropertySocketSecurityLevel' type='@' />
+  <constant name='kCFStreamSocketSecurityLevelNone' type='@' />
+  <constant name='kCFStreamSocketSecurityLevelSSLv2' type='@' />
+  <constant name='kCFStreamSocketSecurityLevelSSLv3' type='@' />
+  <constant name='kCFStreamSocketSecurityLevelTLSv1' type='@' />
+  <constant name='kCFStreamSocketSecurityLevelNegotiatedSSL' type='@' />
+  <constant name='kCFStreamPropertyShouldCloseNativeSocket' type='@' />
+  <constant name='kCFStreamPropertySocketRemoteHost' type='@' />
+  <constant name='kCFStreamPropertySocketRemoteNetService' type='@' />
+  <constant name='kCFStreamPropertySSLPeerCertificates' type='@' />
+  <constant name='kCFStreamPropertySSLSettings' type='@' />
+  <constant name='kCFStreamSSLLevel' type='@' />
+  <constant name='kCFStreamSSLAllowsExpiredCertificates' type='@' />
+  <constant name='kCFStreamSSLAllowsExpiredRoots' type='@' />
+  <constant name='kCFStreamSSLAllowsAnyRoot' type='@' />
+  <constant name='kCFStreamSSLValidatesCertificateChain' type='@' />
+  <constant name='kCFStreamSSLPeerName' type='@' />
+  <constant name='kCFStreamSSLCertificates' type='@' />
+  <constant name='kCFStreamSSLIsServer' type='@' />
   <constant name='kCFStreamErrorDomainWinSock' type='i' />
-  <constant name='kCFStreamPropertyProxyLocalBypass' type='^{__CFString=}' />
+  <constant name='kCFStreamPropertyProxyLocalBypass' type='@' />
   <enum name='kCFErrorHTTPAuthenticationTypeUnsupported' value='300' />
   <enum name='kCFErrorHTTPBadCredentials' value='301' />
   <enum name='kCFErrorHTTPBadProxyCredentials' value='307' />
     <arg type='^{_CFHTTPAuthentication=}' />
   </function>
   <function name='CFHTTPAuthenticationCopyMethod'>
-    <retval type='^{__CFString=}' already_cfretained='true' />
+    <retval type='@' already_cfretained='true' />
     <arg type='^{_CFHTTPAuthentication=}' />
   </function>
   <function name='CFHTTPAuthenticationCopyRealm'>
-    <retval type='^{__CFString=}' already_cfretained='true' />
+    <retval type='@' already_cfretained='true' />
     <arg type='^{_CFHTTPAuthentication=}' />
   </function>
   <function name='CFHTTPAuthenticationCreateFromResponse'>
     <retval type='B' />
     <arg type='^{__CFHTTPMessage=}' />
     <arg type='^{__CFHTTPMessage=}' />
-    <arg type='^{__CFString=}' />
-    <arg type='^{__CFString=}' />
-    <arg type='^{__CFString=}' />
+    <arg type='@' />
+    <arg type='@' />
+    <arg type='@' />
     <arg type='B' />
   </function>
   <function name='CFHTTPMessageAppendBytes'>
     <retval type='B' />
     <arg type='^{__CFHTTPMessage=}' />
     <arg type='^{_CFHTTPAuthentication=}' />
-    <arg type='^{__CFString=}' />
-    <arg type='^{__CFString=}' />
+    <arg type='@' />
+    <arg type='@' />
     <arg type='^{_CFStreamError=ii}' type64='^{_CFStreamError=qi}' type_modifier='o' />
   </function>
   <function name='CFHTTPMessageCopyAllHeaderFields'>
     <arg type='^{__CFHTTPMessage=}' />
   </function>
   <function name='CFHTTPMessageCopyHeaderFieldValue'>
-    <retval type='^{__CFString=}' already_cfretained='true' />
+    <retval type='@' already_cfretained='true' />
     <arg type='^{__CFHTTPMessage=}' />
-    <arg type='^{__CFString=}' />
+    <arg type='@' />
   </function>
   <function name='CFHTTPMessageCopyRequestMethod'>
-    <retval type='^{__CFString=}' already_cfretained='true' />
+    <retval type='@' already_cfretained='true' />
     <arg type='^{__CFHTTPMessage=}' />
   </function>
   <function name='CFHTTPMessageCopyRequestURL'>
     <arg type='^{__CFHTTPMessage=}' />
   </function>
   <function name='CFHTTPMessageCopyResponseStatusLine'>
-    <retval type='^{__CFString=}' already_cfretained='true' />
+    <retval type='@' already_cfretained='true' />
     <arg type='^{__CFHTTPMessage=}' />
   </function>
   <function name='CFHTTPMessageCopySerializedMessage'>
     <arg type='^{__CFHTTPMessage=}' />
   </function>
   <function name='CFHTTPMessageCopyVersion'>
-    <retval type='^{__CFString=}' already_cfretained='true' />
+    <retval type='@' already_cfretained='true' />
     <arg type='^{__CFHTTPMessage=}' />
   </function>
   <function name='CFHTTPMessageCreateCopy'>
   <function name='CFHTTPMessageCreateRequest'>
     <retval type='^{__CFHTTPMessage=}' already_cfretained='true' />
     <arg type='^{__CFAllocator=}' />
-    <arg type='^{__CFString=}' />
+    <arg type='@' />
     <arg type='^{__CFURL=}' />
-    <arg type='^{__CFString=}' />
+    <arg type='@' />
   </function>
   <function name='CFHTTPMessageCreateResponse'>
     <retval type='^{__CFHTTPMessage=}' already_cfretained='true' />
     <arg type='^{__CFAllocator=}' />
     <arg type='l' type64='l' />
-    <arg type='^{__CFString=}' />
-    <arg type='^{__CFString=}' />
+    <arg type='@' />
+    <arg type='@' />
   </function>
   <function name='CFHTTPMessageGetResponseStatusCode'>
     <retval type='l' type64='q' />
   </function>
   <function name='CFHTTPMessageSetHeaderFieldValue'>
     <arg type='^{__CFHTTPMessage=}' />
-    <arg type='^{__CFString=}' />
-    <arg type='^{__CFString=}' />
+    <arg type='@' />
+    <arg type='@' />
   </function>
   <function name='CFHTTPReadStreamSetProxy'>
     <arg type='^{__CFReadStream=}' />
-    <arg type='^{__CFString=}' />
+    <arg type='@' />
     <arg type='l' type64='l' />
   </function>
   <function name='CFHTTPReadStreamSetRedirectsAutomatically'>
   <function name='CFHostCreateWithName'>
     <retval type='^{__CFHost=}' already_cfretained='true' />
     <arg type='^{__CFAllocator=}' />
-    <arg type='^{__CFString=}' />
+    <arg type='@' />
   </function>
   <function name='CFHostGetAddressing'>
     <retval type='^{__CFArray=}' />
   <function name='CFHostScheduleWithRunLoop'>
     <arg type='^{__CFHost=}' />
     <arg type='^{__CFRunLoop=}' />
-    <arg type='^{__CFString=}' />
+    <arg type='@' />
   </function>
   <function name='CFHostSetClient'>
     <retval type='B' />
   <function name='CFHostUnscheduleFromRunLoop'>
     <arg type='^{__CFHost=}' />
     <arg type='^{__CFRunLoop=}' />
-    <arg type='^{__CFString=}' />
+    <arg type='@' />
   </function>
   <function name='CFNetDiagnosticCopyNetworkStatusPassively'>
     <retval type='l' />
   </function>
   <function name='CFNetDiagnosticSetName'>
     <arg type='^{__CFNetDiagnostic=}' />
-    <arg type='^{__CFString=}' />
+    <arg type='@' />
   </function>
   <function name='CFNetServiceBrowserCreate'>
     <retval type='^{__CFNetServiceBrowser=}' already_cfretained='true' />
   <function name='CFNetServiceBrowserScheduleWithRunLoop'>
     <arg type='^{__CFNetServiceBrowser=}' />
     <arg type='^{__CFRunLoop=}' />
-    <arg type='^{__CFString=}' />
+    <arg type='@' />
   </function>
   <function name='CFNetServiceBrowserSearchForDomains'>
     <retval type='B' />
   <function name='CFNetServiceBrowserSearchForServices'>
     <retval type='B' />
     <arg type='^{__CFNetServiceBrowser=}' />
-    <arg type='^{__CFString=}' />
-    <arg type='^{__CFString=}' />
+    <arg type='@' />
+    <arg type='@' />
     <arg type='^{_CFStreamError=ii}' type64='^{_CFStreamError=qi}' type_modifier='o' />
   </function>
   <function name='CFNetServiceBrowserStopSearch'>
   <function name='CFNetServiceBrowserUnscheduleFromRunLoop'>
     <arg type='^{__CFNetServiceBrowser=}' />
     <arg type='^{__CFRunLoop=}' />
-    <arg type='^{__CFString=}' />
+    <arg type='@' />
   </function>
   <function name='CFNetServiceCancel'>
     <arg type='^{__CFNetService=}' />
   <function name='CFNetServiceCreate'>
     <retval type='^{__CFNetService=}' already_cfretained='true' />
     <arg type='^{__CFAllocator=}' />
-    <arg type='^{__CFString=}' />
-    <arg type='^{__CFString=}' />
-    <arg type='^{__CFString=}' />
+    <arg type='@' />
+    <arg type='@' />
+    <arg type='@' />
     <arg type='l' type64='l' />
   </function>
   <function name='CFNetServiceCreateCopy'>
     <arg type='^{__CFNetService=}' />
   </function>
   <function name='CFNetServiceGetDomain'>
-    <retval type='^{__CFString=}' />
+    <retval type='@' />
     <arg type='^{__CFNetService=}' />
   </function>
   <function name='CFNetServiceGetName'>
-    <retval type='^{__CFString=}' />
+    <retval type='@' />
     <arg type='^{__CFNetService=}' />
   </function>
   <function name='CFNetServiceGetPortNumber'>
     <arg type='^{__CFNetService=}' />
   </function>
   <function name='CFNetServiceGetProtocolSpecificInformation'>
-    <retval type='^{__CFString=}' />
+    <retval type='@' />
     <arg type='^{__CFNetService=}' />
   </function>
   <function name='CFNetServiceGetTXTData'>
     <arg type='^{__CFNetService=}' />
   </function>
   <function name='CFNetServiceGetTargetHost'>
-    <retval type='^{__CFString=}' />
+    <retval type='@' />
     <arg type='^{__CFNetService=}' />
   </function>
   <function name='CFNetServiceGetType'>
-    <retval type='^{__CFString=}' />
+    <retval type='@' />
     <arg type='^{__CFNetService=}' />
   </function>
   <function name='CFNetServiceGetTypeID'>
   <function name='CFNetServiceMonitorScheduleWithRunLoop'>
     <arg type='^{__CFNetServiceMonitor=}' />
     <arg type='^{__CFRunLoop=}' />
-    <arg type='^{__CFString=}' />
+    <arg type='@' />
   </function>
   <function name='CFNetServiceMonitorStart'>
     <retval type='B' />
   <function name='CFNetServiceMonitorUnscheduleFromRunLoop'>
     <arg type='^{__CFNetServiceMonitor=}' />
     <arg type='^{__CFRunLoop=}' />
-    <arg type='^{__CFString=}' />
+    <arg type='@' />
   </function>
   <function name='CFNetServiceRegister'>
     <retval type='B' />
   <function name='CFNetServiceScheduleWithRunLoop'>
     <arg type='^{__CFNetService=}' />
     <arg type='^{__CFRunLoop=}' />
-    <arg type='^{__CFString=}' />
+    <arg type='@' />
   </function>
   <function name='CFNetServiceSetClient'>
     <retval type='B' />
   </function>
   <function name='CFNetServiceSetProtocolSpecificInformation'>
     <arg type='^{__CFNetService=}' />
-    <arg type='^{__CFString=}' />
+    <arg type='@' />
   </function>
   <function name='CFNetServiceSetTXTData'>
     <retval type='B' />
   <function name='CFNetServiceUnscheduleFromRunLoop'>
     <arg type='^{__CFNetService=}' />
     <arg type='^{__CFRunLoop=}' />
-    <arg type='^{__CFString=}' />
+    <arg type='@' />
   </function>
   <function name='CFNetworkCopyProxiesForAutoConfigurationScript'>
     <retval type='^{__CFArray=}' already_cfretained='true' />
-    <arg type='^{__CFString=}' />
+    <arg type='@' />
     <arg type='^{__CFURL=}' />
     <arg type='^^{__CFError}' type_modifier='o' />
   </function>

pyobjc-framework-CFNetwork/Lib/CFNetwork/_metadata.py

 # Generated file, don't edit
 # Source: BridgeSupport/CFNetwork.bridgesupport
-# Last update: Sun Jul 17 21:23:35 2011
+# Last update: Sun Jul 31 21:24:59 2011
 
 import objc, sys
 
 
 misc = {
 }
-constants = '''$kCFStreamPropertySSLPeerCertificates$kCFStreamPropertySSLPeerTrust$kCFNetworkProxiesSOCKSEnable$kCFNetworkProxiesSOCKSPort$kCFNetworkProxiesSOCKSProxy$kCFNetworkProxiesHTTPSEnable$kCFNetworkProxiesHTTPSPort$kCFNetworkProxiesHTTPSProxy$kCFNetworkProxiesRTSPEnable$kCFNetworkProxiesRTSPPort$kCFNetworkProxiesRTSPProxy$kCFNetworkProxiesFTPProxy$kCFNetworkProxiesFTPPort$kCFNetworkProxiesFTPPassive$kCFNetworkProxiesFTPEnable$kCFNetworkProxiesExcludeSimpleHostnames$kCFNetworkProxiesExceptionsList$kCFNetworkProxiesGopherEnable$kCFNetworkProxiesGopherPort$kCFNetworkProxiesGopherProxy$kCFProxyAutoConfigurationHTTPResponseKey$kCFURLErrorFailingURLErrorKey$kCFURLErrorFailingURLStringErrorKey$kCFStreamErrorDomainMach@i$kCFStreamErrorDomainFTP@i$kCFStreamErrorDomainSOCKS@i$kCFStreamErrorDomainSSL@i$kCFStreamErrorDomainHTTP@i$kCFStreamErrorDomainNetDB@i$kCFStreamErrorDomainSystemConfiguration@i$kCFStreamErrorDomainNetServices@i$kCFProxyTypeKey@^{__CFString=}$kCFProxyHostNameKey@^{__CFString=}$kCFProxyPortNumberKey@^{__CFString=}$kCFProxyAutoConfigurationURLKey@^{__CFString=}$kCFProxyUsernameKey@^{__CFString=}$kCFProxyPasswordKey@^{__CFString=}$kCFProxyTypeNone@^{__CFString=}$kCFProxyTypeHTTP@^{__CFString=}$kCFProxyTypeHTTPS@^{__CFString=}$kCFProxyTypeSOCKS@^{__CFString=}$kCFProxyTypeFTP@^{__CFString=}$kCFProxyTypeAutoConfigurationURL@^{__CFString=}$kCFNetworkProxiesHTTPEnable@^{__CFString=}$kCFNetworkProxiesHTTPPort@^{__CFString=}$kCFNetworkProxiesHTTPProxy@^{__CFString=}$kCFNetworkProxiesProxyAutoConfigEnable@^{__CFString=}$kCFNetworkProxiesProxyAutoConfigURLString@^{__CFString=}$kCFErrorDomainCFNetwork@^{__CFString=}$kCFErrorDomainWinSock@^{__CFString=}$kCFGetAddrInfoFailureKey@^{__CFString=}$kCFSOCKSStatusCodeKey@^{__CFString=}$kCFSOCKSVersionKey@^{__CFString=}$kCFSOCKSNegotiationMethodKey@^{__CFString=}$kCFDNSServiceFailureKey@^{__CFString=}$kCFFTPStatusCodeKey@^{__CFString=}$kCFStreamPropertyHTTPResponseHeader@^{__CFString=}$kCFStreamPropertyHTTPFinalURL@^{__CFString=}$kCFStreamPropertyHTTPFinalRequest@^{__CFString=}$kCFStreamPropertyHTTPProxy@^{__CFString=}$kCFStreamPropertyHTTPProxyHost@^{__CFString=}$kCFStreamPropertyHTTPProxyPort@^{__CFString=}$kCFStreamPropertyHTTPSProxyHost@^{__CFString=}$kCFStreamPropertyHTTPSProxyPort@^{__CFString=}$kCFHTTPAuthenticationUsername@^{__CFString=}$kCFHTTPAuthenticationPassword@^{__CFString=}$kCFHTTPAuthenticationAccountDomain@^{__CFString=}$kCFStreamPropertyHTTPShouldAutoredirect@^{__CFString=}$kCFStreamPropertyHTTPAttemptPersistentConnection@^{__CFString=}$kCFStreamPropertyHTTPRequestBytesWrittenCount@^{__CFString=}$kCFStreamPropertyFTPUserName@^{__CFString=}$kCFStreamPropertyFTPPassword@^{__CFString=}$kCFStreamPropertyFTPUsePassiveMode@^{__CFString=}$kCFStreamPropertyFTPResourceSize@^{__CFString=}$kCFStreamPropertyFTPFetchResourceInfo@^{__CFString=}$kCFStreamPropertyFTPFileTransferOffset@^{__CFString=}$kCFStreamPropertyFTPAttemptPersistentConnection@^{__CFString=}$kCFStreamPropertyFTPProxy@^{__CFString=}$kCFStreamPropertyFTPProxyHost@^{__CFString=}$kCFStreamPropertyFTPProxyPort@^{__CFString=}$kCFStreamPropertyFTPProxyUser@^{__CFString=}$kCFStreamPropertyFTPProxyPassword@^{__CFString=}$kCFHTTPVersion1_0@^{__CFString=}$kCFHTTPVersion1_1@^{__CFString=}$kCFHTTPAuthenticationSchemeBasic@^{__CFString=}$kCFHTTPAuthenticationSchemeDigest@^{__CFString=}$kCFHTTPAuthenticationSchemeNTLM@^{__CFString=}$kCFHTTPAuthenticationSchemeNegotiate@^{__CFString=}$kCFFTPResourceMode@^{__CFString=}$kCFFTPResourceName@^{__CFString=}$kCFFTPResourceOwner@^{__CFString=}$kCFFTPResourceGroup@^{__CFString=}$kCFFTPResourceLink@^{__CFString=}$kCFFTPResourceSize@^{__CFString=}$kCFFTPResourceType@^{__CFString=}$kCFFTPResourceModDate@^{__CFString=}$kCFStreamPropertySOCKSPassword@^{__CFString=}$kCFStreamPropertySOCKSProxy@^{__CFString=}$kCFStreamPropertySOCKSProxyHost@^{__CFString=}$kCFStreamPropertySOCKSProxyPort@^{__CFString=}$kCFStreamPropertySOCKSUser@^{__CFString=}$kCFStreamPropertySOCKSVersion@^{__CFString=}$kCFStreamPropertyShouldCloseNativeSocket@^{__CFString=}$kCFStreamPropertySocketSecurityLevel@^{__CFString=}$kCFStreamSocketSOCKSVersion4@^{__CFString=}$kCFStreamSocketSOCKSVersion5@^{__CFString=}$kCFStreamSocketSecurityLevelNegotiatedSSL@^{__CFString=}$kCFStreamSocketSecurityLevelNone@^{__CFString=}$kCFStreamSocketSecurityLevelSSLv2@^{__CFString=}$kCFStreamSocketSecurityLevelSSLv3@^{__CFString=}$kCFStreamSocketSecurityLevelTLSv1@^{__CFString=}$kCFStreamPropertySOCKSProxyHost@^{__CFString=}$kCFStreamPropertySOCKSProxyPort@^{__CFString=}$kCFStreamPropertySOCKSVersion@^{__CFString=}$kCFStreamSocketSOCKSVersion4@^{__CFString=}$kCFStreamSocketSOCKSVersion5@^{__CFString=}$kCFStreamPropertySOCKSUser@^{__CFString=}$kCFStreamPropertySOCKSPassword@^{__CFString=}$kCFStreamPropertySocketSecurityLevel@^{__CFString=}$kCFStreamSocketSecurityLevelNone@^{__CFString=}$kCFStreamSocketSecurityLevelSSLv2@^{__CFString=}$kCFStreamSocketSecurityLevelSSLv3@^{__CFString=}$kCFStreamSocketSecurityLevelTLSv1@^{__CFString=}$kCFStreamSocketSecurityLevelNegotiatedSSL@^{__CFString=}$kCFStreamPropertyShouldCloseNativeSocket@^{__CFString=}$kCFStreamPropertySocketRemoteHost@^{__CFString=}$kCFStreamPropertySocketRemoteNetService@^{__CFString=}$kCFStreamPropertySSLPeerCertificates@^{__CFString=}$kCFStreamPropertySSLSettings@^{__CFString=}$kCFStreamSSLLevel@^{__CFString=}$kCFStreamSSLAllowsExpiredCertificates@^{__CFString=}$kCFStreamSSLAllowsExpiredRoots@^{__CFString=}$kCFStreamSSLAllowsAnyRoot@^{__CFString=}$kCFStreamSSLValidatesCertificateChain@^{__CFString=}$kCFStreamSSLPeerName@^{__CFString=}$kCFStreamSSLCertificates@^{__CFString=}$kCFStreamSSLIsServer@^{__CFString=}$kCFStreamErrorDomainWinSock@i$kCFStreamPropertyProxyLocalBypass@^{__CFString=}$'''
+constants = '''$kCFStreamPropertySSLPeerCertificates$kCFStreamPropertySSLPeerTrust$kCFNetworkProxiesSOCKSEnable$kCFNetworkProxiesSOCKSPort$kCFNetworkProxiesSOCKSProxy$kCFNetworkProxiesHTTPSEnable$kCFNetworkProxiesHTTPSPort$kCFNetworkProxiesHTTPSProxy$kCFNetworkProxiesRTSPEnable$kCFNetworkProxiesRTSPPort$kCFNetworkProxiesRTSPProxy$kCFNetworkProxiesFTPProxy$kCFNetworkProxiesFTPPort$kCFNetworkProxiesFTPPassive$kCFNetworkProxiesFTPEnable$kCFNetworkProxiesExcludeSimpleHostnames$kCFNetworkProxiesExceptionsList$kCFNetworkProxiesGopherEnable$kCFNetworkProxiesGopherPort$kCFNetworkProxiesGopherProxy$kCFProxyAutoConfigurationHTTPResponseKey$kCFProxyAutoConfigurationJavaScriptKey$kCFURLErrorFailingURLErrorKey$kCFURLErrorFailingURLStringErrorKey$kCFStreamErrorDomainMach@i$kCFStreamErrorDomainFTP@i$kCFStreamErrorDomainSOCKS@i$kCFStreamErrorDomainSSL@i$kCFStreamErrorDomainHTTP@i$kCFStreamErrorDomainNetDB@i$kCFStreamErrorDomainSystemConfiguration@i$kCFStreamErrorDomainNetServices@i$kCFProxyTypeKey$kCFProxyHostNameKey$kCFProxyPortNumberKey$kCFProxyAutoConfigurationURLKey$kCFProxyUsernameKey$kCFProxyTypeAutoConfigurationJavaScript$kCFNetworkProxiesProxyAutoConfigJavaScript$kCFNetworkProxiesProxyAutoDiscoveryEnable$kCFProxyPasswordKey$kCFProxyTypeNone$kCFProxyTypeHTTP$kCFProxyTypeHTTPS$kCFProxyTypeSOCKS$kCFProxyTypeFTP$kCFStreamNetworkServiceType$kCFStreamNetworkServiceTypeVoIP$kCFStreamNetworkServiceTypeVideo$kCFStreamNetworkServiceTypeBackground$kCFStreamNetworkServiceTypeVoice$kCFProxyTypeAutoConfigurationURL$kCFNetworkProxiesHTTPEnable$kCFNetworkProxiesHTTPPort$kCFNetworkProxiesHTTPProxy$kCFNetworkProxiesProxyAutoConfigEnable$kCFNetworkProxiesProxyAutoConfigURLString$kCFErrorDomainCFNetwork$kCFErrorDomainWinSock$kCFGetAddrInfoFailureKey$kCFSOCKSStatusCodeKey$kCFSOCKSVersionKey$kCFSOCKSNegotiationMethodKey$kCFDNSServiceFailureKey$kCFFTPStatusCodeKey$kCFStreamPropertyHTTPResponseHeader$kCFStreamPropertyHTTPFinalURL$kCFStreamPropertyHTTPFinalRequest$kCFStreamPropertyHTTPProxy$kCFStreamPropertyHTTPProxyHost$kCFStreamPropertyHTTPProxyPort$kCFStreamPropertyHTTPSProxyHost$kCFStreamPropertyHTTPSProxyPort$kCFHTTPAuthenticationUsername$kCFHTTPAuthenticationPassword$kCFHTTPAuthenticationAccountDomain$kCFStreamPropertyHTTPShouldAutoredirect$kCFStreamPropertyHTTPAttemptPersistentConnection$kCFStreamPropertyHTTPRequestBytesWrittenCount$kCFStreamPropertyFTPUserName$kCFStreamPropertyFTPPassword$kCFStreamPropertyFTPUsePassiveMode$kCFStreamPropertyFTPResourceSize$kCFStreamPropertyFTPFetchResourceInfo$kCFStreamPropertyFTPFileTransferOffset$kCFStreamPropertyFTPAttemptPersistentConnection$kCFStreamPropertyFTPProxy$kCFStreamPropertyFTPProxyHost$kCFStreamPropertyFTPProxyPort$kCFStreamPropertyFTPProxyUser$kCFStreamPropertyFTPProxyPassword$kCFHTTPVersion1_0$kCFHTTPVersion1_1$kCFHTTPAuthenticationSchemeBasic$kCFHTTPAuthenticationSchemeDigest$kCFHTTPAuthenticationSchemeNTLM$kCFHTTPAuthenticationSchemeNegotiate$kCFHTTPAuthenticationSchemeNegotiate2$kCFHTTPAuthenticationSchemeXMobileMeAuthToken$kCFHTTPAuthenticationSchemeKerberos$kCFFTPResourceMode$kCFFTPResourceName$kCFFTPResourceOwner$kCFFTPResourceGroup$kCFFTPResourceLink$kCFFTPResourceSize$kCFFTPResourceType$kCFFTPResourceModDate$kCFStreamPropertySOCKSPassword$kCFStreamPropertySOCKSProxy$kCFStreamPropertySOCKSProxyHost$kCFStreamPropertySOCKSProxyPort$kCFStreamPropertySOCKSUser$kCFStreamPropertySOCKSVersion$kCFStreamPropertyShouldCloseNativeSocket$kCFStreamPropertySocketSecurityLevel$kCFStreamSocketSOCKSVersion4$kCFStreamSocketSOCKSVersion5$kCFStreamSocketSecurityLevelNegotiatedSSL$kCFStreamSocketSecurityLevelNone$kCFStreamSocketSecurityLevelSSLv2$kCFStreamSocketSecurityLevelSSLv3$kCFStreamSocketSecurityLevelTLSv1$kCFStreamPropertySOCKSProxyHost$kCFStreamPropertySOCKSProxyPort$kCFStreamPropertySOCKSVersion$kCFStreamSocketSOCKSVersion4$kCFStreamSocketSOCKSVersion5$kCFStreamPropertySOCKSUser$kCFStreamPropertySOCKSPassword$kCFStreamPropertySocketSecurityLevel$kCFStreamSocketSecurityLevelNone$kCFStreamSocketSecurityLevelSSLv2$kCFStreamSocketSecurityLevelSSLv3$kCFStreamSocketSecurityLevelTLSv1$kCFStreamSocketSecurityLevelNegotiatedSSL$kCFStreamPropertyShouldCloseNativeSocket$kCFStreamPropertySocketRemoteHost$kCFStreamPropertySocketRemoteNetService$kCFStreamPropertySSLPeerCertificates$kCFStreamPropertySSLSettings$kCFStreamSSLLevel$kCFStreamSSLAllowsExpiredCertificates$kCFStreamSSLAllowsExpiredRoots$kCFStreamSSLAllowsAnyRoot$kCFStreamSSLValidatesCertificateChain$kCFStreamSSLPeerName$kCFStreamSSLCertificates$kCFStreamSSLIsServer$kCFStreamErrorDomainWinSock@i$kCFStreamPropertyProxyLocalBypass$'''
 enums = '''$kCFErrorHTTPAuthenticationTypeUnsupported@300$kCFErrorHTTPBadCredentials@301$kCFErrorHTTPBadProxyCredentials@307$kCFErrorHTTPBadURL@305$kCFErrorHTTPConnectionLost@302$kCFErrorHTTPParseFailure@303$kCFErrorHTTPProxyConnectionFailure@306$kCFErrorHTTPRedirectionLoopDetected@304$kCFErrorPACFileError@308$kCFErrorPACFileAuth@309$kCFErrorHTTPSProxyConnectionFailure@310$kCFURLErrorUnknown@-998$kCFURLErrorCancelled@-999$kCFURLErrorBadURL@-1000$kCFURLErrorTimedOut@-1001$kCFURLErrorUnsupportedURL@-1002$kCFURLErrorCannotFindHost@-1003$kCFURLErrorCannotConnectToHost@-1004$kCFURLErrorNetworkConnectionLost@-1005$kCFURLErrorDNSLookupFailed@-1006$kCFURLErrorHTTPTooManyRedirects@-1007$kCFURLErrorResourceUnavailable@-1008$kCFURLErrorNotConnectedToInternet@-1009$kCFURLErrorRedirectToNonExistentLocation@-1010$kCFURLErrorBadServerResponse@-1011$kCFURLErrorUserCancelledAuthentication@-1012$kCFURLErrorUserAuthenticationRequired@-1013$kCFURLErrorZeroByteResource@-1014$kCFURLErrorCannotDecodeRawData@-1015$kCFURLErrorCannotDecodeContentData@-1016$kCFURLErrorCannotParseResponse@-1017$kCFURLErrorInternationalRoamingOff@-1018$kCFURLErrorCallIsActive@-1019$kCFURLErrorDataNotAllowed@-1020$kCFURLErrorRequestBodyStreamExhausted@-1021$kCFURLErrorFileDoesNotExist@-1100$kCFURLErrorFileIsDirectory@-1101$kCFURLErrorNoPermissionsToReadFile@-1102$kCFURLErrorDataLengthExceedsMaximum@-1103$kCFURLErrorSecureConnectionFailed@-1200$kCFURLErrorServerCertificateHasBadDate@-1201$kCFURLErrorServerCertificateUntrusted@-1202$kCFURLErrorServerCertificateHasUnknownRoot@-1203$kCFURLErrorServerCertificateNotYetValid@-1204$kCFURLErrorClientCertificateRejected@-1205$kCFURLErrorClientCertificateRequired@-1206$kCFURLErrorCannotLoadFromNetwork@-2000$kCFURLErrorCannotCreateFile@-3000$kCFURLErrorCannotOpenFile@-3001$kCFURLErrorCannotCloseFile@-3002$kCFURLErrorCannotWriteToFile@-3003$kCFURLErrorCannotRemoveFile@-3004$kCFURLErrorCannotMoveFile@-3005$kCFURLErrorDownloadDecodingFailedMidStream@-3006$kCFURLErrorDownloadDecodingFailedToComplete@-3007$kCFHTTPCookieCannotParseCookieFile@-4000$kCFFTPErrorUnexpectedStatusCode@200$kCFHostAddresses@0$kCFHostErrorHostNotFound@1$kCFHostErrorUnknown@2$kCFHostNames@1$kCFHostReachability@2$kCFNetDiagnosticConnectionDown@-66557$kCFNetDiagnosticConnectionIndeterminate@-66558$kCFNetDiagnosticConnectionUp@-66559$kCFNetDiagnosticErr@-66560$kCFNetDiagnosticNoErr@0$kCFNetServiceErrorBadArgument@-72004$kCFNetServiceErrorCancel@-72005$kCFNetServiceErrorCollision@-72001$kCFNetServiceErrorDNSServiceFailure@-73000$kCFNetServiceErrorInProgress@-72003$kCFNetServiceErrorInvalid@-72006$kCFNetServiceErrorNotFound@-72002$kCFNetServiceErrorTimeout@-72007$kCFNetServiceErrorUnknown@-72000$kCFNetServiceFlagIsDefault@4$kCFNetServiceFlagIsDomain@2$kCFNetServiceFlagIsRegistrationDomain@4$kCFNetServiceFlagMoreComing@1$kCFNetServiceFlagNoAutoRename@1$kCFNetServiceFlagRemove@8$kCFNetServiceMonitorTXT@1$kCFNetServicesErrorBadArgument@-72004$kCFNetServicesErrorCancel@-72005$kCFNetServicesErrorCollision@-72001$kCFNetServicesErrorInProgress@-72003$kCFNetServicesErrorInvalid@-72006$kCFNetServicesErrorNotFound@-72002$kCFNetServicesErrorTimeout@-72007$kCFNetServicesErrorUnknown@-72000$kCFSOCKS4ErrorIdConflict@112$kCFSOCKS4ErrorIdentdFailed@111$kCFSOCKS4ErrorRequestFailed@110$kCFSOCKS4ErrorUnknownStatusCode@113$kCFSOCKS5ErrorBadCredentials@122$kCFSOCKS5ErrorBadResponseAddr@121$kCFSOCKS5ErrorBadState@120$kCFSOCKS5ErrorNoAcceptableMethod@124$kCFSOCKS5ErrorUnsupportedNegotiationMethod@123$kCFSOCKSErrorUnknownClientVersion@100$kCFSOCKSErrorUnsupportedServerVersion@101$kCFStreamErrorHTTPAuthenticationBadPassword@-1002$kCFStreamErrorHTTPAuthenticationBadUserName@-1001$kCFStreamErrorHTTPAuthenticationTypeUnsupported@-1000$kCFStreamErrorHTTPBadURL@-3$kCFStreamErrorHTTPParseFailure@-1$kCFStreamErrorHTTPRedirectionLoop@-2$kCFStreamErrorSOCKS4IdConflict@93$kCFStreamErrorSOCKS4IdentdFailed@92$kCFStreamErrorSOCKS4RequestFailed@91$kCFStreamErrorSOCKS4SubDomainResponse@2$kCFStreamErrorSOCKS5BadResponseAddr@1$kCFStreamErrorSOCKS5BadState@2$kCFStreamErrorSOCKS5SubDomainMethod@4$kCFStreamErrorSOCKS5SubDomainResponse@5$kCFStreamErrorSOCKS5SubDomainUserPass@3$kCFStreamErrorSOCKSSubDomainNone@0$kCFStreamErrorSOCKSSubDomainVersionCode@1$kCFStreamErrorSOCKSUnknownClientVersion@3$kCFStreamSocketSecurityNone@0$kCFStreamSocketSecuritySSLv2@1$kCFStreamSocketSecuritySSLv23@3$kCFStreamSocketSecuritySSLv3@2$kCFStreamSocketSecurityTLSv1@4$kSOCKS5NoAcceptableMethod@255$'''
 misc.update({})
-functions = {'CFHTTPAuthenticationRequiresOrderedRequests': ('Z^{_CFHTTPAuthentication=}',), 'CFHTTPAuthenticationCreateFromResponse': ('^{_CFHTTPAuthentication=}^{__CFAllocator=}^{__CFHTTPMessage=}', '', {'retval': {'type': b'^{_CFHTTPAuthentication=}', 'already_cfretained': True}}), 'CFNetServiceBrowserGetTypeID': (sel32or64('L', 'Q'),), 'CFHostCreateWithName': ('^{__CFHost=}^{__CFAllocator=}^{__CFString=}', '', {'retval': {'type': b'^{__CFHost=}', 'already_cfretained': True}}), 'CFSocketStreamPairSetSecurityProtocol': ('Z^{__CFReadStream=}^{__CFWriteStream=}i',), 'CFHostGetAddressing': ('^{__CFArray=}^{__CFHost=}o^Z',), 'CFHTTPMessageSetBody': ('v^{__CFHTTPMessage=}^{__CFData=}',), 'CFHTTPAuthenticationGetTypeID': (sel32or64('L', 'Q'),), 'CFNetDiagnosticCreateWithStreams': ('^{__CFNetDiagnostic=}^{__CFAllocator=}^{__CFReadStream=}^{__CFWriteStream=}', '', {'retval': {'type': b'^{__CFNetDiagnostic=}', 'already_cfretained': True}}), 'CFSocketStreamSOCKSGetError': (sel32or64('l^{_CFStreamError=ii}', 'i^{_CFStreamError=qi}'), '', {'arguments': {0: {'type': sel32or64(b'^{_CFStreamError=ii}', b'^{_CFStreamError=qi}'), 'type_modifier': b'o'}}}), 'CFHostCreateWithAddress': ('^{__CFHost=}^{__CFAllocator=}^{__CFData=}', '', {'retval': {'type': b'^{__CFHost=}', 'already_cfretained': True}}), 'CFNetServiceBrowserSearchForDomains': (sel32or64('Z^{__CFNetServiceBrowser=}Z^{_CFStreamError=ii}', 'Z^{__CFNetServiceBrowser=}Z^{_CFStreamError=qi}'), '', {'arguments': {0: {'type': b'^{__CFNetServiceBrowser=}'}, 1: {'type': b'Z'}, 2: {'type': sel32or64(b'^{_CFStreamError=ii}', b'^{_CFStreamError=qi}'), 'type_modifier': b'o'}}}), 'CFNetServiceUnscheduleFromRunLoop': ('v^{__CFNetService=}^{__CFRunLoop=}^{__CFString=}',), 'CFNetServiceMonitorStop': (sel32or64('v^{__CFNetServiceMonitor=}^{_CFStreamError=ii}', 'v^{__CFNetServiceMonitor=}^{_CFStreamError=qi}'), '', {'arguments': {0: {'type': b'^{__CFNetServiceMonitor=}'}, 1: {'type': sel32or64(b'^{_CFStreamError=ii}', b'^{_CFStreamError=qi}'), 'type_modifier': b'o'}}}), 'CFNetworkCopySystemProxySettings': ('^{__CFDictionary=}', '', {'retval': {'type': b'^{__CFDictionary=}', 'already_cfretained': True}}), 'CFHostGetReachability': ('^{__CFData=}^{__CFHost=}o^Z',), 'CFHTTPMessageIsHeaderComplete': ('Z^{__CFHTTPMessage=}',), 'CFHTTPMessageGetTypeID': (sel32or64('L', 'Q'),), 'CFNetServiceMonitorGetTypeID': (sel32or64('L', 'Q'),), 'CFNetServiceGetPortNumber': (sel32or64('l^{__CFNetService=}', 'i^{__CFNetService=}'),), 'CFHTTPMessageCreateRequest': ('^{__CFHTTPMessage=}^{__CFAllocator=}^{__CFString=}^{__CFURL=}^{__CFString=}', '', {'retval': {'type': b'^{__CFHTTPMessage=}', 'already_cfretained': True}}), 'CFNetServiceCreateCopy': ('^{__CFNetService=}^{__CFAllocator=}^{__CFNetService=}', '', {'retval': {'type': b'^{__CFNetService=}', 'already_cfretained': True}}), 'CFNetServiceGetName': ('^{__CFString=}^{__CFNetService=}',), 'CFHTTPMessageCopyRequestMethod': ('^{__CFString=}^{__CFHTTPMessage=}', '', {'retval': {'type': b'^{__CFString=}', 'already_cfretained': True}}), 'CFHTTPAuthenticationCopyRealm': ('^{__CFString=}^{_CFHTTPAuthentication=}', '', {'retval': {'type': b'^{__CFString=}', 'already_cfretained': True}}), 'CFNetServiceMonitorInvalidate': ('v^{__CFNetServiceMonitor=}',), 'CFNetServiceGetProtocolSpecificInformation': ('^{__CFString=}^{__CFNetService=}',), 'CFNetServiceCancel': ('v^{__CFNetService=}',), 'CFNetServiceMonitorCreate': ('^{__CFNetServiceMonitor=}^{__CFAllocator=}^{__CFNetService=}^?^{CFNetServiceClientContext=l^v^?^?^?}', '', {'retval': {'type': b'^{__CFNetServiceMonitor=}', 'already_cfretained': True}}), 'CFWriteStreamCreateWithFTPURL': ('^{__CFWriteStream=}^{__CFAllocator=}^{__CFURL=}', '', {'retval': {'type': b'^{__CFWriteStream=}', 'already_cfretained': True}}), 'CFNetServiceBrowserUnscheduleFromRunLoop': ('v^{__CFNetServiceBrowser=}^{__CFRunLoop=}^{__CFString=}',), 'CFHTTPMessageCopyRequestURL': ('^{__CFURL=}^{__CFHTTPMessage=}', '', {'retval': {'type': b'^{__CFURL=}', 'already_cfretained': True}}), 'CFHTTPMessageCopyVersion': ('^{__CFString=}^{__CFHTTPMessage=}', '', {'retval': {'type': b'^{__CFString=}', 'already_cfretained': True}}), 'CFNetServiceCreate': ('^{__CFNetService=}^{__CFAllocator=}^{__CFString=}^{__CFString=}^{__CFString=}l', '', {'retval': {'type': b'^{__CFNetService=}', 'already_cfretained': True}}), 'CFNetServiceMonitorUnscheduleFromRunLoop': ('v^{__CFNetServiceMonitor=}^{__CFRunLoop=}^{__CFString=}',), 'CFHostScheduleWithRunLoop': ('v^{__CFHost=}^{__CFRunLoop=}^{__CFString=}',), 'CFNetServiceMonitorStart': (sel32or64('Z^{__CFNetServiceMonitor=}i^{_CFStreamError=ii}', 'Z^{__CFNetServiceMonitor=}i^{_CFStreamError=qi}'), '', {'arguments': {0: {'type': b'^{__CFNetServiceMonitor=}'}, 1: {'type': b'i'}, 2: {'type': sel32or64(b'^{_CFStreamError=ii}', b'^{_CFStreamError=qi}'), 'type_modifier': b'o'}}}), 'CFHostGetNames': ('^{__CFArray=}^{__CFHost=}o^Z',), 'CFNetDiagnosticCopyNetworkStatusPassively': ('l^{__CFNetDiagnostic=}^^{__CFString}', '', {'arguments': {0: {'type': b'^{__CFNetDiagnostic=}'}, 1: {'type': b'^^{__CFString}', 'type_modifier': b'o'}}}), 'CFHTTPMessageCopyResponseStatusLine': ('^{__CFString=}^{__CFHTTPMessage=}', '', {'retval': {'type': b'^{__CFString=}', 'already_cfretained': True}}), 'CFNetDiagnosticDiagnoseProblemInteractively': ('l^{__CFNetDiagnostic=}',), 'CFHTTPMessageAddAuthentication': ('Z^{__CFHTTPMessage=}^{__CFHTTPMessage=}^{__CFString=}^{__CFString=}^{__CFString=}Z',), 'CFNetDiagnosticCreateWithURL': ('^{__CFNetDiagnostic=}^{__CFAllocator=}^{__CFURL=}', '', {'retval': {'type': b'^{__CFNetDiagnostic=}', 'already_cfretained': True}}), 'CFNetServiceGetDomain': ('^{__CFString=}^{__CFNetService=}',), 'CFFTPCreateParsedResourceListing': (sel32or64('l^{__CFAllocator=}^vl^^{__CFDictionary}', 'q^{__CFAllocator=}^vl^^{__CFDictionary}'), '', {'arguments': {0: {'type': b'^{__CFAllocator=}'}, 1: {'type': b'^v', 'type_modifier': b'n', 'c_array_length_in_arg': 2}, 2: {'type': b'l'}, 3: {'type': b'^^{__CFDictionary}', 'type_modifier': b'o'}}}), 'CFNetServiceGetTypeID': (sel32or64('L', 'Q'),), 'CFHTTPMessageCreateEmpty': ('^{__CFHTTPMessage=}^{__CFAllocator=}Z', '', {'retval': {'type': b'^{__CFHTTPMessage=}', 'already_cfretained': True}}), 'CFHTTPMessageAppendBytes': ('Z^{__CFHTTPMessage=}^vl', '', {'arguments': {0: {'type': b'^{__CFHTTPMessage=}'}, 1: {'type': b'^v', 'type_modifier': b'n', 'c_array_length_in_arg': 2}, 2: {'type': b'l'}}}), 'CFHostCancelInfoResolution': ('v^{__CFHost=}i',), 'CFNetServiceBrowserSearchForServices': (sel32or64('Z^{__CFNetServiceBrowser=}^{__CFString=}^{__CFString=}^{_CFStreamError=ii}', 'Z^{__CFNetServiceBrowser=}^{__CFString=}^{__CFString=}^{_CFStreamError=qi}'), '', {'arguments': {0: {'type': b'^{__CFNetServiceBrowser=}'}, 1: {'type': b'^{__CFString=}'}, 2: {'type': b'^{__CFString=}'}, 3: {'type': sel32or64(b'^{_CFStreamError=ii}', b'^{_CFStreamError=qi}'), 'type_modifier': b'o'}}}), 'CFHTTPAuthenticationIsValid': (sel32or64('Z^{_CFHTTPAuthentication=}^{_CFStreamError=ii}', 'Z^{_CFHTTPAuthentication=}^{_CFStreamError=qi}'), '', {'arguments': {0: {'type': b'^{_CFHTTPAuthentication=}'}, 1: {'type': sel32or64(b'^{_CFStreamError=ii}', b'^{_CFStreamError=qi}'), 'type_modifier': b'o'}}}), 'CFHTTPReadStreamSetProxy': ('v^{__CFReadStream=}^{__CFString=}l',), 'CFHTTPAuthenticationAppliesToRequest': ('Z^{_CFHTTPAuthentication=}^{__CFHTTPMessage=}',), 'CFNetServiceBrowserInvalidate': ('v^{__CFNetServiceBrowser=}',), 'CFNetServiceGetAddressing': ('^{__CFArray=}^{__CFNetService=}',), 'CFHTTPMessageSetHeaderFieldValue': ('v^{__CFHTTPMessage=}^{__CFString=}^{__CFString=}',), 'CFNetServiceBrowserStopSearch': (sel32or64('v^{__CFNetServiceBrowser=}^{_CFStreamError=ii}', 'v^{__CFNetServiceBrowser=}^{_CFStreamError=qi}'), '', {'arguments': {0: {'type': b'^{__CFNetServiceBrowser=}'}, 1: {'type': sel32or64(b'^{_CFStreamError=ii}', b'^{_CFStreamError=qi}'), 'type_modifier': b'o'}}}), 'CFHTTPMessageApplyCredentials': (sel32or64('Z^{__CFHTTPMessage=}^{_CFHTTPAuthentication=}^{__CFString=}^{__CFString=}^{_CFStreamError=ii}', 'Z^{__CFHTTPMessage=}^{_CFHTTPAuthentication=}^{__CFString=}^{__CFString=}^{_CFStreamError=qi}'), '', {'arguments': {0: {'type': b'^{__CFHTTPMessage=}'}, 1: {'type': b'^{_CFHTTPAuthentication=}'}, 2: {'type': b'^{__CFString=}'}, 3: {'type': b'^{__CFString=}'}, 4: {'type': sel32or64(b'^{_CFStreamError=ii}', b'^{_CFStreamError=qi}'), 'type_modifier': b'o'}}}), 'CFHTTPReadStreamSetRedirectsAutomatically': ('v^{__CFReadStream=}Z',), 'CFNetServiceRegisterWithOptions': (sel32or64('Z^{__CFNetService=}L^{_CFStreamError=ii}', 'Z^{__CFNetService=}L^{_CFStreamError=qi}'), '', {'arguments': {0: {'type': b'^{__CFNetService=}'}, 1: {'type': b'L'}, 2: {'type': sel32or64(b'^{_CFStreamError=ii}', b'^{_CFStreamError=qi}'), 'type_modifier': b'o'}}}), 'CFHTTPAuthenticationCopyMethod': ('^{__CFString=}^{_CFHTTPAuthentication=}', '', {'retval': {'type': b'^{__CFString=}', 'already_cfretained': True}}), 'CFNetServiceBrowserCreate': ('^{__CFNetServiceBrowser=}^{__CFAllocator=}^?^{CFNetServiceClientContext=l^v^?^?^?}', '', {'retval': {'type': b'^{__CFNetServiceBrowser=}', 'already_cfretained': True}}), 'CFNetServiceGetTargetHost': ('^{__CFString=}^{__CFNetService=}',), 'CFNetworkCopyProxiesForAutoConfigurationScript': ('^{__CFArray=}^{__CFString=}^{__CFURL=}^^{__CFError}', '', {'retval': {'type': b'^{__CFArray=}', 'already_cfretained': True}, 'arguments': {0: {'type': b'^{__CFString=}'}, 1: {'type': b'^{__CFURL=}'}, 2: {'type': b'^^{__CFError}', 'type_modifier': b'o'}}}), 'CFNetServiceCreateDictionaryWithTXTData': ('^{__CFDictionary=}^{__CFAllocator=}^{__CFData=}', '', {'retval': {'type': b'^{__CFDictionary=}', 'already_cfretained': True}}), 'CFNetServiceRegister': (sel32or64('Z^{__CFNetService=}^{_CFStreamError=ii}', 'Z^{__CFNetService=}^{_CFStreamError=qi}'), '', {'arguments': {0: {'type': b'^{__CFNetService=}'}, 1: {'type': sel32or64(b'^{_CFStreamError=ii}', b'^{_CFStreamError=qi}'), 'type_modifier': b'o'}}}), 'CFHTTPMessageCopySerializedMessage': ('^{__CFData=}^{__CFHTTPMessage=}', '', {'retval': {'type': b'^{__CFData=}', 'already_cfretained': True}}), 'CFHostCreateCopy': ('^{__CFHost=}^{__CFAllocator=}^{__CFHost=}', '', {'retval': {'type': b'^{__CFHost=}', 'already_cfretained': True}}), 'CFHTTPAuthenticationRequiresAccountDomain': ('Z^{_CFHTTPAuthentication=}',), 'CFNetServiceSetTXTData': ('Z^{__CFNetService=}^{__CFData=}',), 'CFNetworkCopyProxiesForURL': ('^{__CFArray=}^{__CFURL=}^{__CFDictionary=}', '', {'retval': {'type': b'^{__CFArray=}', 'already_cfretained': True}}), 'CFReadStreamCreateForStreamedHTTPRequest': ('^{__CFReadStream=}^{__CFAllocator=}^{__CFHTTPMessage=}^{__CFReadStream=}', '', {'retval': {'type': b'^{__CFReadStream=}', 'already_cfretained': True}}), 'CFReadStreamCreateForHTTPRequest': ('^{__CFReadStream=}^{__CFAllocator=}^{__CFHTTPMessage=}', '', {'retval': {'type': b'^{__CFReadStream=}', 'already_cfretained': True}}), 'CFHTTPMessageCreateCopy': ('^{__CFHTTPMessage=}^{__CFAllocator=}^{__CFHTTPMessage=}', '', {'retval': {'type': b'^{__CFHTTPMessage=}', 'already_cfretained': True}}), 'CFNetServiceGetType': ('^{__CFString=}^{__CFNetService=}',), 'CFNetServiceScheduleWithRunLoop': ('v^{__CFNetService=}^{__CFRunLoop=}^{__CFString=}',), 'CFHTTPMessageCopyHeaderFieldValue': ('^{__CFString=}^{__CFHTTPMessage=}^{__CFString=}', '', {'retval': {'type': b'^{__CFString=}', 'already_cfretained': True}}), 'CFNetServiceGetTXTData': ('^{__CFData=}^{__CFNetService=}',), 'CFHostStartInfoResolution': (sel32or64('Z^{__CFHost=}i^{_CFStreamError=ii}', 'Z^{__CFHost=}i^{_CFStreamError=qi}'), '', {'arguments': {0: {'type': b'^{__CFHost=}'}, 1: {'type': b'i'}, 2: {'type': sel32or64(b'^{_CFStreamError=ii}', b'^{_CFStreamError=qi}'), 'type_modifier': b'o'}}}), 'CFHTTPAuthenticationRequiresUserNameAndPassword': ('Z^{_CFHTTPAuthentication=}',), 'CFNetDiagnosticSetName': ('v^{__CFNetDiagnostic=}^{__CFString=}',), 'CFNetServiceCreateTXTDataWithDictionary': ('^{__CFData=}^{__CFAllocator=}^{__CFDictionary=}', '', {'retval': {'type': b'^{__CFData=}', 'already_cfretained': True}}), 'CFReadStreamCreateWithFTPURL': ('^{__CFReadStream=}^{__CFAllocator=}^{__CFURL=}', '', {'retval': {'type': b'^{__CFReadStream=}', 'already_cfretained': True}}), 'CFNetServiceSetClient': ('Z^{__CFNetService=}^?^{CFNetServiceClientContext=l^v^?^?^?}',), 'CFNetServiceMonitorScheduleWithRunLoop': ('v^{__CFNetServiceMonitor=}^{__CFRunLoop=}^{__CFString=}',), 'CFHostUnscheduleFromRunLoop': ('v^{__CFHost=}^{__CFRunLoop=}^{__CFString=}',), 'CFHTTPMessageApplyCredentialDictionary': (sel32or64('Z^{__CFHTTPMessage=}^{_CFHTTPAuthentication=}^{__CFDictionary=}^{_CFStreamError=ii}', 'Z^{__CFHTTPMessage=}^{_CFHTTPAuthentication=}^{__CFDictionary=}^{_CFStreamError=qi}'), '', {'arguments': {0: {'type': b'^{__CFHTTPMessage=}'}, 1: {'type': b'^{_CFHTTPAuthentication=}'}, 2: {'type': b'^{__CFDictionary=}'}, 3: {'type': sel32or64(b'^{_CFStreamError=ii}', b'^{_CFStreamError=qi}'), 'type_modifier': b'o'}}}), 'CFHTTPMessageIsRequest': ('Z^{__CFHTTPMessage=}',), 'CFNetServiceResolve': (sel32or64('Z^{__CFNetService=}^{_CFStreamError=ii}', 'Z^{__CFNetService=}^{_CFStreamError=qi}'), '', {'arguments': {0: {'type': b'^{__CFNetService=}'}, 1: {'type': sel32or64(b'^{_CFStreamError=ii}', b'^{_CFStreamError=qi}'), 'type_modifier': b'o'}}}), 'CFHTTPMessageCopyBody': ('^{__CFData=}^{__CFHTTPMessage=}', '', {'retval': {'type': b'^{__CFData=}', 'already_cfretained': True}}), 'CFNetServiceBrowserScheduleWithRunLoop': ('v^{__CFNetServiceBrowser=}^{__CFRunLoop=}^{__CFString=}',), 'CFHTTPMessageCreateResponse': ('^{__CFHTTPMessage=}^{__CFAllocator=}l^{__CFString=}^{__CFString=}', '', {'retval': {'type': b'^{__CFHTTPMessage=}', 'already_cfretained': True}}), 'CFHostGetTypeID': (sel32or64('L', 'Q'),), 'CFHTTPMessageCopyAllHeaderFields': ('^{__CFDictionary=}^{__CFHTTPMessage=}', '', {'retval': {'type': b'^{__CFDictionary=}', 'already_cfretained': True}}), 'CFHTTPMessageGetResponseStatusCode': (sel32or64('l^{__CFHTTPMessage=}', 'q^{__CFHTTPMessage=}'),), 'CFHTTPAuthenticationCopyDomains': ('^{__CFArray=}^{_CFHTTPAuthentication=}', '', {'retval': {'type': b'^{__CFArray=}', 'already_cfretained': True}}), 'CFNetServiceSetProtocolSpecificInformation': ('v^{__CFNetService=}^{__CFString=}',), 'CFSocketStreamSOCKSGetErrorSubdomain': (sel32or64('l^{_CFStreamError=ii}', 'i^{_CFStreamError=qi}'), '', {'arguments': {0: {'type': sel32or64(b'^{_CFStreamError=ii}', b'^{_CFStreamError=qi}'), 'type_modifier': b'o'}}}), 'CFStreamCreatePairWithSocketToCFHost': ('v^{__CFAllocator=}^{__CFHost=}l^^{__CFReadStream}^^{__CFWriteStream}', '', {'arguments': {0: {'type': b'^{__CFAllocator=}'}, 1: {'type': b'^{__CFHost=}'}, 2: {'type': b'l'}, 3: {'type': b'^^{__CFReadStream}', 'type_modifier': b'o', 'already_cfretained': True}, 4: {'type': b'^^{__CFWriteStream}', 'type_modifier': b'o', 'already_cfretained': True}}}), 'CFStreamCreatePairWithSocketToNetService': ('v^{__CFAllocator=}^{__CFNetService=}^^{__CFReadStream}^^{__CFWriteStream}', '', {'arguments': {0: {'type': b'^{__CFAllocator=}'}, 1: {'type': b'^{__CFNetService=}'}, 2: {'type': b'^^{__CFReadStream}', 'type_modifier': b'o', 'already_cfretained': True}, 3: {'type': b'^^{__CFWriteStream}', 'type_modifier': b'o', 'already_cfretained': True}}}), 'CFNetServiceResolveWithTimeout': (sel32or64('Z^{__CFNetService=}d^{_CFStreamError=ii}', 'Z^{__CFNetService=}d^{_CFStreamError=qi}'), '', {'arguments': {0: {'type': b'^{__CFNetService=}'}, 1: {'type': b'd'}, 2: {'type': sel32or64(b'^{_CFStreamError=ii}', b'^{_CFStreamError=qi}'), 'type_modifier': b'o'}}}), 'CFHostSetClient': ('Z^{__CFHost=}^?^{CFHostClientContext=l^v^?^?^?}',)}
+functions = {'CFHTTPAuthenticationRequiresOrderedRequests': ('Z^{_CFHTTPAuthentication=}',), 'CFHTTPAuthenticationCreateFromResponse': ('^{_CFHTTPAuthentication=}^{__CFAllocator=}^{__CFHTTPMessage=}', '', {'retval': {'type': b'^{_CFHTTPAuthentication=}', 'already_cfretained': True}}), 'CFNetServiceBrowserGetTypeID': (sel32or64('L', 'Q'),), 'CFHostCreateWithName': ('^{__CFHost=}^{__CFAllocator=}@', '', {'retval': {'type': b'^{__CFHost=}', 'already_cfretained': True}}), 'CFSocketStreamPairSetSecurityProtocol': ('Z^{__CFReadStream=}^{__CFWriteStream=}i',), 'CFHostGetAddressing': ('^{__CFArray=}^{__CFHost=}o^Z',), 'CFHTTPMessageSetBody': ('v^{__CFHTTPMessage=}^{__CFData=}',), 'CFHTTPAuthenticationGetTypeID': (sel32or64('L', 'Q'),), 'CFNetDiagnosticCreateWithStreams': ('^{__CFNetDiagnostic=}^{__CFAllocator=}^{__CFReadStream=}^{__CFWriteStream=}', '', {'retval': {'type': b'^{__CFNetDiagnostic=}', 'already_cfretained': True}}), 'CFSocketStreamSOCKSGetError': (sel32or64('l^{_CFStreamError=ii}', 'i^{_CFStreamError=qi}'), '', {'arguments': {0: {'type': sel32or64(b'^{_CFStreamError=ii}', b'^{_CFStreamError=qi}'), 'type_modifier': b'o'}}}), 'CFHostCreateWithAddress': ('^{__CFHost=}^{__CFAllocator=}^{__CFData=}', '', {'retval': {'type': b'^{__CFHost=}', 'already_cfretained': True}}), 'CFNetServiceBrowserSearchForDomains': (sel32or64('Z^{__CFNetServiceBrowser=}Z^{_CFStreamError=ii}', 'Z^{__CFNetServiceBrowser=}Z^{_CFStreamError=qi}'), '', {'arguments': {0: {'type': b'^{__CFNetServiceBrowser=}'}, 1: {'type': b'Z'}, 2: {'type': sel32or64(b'^{_CFStreamError=ii}', b'^{_CFStreamError=qi}'), 'type_modifier': b'o'}}}), 'CFNetServiceUnscheduleFromRunLoop': ('v^{__CFNetService=}^{__CFRunLoop=}@',), 'CFNetServiceMonitorStop': (sel32or64('v^{__CFNetServiceMonitor=}^{_CFStreamError=ii}', 'v^{__CFNetServiceMonitor=}^{_CFStreamError=qi}'), '', {'arguments': {0: {'type': b'^{__CFNetServiceMonitor=}'}, 1: {'type': sel32or64(b'^{_CFStreamError=ii}', b'^{_CFStreamError=qi}'), 'type_modifier': b'o'}}}), 'CFNetworkCopySystemProxySettings': ('^{__CFDictionary=}', '', {'retval': {'type': b'^{__CFDictionary=}', 'already_cfretained': True}}), 'CFHostGetReachability': ('^{__CFData=}^{__CFHost=}o^Z',), 'CFHTTPMessageIsHeaderComplete': ('Z^{__CFHTTPMessage=}',), 'CFHTTPMessageGetTypeID': (sel32or64('L', 'Q'),), 'CFNetServiceMonitorGetTypeID': (sel32or64('L', 'Q'),), 'CFNetServiceGetPortNumber': (sel32or64('l^{__CFNetService=}', 'i^{__CFNetService=}'),), 'CFHTTPMessageCreateRequest': ('^{__CFHTTPMessage=}^{__CFAllocator=}@^{__CFURL=}@', '', {'retval': {'type': b'^{__CFHTTPMessage=}', 'already_cfretained': True}}), 'CFNetServiceCreateCopy': ('^{__CFNetService=}^{__CFAllocator=}^{__CFNetService=}', '', {'retval': {'type': b'^{__CFNetService=}', 'already_cfretained': True}}), 'CFNetServiceGetName': ('@^{__CFNetService=}',), 'CFHTTPMessageCopyRequestMethod': ('@^{__CFHTTPMessage=}', '', {'retval': {'type': b'@', 'already_cfretained': True}}), 'CFHTTPAuthenticationCopyRealm': ('@^{_CFHTTPAuthentication=}', '', {'retval': {'type': b'@', 'already_cfretained': True}}), 'CFNetServiceMonitorInvalidate': ('v^{__CFNetServiceMonitor=}',), 'CFNetServiceGetProtocolSpecificInformation': ('@^{__CFNetService=}',), 'CFNetServiceCancel': ('v^{__CFNetService=}',), 'CFNetServiceMonitorCreate': ('^{__CFNetServiceMonitor=}^{__CFAllocator=}^{__CFNetService=}^?^{CFNetServiceClientContext=l^v^?^?^?}', '', {'retval': {'type': b'^{__CFNetServiceMonitor=}', 'already_cfretained': True}}), 'CFWriteStreamCreateWithFTPURL': ('^{__CFWriteStream=}^{__CFAllocator=}^{__CFURL=}', '', {'retval': {'type': b'^{__CFWriteStream=}', 'already_cfretained': True}}), 'CFNetServiceBrowserUnscheduleFromRunLoop': ('v^{__CFNetServiceBrowser=}^{__CFRunLoop=}@',), 'CFHTTPMessageCopyRequestURL': ('^{__CFURL=}^{__CFHTTPMessage=}', '', {'retval': {'type': b'^{__CFURL=}', 'already_cfretained': True}}), 'CFHTTPMessageCopyVersion': ('@^{__CFHTTPMessage=}', '', {'retval': {'type': b'@', 'already_cfretained': True}}), 'CFNetServiceCreate': ('^{__CFNetService=}^{__CFAllocator=}@@@l', '', {'retval': {'type': b'^{__CFNetService=}', 'already_cfretained': True}}), 'CFNetServiceMonitorUnscheduleFromRunLoop': ('v^{__CFNetServiceMonitor=}^{__CFRunLoop=}@',), 'CFHostScheduleWithRunLoop': ('v^{__CFHost=}^{__CFRunLoop=}@',), 'CFNetServiceMonitorStart': (sel32or64('Z^{__CFNetServiceMonitor=}i^{_CFStreamError=ii}', 'Z^{__CFNetServiceMonitor=}i^{_CFStreamError=qi}'), '', {'arguments': {0: {'type': b'^{__CFNetServiceMonitor=}'}, 1: {'type': b'i'}, 2: {'type': sel32or64(b'^{_CFStreamError=ii}', b'^{_CFStreamError=qi}'), 'type_modifier': b'o'}}}), 'CFHostGetNames': ('^{__CFArray=}^{__CFHost=}o^Z',), 'CFNetDiagnosticCopyNetworkStatusPassively': ('l^{__CFNetDiagnostic=}^^{__CFString}', '', {'arguments': {0: {'type': b'^{__CFNetDiagnostic=}'}, 1: {'type': b'^^{__CFString}', 'type_modifier': b'o'}}}), 'CFHTTPMessageCopyResponseStatusLine': ('@^{__CFHTTPMessage=}', '', {'retval': {'type': b'@', 'already_cfretained': True}}), 'CFNetDiagnosticDiagnoseProblemInteractively': ('l^{__CFNetDiagnostic=}',), 'CFHTTPMessageAddAuthentication': ('Z^{__CFHTTPMessage=}^{__CFHTTPMessage=}@@@Z',), 'CFNetDiagnosticCreateWithURL': ('^{__CFNetDiagnostic=}^{__CFAllocator=}^{__CFURL=}', '', {'retval': {'type': b'^{__CFNetDiagnostic=}', 'already_cfretained': True}}), 'CFNetServiceGetDomain': ('@^{__CFNetService=}',), 'CFFTPCreateParsedResourceListing': (sel32or64('l^{__CFAllocator=}^vl^^{__CFDictionary}', 'q^{__CFAllocator=}^vl^^{__CFDictionary}'), '', {'arguments': {0: {'type': b'^{__CFAllocator=}'}, 1: {'type': b'^v', 'type_modifier': b'n', 'c_array_length_in_arg': 2}, 2: {'type': b'l'}, 3: {'type': b'^^{__CFDictionary}', 'type_modifier': b'o'}}}), 'CFNetServiceGetTypeID': (sel32or64('L', 'Q'),), 'CFHTTPMessageCreateEmpty': ('^{__CFHTTPMessage=}^{__CFAllocator=}Z', '', {'retval': {'type': b'^{__CFHTTPMessage=}', 'already_cfretained': True}}), 'CFHTTPMessageAppendBytes': ('Z^{__CFHTTPMessage=}^vl', '', {'arguments': {0: {'type': b'^{__CFHTTPMessage=}'}, 1: {'type': b'^v', 'type_modifier': b'n', 'c_array_length_in_arg': 2}, 2: {'type': b'l'}}}), 'CFHostCancelInfoResolution': ('v^{__CFHost=}i',), 'CFNetServiceBrowserSearchForServices': (sel32or64('Z^{__CFNetServiceBrowser=}@@^{_CFStreamError=ii}', 'Z^{__CFNetServiceBrowser=}@@^{_CFStreamError=qi}'), '', {'arguments': {0: {'type': b'^{__CFNetServiceBrowser=}'}, 1: {'type': b'@'}, 2: {'type': b'@'}, 3: {'type': sel32or64(b'^{_CFStreamError=ii}', b'^{_CFStreamError=qi}'), 'type_modifier': b'o'}}}), 'CFHTTPAuthenticationIsValid': (sel32or64('Z^{_CFHTTPAuthentication=}^{_CFStreamError=ii}', 'Z^{_CFHTTPAuthentication=}^{_CFStreamError=qi}'), '', {'arguments': {0: {'type': b'^{_CFHTTPAuthentication=}'}, 1: {'type': sel32or64(b'^{_CFStreamError=ii}', b'^{_CFStreamError=qi}'), 'type_modifier': b'o'}}}), 'CFHTTPReadStreamSetProxy': ('v^{__CFReadStream=}@l',), 'CFHTTPAuthenticationAppliesToRequest': ('Z^{_CFHTTPAuthentication=}^{__CFHTTPMessage=}',), 'CFNetServiceBrowserInvalidate': ('v^{__CFNetServiceBrowser=}',), 'CFNetServiceGetAddressing': ('^{__CFArray=}^{__CFNetService=}',), 'CFHTTPMessageSetHeaderFieldValue': ('v^{__CFHTTPMessage=}@@',), 'CFNetServiceBrowserStopSearch': (sel32or64('v^{__CFNetServiceBrowser=}^{_CFStreamError=ii}', 'v^{__CFNetServiceBrowser=}^{_CFStreamError=qi}'), '', {'arguments': {0: {'type': b'^{__CFNetServiceBrowser=}'}, 1: {'type': sel32or64(b'^{_CFStreamError=ii}', b'^{_CFStreamError=qi}'), 'type_modifier': b'o'}}}), 'CFHTTPMessageApplyCredentials': (sel32or64('Z^{__CFHTTPMessage=}^{_CFHTTPAuthentication=}@@^{_CFStreamError=ii}', 'Z^{__CFHTTPMessage=}^{_CFHTTPAuthentication=}@@^{_CFStreamError=qi}'), '', {'arguments': {0: {'type': b'^{__CFHTTPMessage=}'}, 1: {'type': b'^{_CFHTTPAuthentication=}'}, 2: {'type': b'@'}, 3: {'type': b'@'}, 4: {'type': sel32or64(b'^{_CFStreamError=ii}', b'^{_CFStreamError=qi}'), 'type_modifier': b'o'}}}), 'CFHTTPReadStreamSetRedirectsAutomatically': ('v^{__CFReadStream=}Z',), 'CFNetServiceRegisterWithOptions': (sel32or64('Z^{__CFNetService=}L^{_CFStreamError=ii}', 'Z^{__CFNetService=}L^{_CFStreamError=qi}'), '', {'arguments': {0: {'type': b'^{__CFNetService=}'}, 1: {'type': b'L'}, 2: {'type': sel32or64(b'^{_CFStreamError=ii}', b'^{_CFStreamError=qi}'), 'type_modifier': b'o'}}}), 'CFHTTPAuthenticationCopyMethod': ('@^{_CFHTTPAuthentication=}', '', {'retval': {'type': b'@', 'already_cfretained': True}}), 'CFNetServiceBrowserCreate': ('^{__CFNetServiceBrowser=}^{__CFAllocator=}^?^{CFNetServiceClientContext=l^v^?^?^?}', '', {'retval': {'type': b'^{__CFNetServiceBrowser=}', 'already_cfretained': True}}), 'CFNetServiceGetTargetHost': ('@^{__CFNetService=}',), 'CFNetworkCopyProxiesForAutoConfigurationScript': ('^{__CFArray=}@^{__CFURL=}^^{__CFError}', '', {'retval': {'type': b'^{__CFArray=}', 'already_cfretained': True}, 'arguments': {0: {'type': b'@'}, 1: {'type': b'^{__CFURL=}'}, 2: {'type': b'^^{__CFError}', 'type_modifier': b'o'}}}), 'CFNetServiceCreateDictionaryWithTXTData': ('^{__CFDictionary=}^{__CFAllocator=}^{__CFData=}', '', {'retval': {'type': b'^{__CFDictionary=}', 'already_cfretained': True}}), 'CFNetServiceRegister': (sel32or64('Z^{__CFNetService=}^{_CFStreamError=ii}', 'Z^{__CFNetService=}^{_CFStreamError=qi}'), '', {'arguments': {0: {'type': b'^{__CFNetService=}'}, 1: {'type': sel32or64(b'^{_CFStreamError=ii}', b'^{_CFStreamError=qi}'), 'type_modifier': b'o'}}}), 'CFHTTPMessageCopySerializedMessage': ('^{__CFData=}^{__CFHTTPMessage=}', '', {'retval': {'type': b'^{__CFData=}', 'already_cfretained': True}}), 'CFHostCreateCopy': ('^{__CFHost=}^{__CFAllocator=}^{__CFHost=}', '', {'retval': {'type': b'^{__CFHost=}', 'already_cfretained': True}}), 'CFHTTPAuthenticationRequiresAccountDomain': ('Z^{_CFHTTPAuthentication=}',), 'CFNetServiceSetTXTData': ('Z^{__CFNetService=}^{__CFData=}',), 'CFNetworkCopyProxiesForURL': ('^{__CFArray=}^{__CFURL=}^{__CFDictionary=}', '', {'retval': {'type': b'^{__CFArray=}', 'already_cfretained': True}}), 'CFReadStreamCreateForStreamedHTTPRequest': ('^{__CFReadStream=}^{__CFAllocator=}^{__CFHTTPMessage=}^{__CFReadStream=}', '', {'retval': {'type': b'^{__CFReadStream=}', 'already_cfretained': True}}), 'CFReadStreamCreateForHTTPRequest': ('^{__CFReadStream=}^{__CFAllocator=}^{__CFHTTPMessage=}', '', {'retval': {'type': b'^{__CFReadStream=}', 'already_cfretained': True}}), 'CFHTTPMessageCreateCopy': ('^{__CFHTTPMessage=}^{__CFAllocator=}^{__CFHTTPMessage=}', '', {'retval': {'type': b'^{__CFHTTPMessage=}', 'already_cfretained': True}}), 'CFNetServiceGetType': ('@^{__CFNetService=}',), 'CFNetServiceScheduleWithRunLoop': ('v^{__CFNetService=}^{__CFRunLoop=}@',), 'CFHTTPMessageCopyHeaderFieldValue': ('@^{__CFHTTPMessage=}@', '', {'retval': {'type': b'@', 'already_cfretained': True}}), 'CFNetServiceGetTXTData': ('^{__CFData=}^{__CFNetService=}',), 'CFHostStartInfoResolution': (sel32or64('Z^{__CFHost=}i^{_CFStreamError=ii}', 'Z^{__CFHost=}i^{_CFStreamError=qi}'), '', {'arguments': {0: {'type': b'^{__CFHost=}'}, 1: {'type': b'i'}, 2: {'type': sel32or64(b'^{_CFStreamError=ii}', b'^{_CFStreamError=qi}'), 'type_modifier': b'o'}}}), 'CFHTTPAuthenticationRequiresUserNameAndPassword': ('Z^{_CFHTTPAuthentication=}',), 'CFNetDiagnosticSetName': ('v^{__CFNetDiagnostic=}@',), 'CFNetServiceCreateTXTDataWithDictionary': ('^{__CFData=}^{__CFAllocator=}^{__CFDictionary=}', '', {'retval': {'type': b'^{__CFData=}', 'already_cfretained': True}}), 'CFReadStreamCreateWithFTPURL': ('^{__CFReadStream=}^{__CFAllocator=}^{__CFURL=}', '', {'retval': {'type': b'^{__CFReadStream=}', 'already_cfretained': True}}), 'CFNetServiceSetClient': ('Z^{__CFNetService=}^?^{CFNetServiceClientContext=l^v^?^?^?}',), 'CFNetServiceMonitorScheduleWithRunLoop': ('v^{__CFNetServiceMonitor=}^{__CFRunLoop=}@',), 'CFHostUnscheduleFromRunLoop': ('v^{__CFHost=}^{__CFRunLoop=}@',), 'CFHTTPMessageApplyCredentialDictionary': (sel32or64('Z^{__CFHTTPMessage=}^{_CFHTTPAuthentication=}^{__CFDictionary=}^{_CFStreamError=ii}', 'Z^{__CFHTTPMessage=}^{_CFHTTPAuthentication=}^{__CFDictionary=}^{_CFStreamError=qi}'), '', {'arguments': {0: {'type': b'^{__CFHTTPMessage=}'}, 1: {'type': b'^{_CFHTTPAuthentication=}'}, 2: {'type': b'^{__CFDictionary=}'}, 3: {'type': sel32or64(b'^{_CFStreamError=ii}', b'^{_CFStreamError=qi}'), 'type_modifier': b'o'}}}), 'CFHTTPMessageIsRequest': ('Z^{__CFHTTPMessage=}',), 'CFNetServiceResolve': (sel32or64('Z^{__CFNetService=}^{_CFStreamError=ii}', 'Z^{__CFNetService=}^{_CFStreamError=qi}'), '', {'arguments': {0: {'type': b'^{__CFNetService=}'}, 1: {'type': sel32or64(b'^{_CFStreamError=ii}', b'^{_CFStreamError=qi}'), 'type_modifier': b'o'}}}), 'CFHTTPMessageCopyBody': ('^{__CFData=}^{__CFHTTPMessage=}', '', {'retval': {'type': b'^{__CFData=}', 'already_cfretained': True}}), 'CFNetServiceBrowserScheduleWithRunLoop': ('v^{__CFNetServiceBrowser=}^{__CFRunLoop=}@',), 'CFHTTPMessageCreateResponse': ('^{__CFHTTPMessage=}^{__CFAllocator=}l@@', '', {'retval': {'type': b'^{__CFHTTPMessage=}', 'already_cfretained': True}}), 'CFHostGetTypeID': (sel32or64('L', 'Q'),), 'CFHTTPMessageCopyAllHeaderFields': ('^{__CFDictionary=}^{__CFHTTPMessage=}', '', {'retval': {'type': b'^{__CFDictionary=}', 'already_cfretained': True}}), 'CFHTTPMessageGetResponseStatusCode': (sel32or64('l^{__CFHTTPMessage=}', 'q^{__CFHTTPMessage=}'),), 'CFHTTPAuthenticationCopyDomains': ('^{__CFArray=}^{_CFHTTPAuthentication=}', '', {'retval': {'type': b'^{__CFArray=}', 'already_cfretained': True}}), 'CFNetServiceSetProtocolSpecificInformation': ('v^{__CFNetService=}@',), 'CFSocketStreamSOCKSGetErrorSubdomain': (sel32or64('l^{_CFStreamError=ii}', 'i^{_CFStreamError=qi}'), '', {'arguments': {0: {'type': sel32or64(b'^{_CFStreamError=ii}', b'^{_CFStreamError=qi}'), 'type_modifier': b'o'}}}), 'CFStreamCreatePairWithSocketToCFHost': ('v^{__CFAllocator=}^{__CFHost=}l^^{__CFReadStream}^^{__CFWriteStream}', '', {'arguments': {0: {'type': b'^{__CFAllocator=}'}, 1: {'type': b'^{__CFHost=}'}, 2: {'type': b'l'}, 3: {'type': b'^^{__CFReadStream}', 'type_modifier': b'o', 'already_cfretained': True}, 4: {'type': b'^^{__CFWriteStream}', 'type_modifier': b'o', 'already_cfretained': True}}}), 'CFStreamCreatePairWithSocketToNetService': ('v^{__CFAllocator=}^{__CFNetService=}^^{__CFReadStream}^^{__CFWriteStream}', '', {'arguments': {0: {'type': b'^{__CFAllocator=}'}, 1: {'type': b'^{__CFNetService=}'}, 2: {'type': b'^^{__CFReadStream}', 'type_modifier': b'o', 'already_cfretained': True}, 3: {'type': b'^^{__CFWriteStream}', 'type_modifier': b'o', 'already_cfretained': True}}}), 'CFNetServiceResolveWithTimeout': (sel32or64('Z^{__CFNetService=}d^{_CFStreamError=ii}', 'Z^{__CFNetService=}d^{_CFStreamError=qi}'), '', {'arguments': {0: {'type': b'^{__CFNetService=}'}, 1: {'type': b'd'}, 2: {'type': sel32or64(b'^{_CFStreamError=ii}', b'^{_CFStreamError=qi}'), 'type_modifier': b'o'}}}), 'CFHostSetClient': ('Z^{__CFHost=}^?^{CFHostClientContext=l^v^?^?^?}',)}
 cftypes = []
 cftypes.append(('CFHTTPAuthenticationRef', '^{_CFHTTPAuthentication=}', 'CFHTTPAuthenticationGetTypeID', None))
 cftypes.append(('CFHTTPMessageRef', '^{__CFHTTPMessage=}', 'CFHTTPMessageGetTypeID', None))

pyobjc-framework-CFNetwork/PyObjCTest/test_cfhttpauthentication.py

             self.assertIsInstance(err, CFStreamError)
 
         self.assertResultIsCFRetained(CFHTTPAuthenticationCopyRealm)
-        self.assertResultHasType(CFHTTPAuthenticationCopyRealm, b'^{__CFString=}')
+        self.assertResultHasType(CFHTTPAuthenticationCopyRealm, b'@')
         v = CFHTTPAuthenticationCopyRealm(ref)
         self.assertTrue(v is None or isinstance(v, unicode))
 
         self.assertTrue(v is None or isinstance(v, CFArrayRef))
 
         self.assertResultIsCFRetained(CFHTTPAuthenticationCopyMethod)
-        self.assertResultHasType(CFHTTPAuthenticationCopyMethod, b'^{__CFString=}')
+        self.assertResultHasType(CFHTTPAuthenticationCopyMethod, b'@')
         v = CFHTTPAuthenticationCopyMethod(ref)
         self.assertTrue(v is None or isinstance(v, unicode))
 

pyobjc-framework-CFNetwork/PyObjCTest/test_cfhttpmessage.py

         return value.encode('latin1')
 
 class TestCFHTTPMessage (TestCase):
+    @min_os_level('10.6')
+    def testConstants10_6(self):
+        self.assertIsInstance(kCFHTTPAuthenticationSchemeNegotiate2, unicode)
+        self.assertIsInstance(kCFHTTPAuthenticationSchemeXMobileMeAuthToken, unicode)
 
     @min_os_level('10.5')
     def testConstants10_5(self):
         self.assertIsInstance(kCFHTTPAuthenticationSchemeNTLM, unicode)
         self.assertIsInstance(kCFHTTPAuthenticationSchemeNegotiate, unicode)
 
+    @expectedFailure
+    @min_os_level('10.5')
+    def testConstants10_5_failure(self):
+        self.assertIsInstance(kCFHTTPAuthenticationSchemeKerberos, unicode)
+
     def testConstants(self):
         self.assertIsInstance(kCFHTTPVersion1_0, unicode)
         self.assertIsInstance(kCFHTTPVersion1_1, unicode)
 
 if __name__ == "__main__":
     main()
-
-
-
-
-
-

pyobjc-framework-CFNetwork/PyObjCTest/test_cfhttpstream.py

         self.assertIsInstance(kCFStreamPropertyHTTPFinalRequest, unicode)
 
     def testConstants(self):
+        self.assertIsInstance(kCFStreamErrorDomainHTTP, (int, long))
+
         self.assertEqual(kCFStreamErrorHTTPParseFailure, -1)
         self.assertEqual(kCFStreamErrorHTTPRedirectionLoop, -2)
         self.assertEqual(kCFStreamErrorHTTPBadURL, -3)

pyobjc-framework-CFNetwork/PyObjCTest/test_cfnetservices.py

 from CFNetwork import *
+import Foundation
+import sys
 from PyObjCTools.TestSupport import *
 
+if sys.version_info[0] != 2:
+    def buffer(value):
+        return value.encode('latin1')
+
 
 class TestCFNetServices (TestCase):
     def testTypes(self):
         else:
             self.assertIsInstance(err, CFStreamError)
 
+        self.assertResultIsBOOL(CFNetServiceResolveWithTimeout)
+        self.assertArgIsOut(CFNetServiceResolveWithTimeout, 2)
+        ok, err = CFNetServiceResolveWithTimeout(serv, 1.0, None)
+        self.assertIsInstance(ok, bool)
+        if ok:
+            self.assertEqual(err, None)
+        else:
+            self.assertIsInstance(err, CFStreamError)
+
+        host = CFNetServiceGetTargetHost(serv)
+        self.assertIsInstance(host, (unicode, type(None)))
+
+        port = CFNetServiceGetPortNumber(serv)
+        self.assertIsInstance(port, (int, long))
+
+        v = CFNetServiceGetAddressing(serv)
+        self.assertIsInstance(v, (Foundation.NSArray, type(None)))
+
+        v = CFNetServiceGetTXTData(serv)
+        self.assertIsInstance(v, (Foundation.NSData, type(None)))
+
+        v = CFNetServiceCreateTXTDataWithDictionary(None, {'key': 'value', 'key2': 'value2'})
+        self.assertIsInstance(v, Foundation.NSData)
+
+        v = CFNetServiceCreateDictionaryWithTXTData(None, v)
+        self.assertIsInstance(v, Foundation.NSDictionary)
+
+        self.assertResultIsBOOL(CFNetServiceSetTXTData)
+        ok = CFNetServiceSetTXTData(serv, buffer("hello"))
+        self.assertIsInstance(ok, bool)
+
+        rl = CFRunLoopGetCurrent()
+        CFNetServiceScheduleWithRunLoop(serv, rl, kCFRunLoopDefaultMode)
+        CFNetServiceUnscheduleFromRunLoop(serv, rl, kCFRunLoopDefaultMode)
+
+        CFNetServiceCancel(serv)
+
+    @expectedFailure
+    def testMissingTests(self):
+        self.fail("CFNetServiceSetClient")
+        self.fail("CFNetServiceMonitorCreate")
+        self.fail("CFNetServiceMonitorInvalidate")
+        self.fail("CFNetServiceMonitorStart")
+        self.fail("CFNetServiceMonitorStop")
+        self.fail("CFNetServiceMonitorScheduleWithRunLoop")
+        self.fail("CFNetServiceMonitorUnscheduleFromRunLoop")
+        self.fail("CFNetServiceBrowserCreate")
+        self.fail("CFNetServiceBrowserInvalidate")
+        self.fail("CFNetServiceBrowserSearchForDomains")
+        self.fail("CFNetServiceBrowserSearchForServices")
+        self.fail("CFNetServiceBrowserStopSearch")
+        self.fail("CFNetServiceBrowserScheduleWithRunLoop")
+        self.fail("CFNetServiceBrowserUnscheduleFromRunLoop")
+        self.fail("CFNetServiceRegister")
+        self.fail("CFNetServiceResolve")
+        self.fail("CFNetServiceGetProtocolSpecificInformation")
+        self.fail("CFNetServiceSetProtocolSpecificInformation")
+        
+
 
 if __name__ == "__main__":
     main()

pyobjc-framework-CFNetwork/PyObjCTest/test_cfnetworkerrors.py

         self.assertIsInstance(kCFSOCKSNegotiationMethodKey, unicode)
         self.assertIsInstance(kCFDNSServiceFailureKey, unicode)
         self.assertIsInstance(kCFFTPStatusCodeKey, unicode)
+        self.assertIsInstance(kCFURLErrorFailingURLErrorKey, unicode)
+        self.assertIsInstance(kCFURLErrorFailingURLStringErrorKey, unicode)
 
     @min_os_level('10.6')
     def testConstants10_6(self):
         self.assertEqual(kCFURLErrorDownloadDecodingFailedToComplete, -3007)
         self.assertEqual(kCFHTTPCookieCannotParseCookieFile, -4000)
 
-        self.assertIsInstance(kCFURLErrorFailingURLErrorKey, unicode)
-        self.assertIsInstance(kCFURLErrorFailingURLStringErrorKey, unicode)
 
 
     def testConstants(self):

pyobjc-framework-CFNetwork/PyObjCTest/test_cfproxysupport.py

             self.assertIsInstance(lst[0][2], CFErrorRef)
 
 
-        
+    @min_os_level('10.7')
+    def testConstants10_7(self):
+        self.assertIsInstance(kCFProxyAutoConfigurationJavaScriptKey, unicode)
+        self.assertIsInstance(kCFProxyTypeAutoConfigurationJavaScript, unicode)
+
+    @expectedFailure
+    @min_os_level('10.7')
+    def testConstants10_7_failure(self):
+        self.assertIsInstance(kCFNetworkProxiesProxyAutoConfigJavaScript, unicode)
 
     @min_os_level('10.5')
-    def testConstants(self):
+    def testConstants10_5(self):
         self.assertIsInstance(kCFProxyTypeKey, unicode)
         self.assertIsInstance(kCFProxyHostNameKey, unicode)
         self.assertIsInstance(kCFProxyPortNumberKey, unicode)
         self.assertIsInstance(kCFNetworkProxiesHTTPEnable, unicode)
         self.assertIsInstance(kCFNetworkProxiesHTTPPort, unicode)
         self.assertIsInstance(kCFNetworkProxiesHTTPProxy, unicode)
-        self.assertIsInstance(kCFNetworkProxiesProxyAutoConfigEnable, unicode)
-        self.assertIsInstance(kCFNetworkProxiesProxyAutoConfigURLString, unicode)
 
     @expectedFailure
     @min_os_level('10.5')
         self.assertIsInstance(kCFNetworkProxiesSOCKSEnable, unicode)
         self.assertIsInstance(kCFNetworkProxiesSOCKSPort, unicode)
         self.assertIsInstance(kCFNetworkProxiesSOCKSProxy, unicode)
+        self.assertIsInstance(kCFNetworkProxiesProxyAutoConfigEnable, unicode)
+        self.assertIsInstance(kCFNetworkProxiesProxyAutoConfigURLString, unicode)
+        self.assertIsInstance(kCFNetworkProxiesProxyAutoDiscoveryEnable, unicode)
 
 
 

pyobjc-framework-CFNetwork/PyObjCTest/test_cfsocketstream.py

 
 
 class TestCFSocketStream (TestCase):
+    @min_os_level('10.7')
+    def testConstants10_7(self):
+        self.assertIsInstance(kCFStreamNetworkServiceType, unicode)
+        self.assertIsInstance(kCFStreamNetworkServiceTypeVoIP, unicode)
+        self.assertIsInstance(kCFStreamNetworkServiceTypeVideo, unicode)
+        self.assertIsInstance(kCFStreamNetworkServiceTypeBackground, unicode)
+        self.assertIsInstance(kCFStreamNetworkServiceTypeVoice, unicode)
+
     @min_os_level('10.5')
     def testConstants10_5(self):
         self.assertIsInstance(kCFStreamPropertySSLPeerTrust, unicode)
         self.assertEqual(kCFStreamErrorSOCKS4IdConflict, 93)
         self.assertEqual(kSOCKS5NoAcceptableMethod, 0xFF)
 
+        self.assertIsInstance(kCFStreamPropertySOCKSProxy, unicode)
         self.assertIsInstance(kCFStreamPropertySOCKSProxyHost, unicode)
         self.assertIsInstance(kCFStreamPropertySOCKSProxyPort, unicode)
         self.assertIsInstance(kCFStreamPropertySOCKSVersion, unicode)
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.