CFProxySupport.h
1 #ifndef __CFPROXYSUPPORT__ 2 #define __CFPROXYSUPPORT__ 3 4 #ifndef __CFNETWORKDEFS__ 5 #include <CFNetwork/CFNetworkDefs.h> 6 #endif 7 8 #ifndef __CFARRAY__ 9 #include <CoreFoundation/CFArray.h> 10 #endif 11 12 #ifndef __CFSTRING__ 13 #include <CoreFoundation/CFString.h> 14 #endif 15 16 #ifndef __CFURL__ 17 #include <CoreFoundation/CFURL.h> 18 #endif 19 20 #ifndef __CFERROR__ 21 #include <CoreFoundation/CFError.h> 22 #endif 23 24 #ifndef __CFRUNLOOP__ 25 #include <CoreFoundation/CFRunLoop.h> 26 #endif 27 28 #ifndef __CFSTREAM__ 29 #include <CoreFoundation/CFStream.h> 30 #endif 31 32 #include <Availability.h> 33 34 #if PRAGMA_ONCE 35 #pragma once 36 #endif 37 38 __BEGIN_DECLS 39 40 typedef CALLBACK_API_C( void , CFProxyAutoConfigurationResultCallback )(void *client, CFArrayRef proxyList, CFErrorRef error); 41 42 CFN_EXPORT CFDictionaryRef CFNetworkCopySystemProxySettings(void); 43 CFN_EXPORT CFArrayRef CFNetworkCopyProxiesForURL(CFURLRef url, CFDictionaryRef proxySettings); 44 CFN_EXPORT CFArrayRef CFNetworkCopyProxiesForAutoConfigurationScript(CFStringRef proxyAutoConfigurationScript, CFURLRef targetURL, CFErrorRef *error); 45 CFN_EXPORT CFRunLoopSourceRef CFNetworkExecuteProxyAutoConfigurationScript(CFStringRef proxyAutoConfigurationScript, CFURLRef targetURL, CFProxyAutoConfigurationResultCallback cb, CFStreamClientContext *clientContext); 46 CFN_EXPORT CFRunLoopSourceRef CFNetworkExecuteProxyAutoConfigurationURL(CFURLRef proxyAutoConfigURL, CFURLRef targetURL, CFProxyAutoConfigurationResultCallback cb, CFStreamClientContext *clientContext); 47 48 CFN_EXPORT const CFStringRef kCFProxyTypeKey; 49 CFN_EXPORT const CFStringRef kCFProxyPortNumberKey; 50 CFN_EXPORT const CFStringRef kCFProxyAutoConfigurationURLKey; 51 CFN_EXPORT const CFStringRef kCFProxyAutoConfigurationJavaScriptKey; 52 CFN_EXPORT const CFStringRef kCFProxyUsernameKey; 53 CFN_EXPORT const CFStringRef kCFProxyPasswordKey; 54 CFN_EXPORT const CFStringRef kCFProxyHostNameKey; 55 CFN_EXPORT const CFStringRef kCFProxyTypeNone; 56 CFN_EXPORT const CFStringRef kCFProxyTypeHTTP; 57 CFN_EXPORT const CFStringRef kCFProxyTypeHTTPS; 58 CFN_EXPORT const CFStringRef kCFProxyTypeSOCKS; 59 CFN_EXPORT const CFStringRef kCFProxyTypeFTP; 60 CFN_EXPORT const CFStringRef kCFProxyTypeAutoConfigurationURL; 61 CFN_EXPORT const CFStringRef kCFProxyTypeAutoConfigurationJavaScript; 62 CFN_EXPORT const CFStringRef kCFProxyAutoConfigurationHTTPResponseKey; 63 CFN_EXPORT const CFStringRef kCFNetworkProxiesExceptionsList; 64 CFN_EXPORT const CFStringRef kCFNetworkProxiesExcludeSimpleHostnames; 65 CFN_EXPORT const CFStringRef kCFNetworkProxiesFTPEnable; 66 CFN_EXPORT const CFStringRef kCFNetworkProxiesFTPPassive; 67 CFN_EXPORT const CFStringRef kCFNetworkProxiesFTPPort; 68 CFN_EXPORT const CFStringRef kCFNetworkProxiesFTPProxy; 69 CFN_EXPORT const CFStringRef kCFNetworkProxiesGopherEnable; 70 CFN_EXPORT const CFStringRef kCFNetworkProxiesGopherPort; 71 CFN_EXPORT const CFStringRef kCFNetworkProxiesGopherProxy; 72 CFN_EXPORT const CFStringRef kCFNetworkProxiesHTTPEnable; 73 CFN_EXPORT const CFStringRef kCFNetworkProxiesHTTPPort; 74 CFN_EXPORT const CFStringRef kCFNetworkProxiesHTTPProxy; 75 CFN_EXPORT const CFStringRef kCFNetworkProxiesHTTPSEnable; 76 CFN_EXPORT const CFStringRef kCFNetworkProxiesHTTPSPort; 77 CFN_EXPORT const CFStringRef kCFNetworkProxiesHTTPSProxy; 78 CFN_EXPORT const CFStringRef kCFNetworkProxiesRTSPEnable; 79 CFN_EXPORT const CFStringRef kCFNetworkProxiesRTSPPort; 80 CFN_EXPORT const CFStringRef kCFNetworkProxiesRTSPProxy; 81 CFN_EXPORT const CFStringRef kCFNetworkProxiesSOCKSEnable; 82 CFN_EXPORT const CFStringRef kCFNetworkProxiesSOCKSPort; 83 CFN_EXPORT const CFStringRef kCFNetworkProxiesSOCKSProxy; 84 CFN_EXPORT const CFStringRef kCFNetworkProxiesProxyAutoConfigEnable; 85 CFN_EXPORT const CFStringRef kCFNetworkProxiesProxyAutoConfigURLString; 86 CFN_EXPORT const CFStringRef kCFNetworkProxiesProxyAutoConfigJavaScript; 87 CFN_EXPORT const CFStringRef kCFNetworkProxiesProxyAutoDiscoveryEnable; 88 89 __END_DECLS 90 91 #endif