this repo has no description
at fixPythonPipStalling 84 lines 3.0 kB view raw
1#include <CoreFoundation/CoreFoundation.h> 2#include <stdio.h> 3#include <SystemConfiguration/SystemConfiguration.h> 4 5#define STUB() printf("STUB %s\n", __func__) 6 7const CFStringRef kSCDynamicStoreDomainState = CFSTR("State:"); 8const CFStringRef kSCEntNetIPv4 = CFSTR("IPv4"); 9const CFStringRef kSCEntNetIPv6 = CFSTR("IPv6"); 10const CFStringRef kSCPropNetIPv4Router = CFSTR("Router"); 11const CFStringRef kSCPropNetIPv6Router = CFSTR("Router"); /* Yes, they are the same */ 12const CFStringRef kSCCompSystem = CFSTR("System"); 13 14const CFStringRef kSCConsoleSessionUserName = CFSTR("kCGSSessionUserNameKey"); /* value is CFString */ 15const CFStringRef kSCConsoleSessionUID = CFSTR("kCGSSessionUserIDKey"); /* value is CFNumber (a uid_t) */ 16const CFStringRef kSCConsoleSessionConsoleSet = CFSTR("kCGSSessionConsoleSetKey"); /* value is CFNumber */ 17const CFStringRef kSCConsoleSessionOnConsole = CFSTR("kCGSSessionOnConsoleKey"); /* value is CFBoolean */ 18const CFStringRef kSCConsoleSessionLoginDone = CFSTR("kCGSessionLoginDoneKey"); /* value is CFBoolean */ 19const CFStringRef kSCConsoleSessionID = CFSTR("kCGSSessionIDKey"); /* value is CFNumber */ 20const CFStringRef kSCConsoleSessionSystemSafeBoot = CFSTR("kCGSSessionSystemSafeBoot"); /* value is CFBoolean */ 21const CFStringRef kSCConsoleSessionLoginwindowSafeLogin = CFSTR("kCGSSessionLoginwindowSafeLogin"); /* value is CFBoolean */ 22 23const CFStringRef kSCCompAnyRegex = CFSTR("[^/]+"); 24const CFStringRef kSCEntNetDNS = CFSTR("DNS"); 25 26CFStringRef SCDynamicStoreKeyCreateNetworkGlobalEntity(CFAllocatorRef allocator, CFStringRef domain, CFStringRef entity) 27{ 28 STUB(); 29 return NULL; 30} 31 32CFPropertyListRef SCDynamicStoreCopyValue(SCDynamicStoreRef store, CFStringRef key) 33{ 34 STUB(); 35 return NULL; 36} 37 38SCDynamicStoreRef SCDynamicStoreCreate(CFAllocatorRef allocator, CFStringRef name, SCDynamicStoreCallBack callout, SCDynamicStoreContext *context) 39{ 40 STUB(); 41 return NULL; 42} 43 44CFStringRef SCDynamicStoreKeyCreate(CFAllocatorRef allocator, CFStringRef fmt, ...) 45{ 46 STUB(); 47 return NULL; 48} 49 50Boolean SCDynamicStoreSetDispatchQueue(SCDynamicStoreRef store, dispatch_queue_t queue) 51{ 52 STUB(); 53 return FALSE; 54} 55 56Boolean SCDynamicStoreSetNotificationKeys(SCDynamicStoreRef store, CFArrayRef __nullable keys, CFArrayRef __nullable patterns) { 57 STUB(); 58 return FALSE; 59} 60 61CFStringRef SCDynamicStoreKeyCreateComputerName(CFAllocatorRef allocator) { 62 STUB(); 63 return NULL; 64}; 65 66Boolean SCPreferencesSetComputerName(SCPreferencesRef prefs, CFStringRef __nullable name, CFStringEncoding nameEncoding) { 67 STUB(); 68 return FALSE; 69}; 70 71Boolean SCPreferencesSetLocalHostName(SCPreferencesRef prefs, CFStringRef __nullable name) { 72 STUB(); 73 return FALSE; 74}; 75 76CFStringRef SCDynamicStoreKeyCreateHostNames(CFAllocatorRef allocator) { 77 STUB(); 78 return NULL; 79}; 80 81CFStringRef SCDynamicStoreKeyCreateNetworkInterfaceEntity(CFAllocatorRef allocator, CFStringRef domain, CFStringRef ifname, CFStringRef entity) { 82 STUB(); 83 return NULL; 84};