this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Stub AssetCacheServices

+430
+24
src/private-frameworks/AssetCacheServices/CMakeLists.txt
··· 1 + project(AssetCacheServices) 2 + 3 + set(DYLIB_COMPAT_VERSION "1.0.0") 4 + set(DYLIB_CURRENT_VERSION "106.1.0") 5 + 6 + add_framework(AssetCacheServices 7 + FAT 8 + CURRENT_VERSION 9 + PRIVATE 10 + VERSION "A" 11 + 12 + SOURCES 13 + src/AssetCacheServices.m 14 + src/ACSURLSession.m 15 + src/ACSURLSessionUploadTask.m 16 + src/ACSURLSessionDataTask.m 17 + src/ACSURLSessionTask.m 18 + src/ACSURLSessionDownloadTask.m 19 + 20 + DEPENDENCIES 21 + system 22 + objc 23 + Foundation 24 + )
+24
src/private-frameworks/AssetCacheServices/include/AssetCacheServices/ACSURLSession.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2020 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #include <Foundation/Foundation.h> 21 + 22 + @interface ACSURLSession : NSObject 23 + 24 + @end
+24
src/private-frameworks/AssetCacheServices/include/AssetCacheServices/ACSURLSessionDataTask.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2020 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #include <Foundation/Foundation.h> 21 + 22 + @interface ACSURLSessionDataTask : NSObject 23 + 24 + @end
+24
src/private-frameworks/AssetCacheServices/include/AssetCacheServices/ACSURLSessionDownloadTask.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2020 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #include <Foundation/Foundation.h> 21 + 22 + @interface ACSURLSessionDownloadTask : NSObject 23 + 24 + @end
+24
src/private-frameworks/AssetCacheServices/include/AssetCacheServices/ACSURLSessionTask.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2020 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #include <Foundation/Foundation.h> 21 + 22 + @interface ACSURLSessionTask : NSObject 23 + 24 + @end
+24
src/private-frameworks/AssetCacheServices/include/AssetCacheServices/ACSURLSessionUploadTask.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2020 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #include <Foundation/Foundation.h> 21 + 22 + @interface ACSURLSessionUploadTask : NSObject 23 + 24 + @end
+44
src/private-frameworks/AssetCacheServices/include/AssetCacheServices/AssetCacheServices.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2020 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + 21 + #ifndef _AssetCacheServices_H_ 22 + #define _AssetCacheServices_H_ 23 + 24 + #include <CoreFoundation/CoreFoundation.h> 25 + #include <dispatch/dispatch.h> 26 + 27 + #import <Foundation/Foundation.h> 28 + 29 + #import <AssetCacheServices/ACSURLSession.h> 30 + #import <AssetCacheServices/ACSURLSessionUploadTask.h> 31 + #import <AssetCacheServices/ACSURLSessionDataTask.h> 32 + #import <AssetCacheServices/ACSURLSessionTask.h> 33 + #import <AssetCacheServices/ACSURLSessionDownloadTask.h> 34 + 35 + void ACSImportFileIntoCachingServer(CFURLRef asset_url, CFStringRef source_path, CFDictionaryRef headers, CFDictionaryRef options, dispatch_queue_t callback_queue, void(^callback)(bool)); 36 + void ACSLocateCachingServer(CFURLRef asset_url, double timeout, CFDictionaryRef options, dispatch_queue_t callback_queue, void(^callback)(CFURLRef, CFMutableDictionaryRef)); 37 + void ACSMightCurrentNetworkHaveCachingServer(CFDictionaryRef options, dispatch_queue_t callback_queue, void(^callback)(bool)); 38 + void ACSUpdateCachingServerHealth(CFURLRef url, CFDictionaryRef options, BOOL healthy); 39 + void _ACSIntrospect(CFDictionaryRef options, dispatch_queue_t callback_queue, void(^callback)(CFTypeRef)); // block argument created with `_CFXPCCreateCFObjectFromXPCObject` from an `introspection` key in the XPC response dictionary 40 + void _ACSLocateAllCachingServers(double timeout, CFDictionaryRef options, dispatch_queue_t callback_queue, void(^callback)(CFMutableArrayRef)); 41 + void _ACSSetTestFlags(uint64_t flags, CFDictionaryRef dictionary); 42 + void _A_CALLBACK_BLOCK_RELEASED_AN_ASSETCACHESERVICES_OBJECT_IT_DID_NOT_OWN(int integer, const char* function_name, const char* string, void* object); 43 + 44 + #endif
+34
src/private-frameworks/AssetCacheServices/src/ACSURLSession.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2020 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #import <AssetCacheServices/ACSURLSession.h> 21 + 22 + @implementation ACSURLSession 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 25 + { 26 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 27 + } 28 + 29 + - (void)forwardInvocation:(NSInvocation *)anInvocation 30 + { 31 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 32 + } 33 + 34 + @end
+34
src/private-frameworks/AssetCacheServices/src/ACSURLSessionDataTask.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2020 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #import <AssetCacheServices/ACSURLSessionDataTask.h> 21 + 22 + @implementation ACSURLSessionDataTask 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 25 + { 26 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 27 + } 28 + 29 + - (void)forwardInvocation:(NSInvocation *)anInvocation 30 + { 31 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 32 + } 33 + 34 + @end
+34
src/private-frameworks/AssetCacheServices/src/ACSURLSessionDownloadTask.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2020 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #import <AssetCacheServices/ACSURLSessionDownloadTask.h> 21 + 22 + @implementation ACSURLSessionDownloadTask 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 25 + { 26 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 27 + } 28 + 29 + - (void)forwardInvocation:(NSInvocation *)anInvocation 30 + { 31 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 32 + } 33 + 34 + @end
+34
src/private-frameworks/AssetCacheServices/src/ACSURLSessionTask.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2020 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #import <AssetCacheServices/ACSURLSessionTask.h> 21 + 22 + @implementation ACSURLSessionTask 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 25 + { 26 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 27 + } 28 + 29 + - (void)forwardInvocation:(NSInvocation *)anInvocation 30 + { 31 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 32 + } 33 + 34 + @end
+34
src/private-frameworks/AssetCacheServices/src/ACSURLSessionUploadTask.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2020 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + #import <AssetCacheServices/ACSURLSessionUploadTask.h> 21 + 22 + @implementation ACSURLSessionUploadTask 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector 25 + { 26 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 27 + } 28 + 29 + - (void)forwardInvocation:(NSInvocation *)anInvocation 30 + { 31 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 32 + } 33 + 34 + @end
+70
src/private-frameworks/AssetCacheServices/src/AssetCacheServices.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2020 Lubos Dolezel 5 + 6 + Darling is free software: you can redistribute it and/or modify 7 + it under the terms of the GNU General Public License as published by 8 + the Free Software Foundation, either version 3 of the License, or 9 + (at your option) any later version. 10 + 11 + Darling is distributed in the hope that it will be useful, 12 + but WITHOUT ANY WARRANTY; without even the implied warranty of 13 + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 + GNU General Public License for more details. 15 + 16 + You should have received a copy of the GNU General Public License 17 + along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 + */ 19 + 20 + 21 + #include <AssetCacheServices/AssetCacheServices.h> 22 + #include <stdlib.h> 23 + #include <stdio.h> 24 + 25 + static int verbose = 0; 26 + 27 + __attribute__((constructor)) 28 + static void initme(void) { 29 + verbose = getenv("STUB_VERBOSE") != NULL; 30 + } 31 + 32 + void ACSImportFileIntoCachingServer(CFURLRef asset_url, CFStringRef source_path, CFDictionaryRef headers, CFDictionaryRef options, dispatch_queue_t callback_queue, void(^callback)(bool)) { 33 + if (verbose) 34 + printf("STUB: %s called\n", __PRETTY_FUNCTION__); 35 + }; 36 + 37 + void ACSLocateCachingServer(CFURLRef asset_url, double timeout, CFDictionaryRef options, dispatch_queue_t callback_queue, void(^callback)(CFURLRef, CFMutableDictionaryRef)) { 38 + if (verbose) 39 + printf("STUB: %s called\n", __PRETTY_FUNCTION__); 40 + }; 41 + 42 + void ACSMightCurrentNetworkHaveCachingServer(CFDictionaryRef options, dispatch_queue_t callback_queue, void(^callback)(bool)) { 43 + if (verbose) 44 + printf("STUB: %s called\n", __PRETTY_FUNCTION__); 45 + }; 46 + 47 + void ACSUpdateCachingServerHealth(CFURLRef url, CFDictionaryRef options, BOOL healthy) { 48 + if (verbose) 49 + printf("STUB: %s called\n", __PRETTY_FUNCTION__); 50 + }; 51 + 52 + void _ACSIntrospect(CFDictionaryRef options, dispatch_queue_t callback_queue, void(^callback)(CFTypeRef)) { 53 + if (verbose) 54 + printf("STUB: %s called\n", __PRETTY_FUNCTION__); 55 + }; 56 + 57 + void _ACSLocateAllCachingServers(double timeout, CFDictionaryRef options, dispatch_queue_t callback_queue, void(^callback)(CFMutableArrayRef)) { 58 + if (verbose) 59 + printf("STUB: %s called\n", __PRETTY_FUNCTION__); 60 + }; 61 + 62 + void _ACSSetTestFlags(uint64_t flags, CFDictionaryRef dictionary) { 63 + if (verbose) 64 + printf("STUB: %s called\n", __PRETTY_FUNCTION__); 65 + }; 66 + 67 + void _A_CALLBACK_BLOCK_RELEASED_AN_ASSETCACHESERVICES_OBJECT_IT_DID_NOT_OWN(int integer, const char* function_name, const char* string, void* object) { 68 + if (verbose) 69 + printf("STUB: %s called\n", __PRETTY_FUNCTION__); 70 + };
+1
src/private-frameworks/CMakeLists.txt
··· 4 4 5 5 add_subdirectory(AppleSystemInfo) 6 6 add_subdirectory(AppleSauce) 7 + add_subdirectory(AssetCacheServices) 7 8 add_subdirectory(AuthKit) 8 9 add_subdirectory(CrashReporterSupport) 9 10 add_subdirectory(ConfigurationProfiles)
+1
src/private-frameworks/include/AssetCacheServices
··· 1 + ../AssetCacheServices/include/AssetCacheServices