this repo has no description
1
fork

Configure Feed

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

Stub MobileAsset and update ProtocolBuffer stubs

+1397 -87
+1
src/private-frameworks/CMakeLists.txt
··· 20 20 add_subdirectory(kperf) 21 21 add_subdirectory(LoggingSupport) 22 22 add_subdirectory(login) 23 + add_subdirectory(MobileAsset) 23 24 add_subdirectory(MobileDevice) 24 25 add_subdirectory(NetworkStatistics) 25 26 add_subdirectory(PackageKit)
+31
src/private-frameworks/MobileAsset/CMakeLists.txt
··· 1 + project(MobileAsset) 2 + 3 + set(DYLIB_COMPAT_VERSION "1.0.0") 4 + set(DYLIB_CURRENT_VERSION "1.0.0") 5 + 6 + add_framework(MobileAsset 7 + FAT 8 + CURRENT_VERSION 9 + PRIVATE 10 + VERSION "A" 11 + 12 + SOURCES 13 + src/MobileAsset.m 14 + src/MAProgressHandler.m 15 + src/MAAsset.m 16 + src/MAAssetQuery.m 17 + src/ASAsset.m 18 + src/ASAssetQuery.m 19 + src/MAXpcManager.m 20 + src/MAAbsoluteAssetId.m 21 + src/MADownloadOptions.m 22 + src/MAMsuDownloadOptions.m 23 + src/MADownloadConfig.m 24 + src/MAProgressNotification.m 25 + src/MAXpcConnection.m 26 + 27 + DEPENDENCIES 28 + system 29 + objc 30 + Foundation 31 + )
+24
src/private-frameworks/MobileAsset/include/MobileAsset/ASAsset.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 ASAsset : NSObject 23 + 24 + @end
+24
src/private-frameworks/MobileAsset/include/MobileAsset/ASAssetQuery.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 ASAssetQuery : NSObject 23 + 24 + @end
+24
src/private-frameworks/MobileAsset/include/MobileAsset/MAAbsoluteAssetId.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 MAAbsoluteAssetId : NSObject 23 + 24 + @end
+60
src/private-frameworks/MobileAsset/include/MobileAsset/MAAsset.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 + // this is wrong; i *know* this is wrong 23 + // this doesn't even belong here 24 + // this *should* be in `MobileKeyBag/MobileKeyBag.h`, but apparently 25 + // `OTATrustUtilities.m` only imports that on iOS, but still expects this to be 26 + // defined on macOS (i figure it's probably an error in Apple's code, 27 + // because even `SecAKSWrappers.c` uses a different constant on macOS) 28 + #define kMobileKeyBagLockStatusNotificationID (-1) 29 + 30 + // seem to be implicitly depended on by `OTATrustUtilities.m` in Security 31 + #import <MobileAsset/ASAsset.h> 32 + #import <MobileAsset/MADownloadOptions.h> 33 + 34 + // not quite sure if this is an enum, or if this even belongs here 35 + typedef NS_ENUM(NSInteger, MAPurgeResult) { 36 + MAPurgeSucceeded = 0, // conventional value for success 37 + }; 38 + 39 + // also not sure about this one 40 + typedef NS_ENUM(NSInteger, MADownLoadResult) { 41 + MADownloadSuccessful = 0, // same here; success = 0 42 + MADownloadDaemonNotReady = -1, // errors are usually negative 43 + }; 44 + 45 + // i'm not even sure if this is supposed to exist 46 + typedef NS_ENUM(NSInteger, MAAssetState) { 47 + MAInstalled, 48 + MAUnknown, 49 + MADownloading, 50 + MANotPresent, 51 + 52 + MAInstalledOnly, // not sure if this one is like the others 53 + }; 54 + 55 + @interface MAAsset : NSObject 56 + 57 + @property () NSDictionary* attributes; 58 + @property () MAAssetState state; 59 + 60 + @end
+38
src/private-frameworks/MobileAsset/include/MobileAsset/MAAssetQuery.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 + #import <MobileAsset/MAAsset.h> 23 + 24 + // seems to be implicitly depended on by `OTATrustUtilities.m` in Security 25 + #import <MobileAsset/ASAssetQuery.h> 26 + 27 + // really not sure if this is an enum 28 + typedef NS_ENUM(NSInteger, MAQueryResult) { 29 + MAQuerySuccessful = 0, 30 + }; 31 + 32 + @interface MAAssetQuery : NSObject 33 + 34 + // guessing it's readonly, since it wouldn't really make sense for clients to be able to 35 + // write results to a query 36 + @property (readonly) NSArray<MAAsset*>* results; 37 + 38 + @end
+24
src/private-frameworks/MobileAsset/include/MobileAsset/MADownloadConfig.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 MADownloadConfig : NSObject 23 + 24 + @end
+28
src/private-frameworks/MobileAsset/include/MobileAsset/MADownloadOptions.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 MADownloadOptions : NSObject 23 + 24 + // i know `readwrite` isn't necessary, but i hate seeing the empty parentheses 25 + @property (readwrite) BOOL discretionary; 26 + @property (readwrite) BOOL allowsCellularAccess; 27 + 28 + @end
+24
src/private-frameworks/MobileAsset/include/MobileAsset/MAMsuDownloadOptions.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 MAMsuDownloadOptions : NSObject 23 + 24 + @end
+24
src/private-frameworks/MobileAsset/include/MobileAsset/MAProgressHandler.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 MAProgressHandler : NSObject 23 + 24 + @end
+24
src/private-frameworks/MobileAsset/include/MobileAsset/MAProgressNotification.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 MAProgressNotification : NSObject 23 + 24 + @end
+24
src/private-frameworks/MobileAsset/include/MobileAsset/MAXpcConnection.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 MAXpcConnection : NSObject 23 + 24 + @end
+24
src/private-frameworks/MobileAsset/include/MobileAsset/MAXpcManager.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 MAXpcManager : NSObject 23 + 24 + @end
+91
src/private-frameworks/MobileAsset/include/MobileAsset/MobileAsset.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 _MobileAsset_H_ 22 + #define _MobileAsset_H_ 23 + 24 + #import <Foundation/Foundation.h> 25 + 26 + #import <MobileAsset/MAProgressHandler.h> 27 + #import <MobileAsset/MAAsset.h> 28 + #import <MobileAsset/MAAssetQuery.h> 29 + #import <MobileAsset/ASAsset.h> 30 + #import <MobileAsset/ASAssetQuery.h> 31 + #import <MobileAsset/MAXpcManager.h> 32 + #import <MobileAsset/MAAbsoluteAssetId.h> 33 + #import <MobileAsset/MADownloadOptions.h> 34 + #import <MobileAsset/MAMsuDownloadOptions.h> 35 + #import <MobileAsset/MADownloadConfig.h> 36 + #import <MobileAsset/MAProgressNotification.h> 37 + #import <MobileAsset/MAXpcConnection.h> 38 + 39 + void* ASEnsureDataVault(void); 40 + void* ASNonUserInitiatedDownloadsAllowed(void); 41 + void* ASServerURLForAssetType(void); 42 + void* ASSetAssetServerURL(void); 43 + void* ASSetAssetServerURLForAssetType(void); 44 + void* ASSetDefaultAssetServerURLForAssetType(void); 45 + void* ASSetLogLevel(void); 46 + void* MACleanV1Repository(void); 47 + void* MAGetPallasAudience(void); 48 + void* MAMigrateAssets(void); 49 + void* MAPurgeAll(void); 50 + void* MASendRepairState(void); 51 + void* MASetPallasAudience(void); 52 + void* MASetPallasUrl(void); 53 + void* MASetServerUrlOverride(void); 54 + void* MobileAssetQueryCreate(void); 55 + void* MobileAssetQueryCreateArrayOfKnownAssets(void); 56 + void* MobileAssetQueryGetMatchingAsset(void); 57 + void* MobileAssetQueryGetTypeID(void); 58 + void* MobileAssetQueryRefreshAssetsAgainstLocalCache(void); 59 + void* MobileAssetQueryRefreshKnownAssets(void); 60 + void* _ForceMetadataUpdate(void); 61 + void* _MACleanV1Repository(void); 62 + void* _MAClientSendRepairState(void); 63 + void* _MAMigrateAssets(void); 64 + void* _MAclientSendCoverageDump(void); 65 + void* _MAclientSendQueryNSUrlState(void); 66 + void* _MAclientSendRepairStateSync(void); 67 + void* _MAclientSendServerUrlOverride(void); 68 + void* _MAensureExtension(void); 69 + void* _MAsendCancelDownload(void); 70 + void* _MAsendConfigDownload(void); 71 + void* _MAsendDownloadAsset(void); 72 + void* _MAsendDownloadMetaData(void); 73 + void* _MAsendDumpClientAccess(void); 74 + void* _MAsendGarbageCollect(void); 75 + void* _MAsendGetPallasAudience(void); 76 + void* _MAsendPurgeAsset(void); 77 + void* _MAsendQueryMetaData(void); 78 + void* _MAsendSetPallasAudience(void); 79 + void* _MAsendSetPallasUrl(void); 80 + void* _MAsendUpdateClientAccess(void); 81 + void* _MobileAssetGarbageCollectionBehaviorForAttributes(void); 82 + void* _MobileAssetLog(void); 83 + void* __DiscardDownloadQueueToken(void); 84 + void* __ForceMigration(void); 85 + void* __RetryQueuedDownloads(void); 86 + void* __StartBackgroundedDownloads(void); 87 + void* __TriggerAssetMigration(void); 88 + void* _getClientCallbackQueue(void); 89 + void* addObjectToMessage(void); 90 + 91 + #endif
+34
src/private-frameworks/MobileAsset/src/ASAsset.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 <MobileAsset/ASAsset.h> 21 + 22 + @implementation ASAsset 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/MobileAsset/src/ASAssetQuery.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 <MobileAsset/ASAssetQuery.h> 21 + 22 + @implementation ASAssetQuery 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/MobileAsset/src/MAAbsoluteAssetId.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 <MobileAsset/MAAbsoluteAssetId.h> 21 + 22 + @implementation MAAbsoluteAssetId 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/MobileAsset/src/MAAsset.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 <MobileAsset/MAAsset.h> 21 + 22 + @implementation MAAsset 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/MobileAsset/src/MAAssetQuery.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 <MobileAsset/MAAssetQuery.h> 21 + 22 + @implementation MAAssetQuery 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/MobileAsset/src/MADownloadConfig.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 <MobileAsset/MADownloadConfig.h> 21 + 22 + @implementation MADownloadConfig 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/MobileAsset/src/MADownloadOptions.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 <MobileAsset/MADownloadOptions.h> 21 + 22 + @implementation MADownloadOptions 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/MobileAsset/src/MAMsuDownloadOptions.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 <MobileAsset/MAMsuDownloadOptions.h> 21 + 22 + @implementation MAMsuDownloadOptions 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/MobileAsset/src/MAProgressHandler.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 <MobileAsset/MAProgressHandler.h> 21 + 22 + @implementation MAProgressHandler 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/MobileAsset/src/MAProgressNotification.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 <MobileAsset/MAProgressNotification.h> 21 + 22 + @implementation MAProgressNotification 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/MobileAsset/src/MAXpcConnection.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 <MobileAsset/MAXpcConnection.h> 21 + 22 + @implementation MAXpcConnection 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/MobileAsset/src/MAXpcManager.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 <MobileAsset/MAXpcManager.h> 21 + 22 + @implementation MAXpcManager 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
+336
src/private-frameworks/MobileAsset/src/MobileAsset.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 <MobileAsset/MobileAsset.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* ASEnsureDataVault(void) 33 + { 34 + if (verbose) puts("STUB: ASEnsureDataVault called"); 35 + return NULL; 36 + } 37 + 38 + void* ASNonUserInitiatedDownloadsAllowed(void) 39 + { 40 + if (verbose) puts("STUB: ASNonUserInitiatedDownloadsAllowed called"); 41 + return NULL; 42 + } 43 + 44 + void* ASServerURLForAssetType(void) 45 + { 46 + if (verbose) puts("STUB: ASServerURLForAssetType called"); 47 + return NULL; 48 + } 49 + 50 + void* ASSetAssetServerURL(void) 51 + { 52 + if (verbose) puts("STUB: ASSetAssetServerURL called"); 53 + return NULL; 54 + } 55 + 56 + void* ASSetAssetServerURLForAssetType(void) 57 + { 58 + if (verbose) puts("STUB: ASSetAssetServerURLForAssetType called"); 59 + return NULL; 60 + } 61 + 62 + void* ASSetDefaultAssetServerURLForAssetType(void) 63 + { 64 + if (verbose) puts("STUB: ASSetDefaultAssetServerURLForAssetType called"); 65 + return NULL; 66 + } 67 + 68 + void* ASSetLogLevel(void) 69 + { 70 + if (verbose) puts("STUB: ASSetLogLevel called"); 71 + return NULL; 72 + } 73 + 74 + void* MACleanV1Repository(void) 75 + { 76 + if (verbose) puts("STUB: MACleanV1Repository called"); 77 + return NULL; 78 + } 79 + 80 + void* MAGetPallasAudience(void) 81 + { 82 + if (verbose) puts("STUB: MAGetPallasAudience called"); 83 + return NULL; 84 + } 85 + 86 + void* MAMigrateAssets(void) 87 + { 88 + if (verbose) puts("STUB: MAMigrateAssets called"); 89 + return NULL; 90 + } 91 + 92 + void* MAPurgeAll(void) 93 + { 94 + if (verbose) puts("STUB: MAPurgeAll called"); 95 + return NULL; 96 + } 97 + 98 + void* MASendRepairState(void) 99 + { 100 + if (verbose) puts("STUB: MASendRepairState called"); 101 + return NULL; 102 + } 103 + 104 + void* MASetPallasAudience(void) 105 + { 106 + if (verbose) puts("STUB: MASetPallasAudience called"); 107 + return NULL; 108 + } 109 + 110 + void* MASetPallasUrl(void) 111 + { 112 + if (verbose) puts("STUB: MASetPallasUrl called"); 113 + return NULL; 114 + } 115 + 116 + void* MASetServerUrlOverride(void) 117 + { 118 + if (verbose) puts("STUB: MASetServerUrlOverride called"); 119 + return NULL; 120 + } 121 + 122 + void* MobileAssetQueryCreate(void) 123 + { 124 + if (verbose) puts("STUB: MobileAssetQueryCreate called"); 125 + return NULL; 126 + } 127 + 128 + void* MobileAssetQueryCreateArrayOfKnownAssets(void) 129 + { 130 + if (verbose) puts("STUB: MobileAssetQueryCreateArrayOfKnownAssets called"); 131 + return NULL; 132 + } 133 + 134 + void* MobileAssetQueryGetMatchingAsset(void) 135 + { 136 + if (verbose) puts("STUB: MobileAssetQueryGetMatchingAsset called"); 137 + return NULL; 138 + } 139 + 140 + void* MobileAssetQueryGetTypeID(void) 141 + { 142 + if (verbose) puts("STUB: MobileAssetQueryGetTypeID called"); 143 + return NULL; 144 + } 145 + 146 + void* MobileAssetQueryRefreshAssetsAgainstLocalCache(void) 147 + { 148 + if (verbose) puts("STUB: MobileAssetQueryRefreshAssetsAgainstLocalCache called"); 149 + return NULL; 150 + } 151 + 152 + void* MobileAssetQueryRefreshKnownAssets(void) 153 + { 154 + if (verbose) puts("STUB: MobileAssetQueryRefreshKnownAssets called"); 155 + return NULL; 156 + } 157 + 158 + void* _ForceMetadataUpdate(void) 159 + { 160 + if (verbose) puts("STUB: _ForceMetadataUpdate called"); 161 + return NULL; 162 + } 163 + 164 + void* _MACleanV1Repository(void) 165 + { 166 + if (verbose) puts("STUB: _MACleanV1Repository called"); 167 + return NULL; 168 + } 169 + 170 + void* _MAClientSendRepairState(void) 171 + { 172 + if (verbose) puts("STUB: _MAClientSendRepairState called"); 173 + return NULL; 174 + } 175 + 176 + void* _MAMigrateAssets(void) 177 + { 178 + if (verbose) puts("STUB: _MAMigrateAssets called"); 179 + return NULL; 180 + } 181 + 182 + void* _MAclientSendCoverageDump(void) 183 + { 184 + if (verbose) puts("STUB: _MAclientSendCoverageDump called"); 185 + return NULL; 186 + } 187 + 188 + void* _MAclientSendQueryNSUrlState(void) 189 + { 190 + if (verbose) puts("STUB: _MAclientSendQueryNSUrlState called"); 191 + return NULL; 192 + } 193 + 194 + void* _MAclientSendRepairStateSync(void) 195 + { 196 + if (verbose) puts("STUB: _MAclientSendRepairStateSync called"); 197 + return NULL; 198 + } 199 + 200 + void* _MAclientSendServerUrlOverride(void) 201 + { 202 + if (verbose) puts("STUB: _MAclientSendServerUrlOverride called"); 203 + return NULL; 204 + } 205 + 206 + void* _MAensureExtension(void) 207 + { 208 + if (verbose) puts("STUB: _MAensureExtension called"); 209 + return NULL; 210 + } 211 + 212 + void* _MAsendCancelDownload(void) 213 + { 214 + if (verbose) puts("STUB: _MAsendCancelDownload called"); 215 + return NULL; 216 + } 217 + 218 + void* _MAsendConfigDownload(void) 219 + { 220 + if (verbose) puts("STUB: _MAsendConfigDownload called"); 221 + return NULL; 222 + } 223 + 224 + void* _MAsendDownloadAsset(void) 225 + { 226 + if (verbose) puts("STUB: _MAsendDownloadAsset called"); 227 + return NULL; 228 + } 229 + 230 + void* _MAsendDownloadMetaData(void) 231 + { 232 + if (verbose) puts("STUB: _MAsendDownloadMetaData called"); 233 + return NULL; 234 + } 235 + 236 + void* _MAsendDumpClientAccess(void) 237 + { 238 + if (verbose) puts("STUB: _MAsendDumpClientAccess called"); 239 + return NULL; 240 + } 241 + 242 + void* _MAsendGarbageCollect(void) 243 + { 244 + if (verbose) puts("STUB: _MAsendGarbageCollect called"); 245 + return NULL; 246 + } 247 + 248 + void* _MAsendGetPallasAudience(void) 249 + { 250 + if (verbose) puts("STUB: _MAsendGetPallasAudience called"); 251 + return NULL; 252 + } 253 + 254 + void* _MAsendPurgeAsset(void) 255 + { 256 + if (verbose) puts("STUB: _MAsendPurgeAsset called"); 257 + return NULL; 258 + } 259 + 260 + void* _MAsendQueryMetaData(void) 261 + { 262 + if (verbose) puts("STUB: _MAsendQueryMetaData called"); 263 + return NULL; 264 + } 265 + 266 + void* _MAsendSetPallasAudience(void) 267 + { 268 + if (verbose) puts("STUB: _MAsendSetPallasAudience called"); 269 + return NULL; 270 + } 271 + 272 + void* _MAsendSetPallasUrl(void) 273 + { 274 + if (verbose) puts("STUB: _MAsendSetPallasUrl called"); 275 + return NULL; 276 + } 277 + 278 + void* _MAsendUpdateClientAccess(void) 279 + { 280 + if (verbose) puts("STUB: _MAsendUpdateClientAccess called"); 281 + return NULL; 282 + } 283 + 284 + void* _MobileAssetGarbageCollectionBehaviorForAttributes(void) 285 + { 286 + if (verbose) puts("STUB: _MobileAssetGarbageCollectionBehaviorForAttributes called"); 287 + return NULL; 288 + } 289 + 290 + void* _MobileAssetLog(void) 291 + { 292 + if (verbose) puts("STUB: _MobileAssetLog called"); 293 + return NULL; 294 + } 295 + 296 + void* __DiscardDownloadQueueToken(void) 297 + { 298 + if (verbose) puts("STUB: __DiscardDownloadQueueToken called"); 299 + return NULL; 300 + } 301 + 302 + void* __ForceMigration(void) 303 + { 304 + if (verbose) puts("STUB: __ForceMigration called"); 305 + return NULL; 306 + } 307 + 308 + void* __RetryQueuedDownloads(void) 309 + { 310 + if (verbose) puts("STUB: __RetryQueuedDownloads called"); 311 + return NULL; 312 + } 313 + 314 + void* __StartBackgroundedDownloads(void) 315 + { 316 + if (verbose) puts("STUB: __StartBackgroundedDownloads called"); 317 + return NULL; 318 + } 319 + 320 + void* __TriggerAssetMigration(void) 321 + { 322 + if (verbose) puts("STUB: __TriggerAssetMigration called"); 323 + return NULL; 324 + } 325 + 326 + void* _getClientCallbackQueue(void) 327 + { 328 + if (verbose) puts("STUB: _getClientCallbackQueue called"); 329 + return NULL; 330 + } 331 + 332 + void* addObjectToMessage(void) 333 + { 334 + if (verbose) puts("STUB: addObjectToMessage called"); 335 + return NULL; 336 + }
+9
src/private-frameworks/ProtocolBuffer/include/ProtocolBuffer/PBCodable.h
··· 19 19 20 20 #include <Foundation/Foundation.h> 21 21 22 + // apparently imports these? at least according to Security's `SECC2MPCloudKitInfo.{h,m}` 23 + #import <ProtocolBuffer/PBDataReader.h> 24 + #import <ProtocolBuffer/PBDataWriter.h> 25 + 22 26 @interface PBCodable : NSObject 27 + 28 + - (id)initWithData:(NSData*)data; 29 + 30 + @property (readonly) NSDictionary* dictionaryRepresentation; 31 + @property (readonly) NSData* data; 23 32 24 33 @end
+26
src/private-frameworks/ProtocolBuffer/include/ProtocolBuffer/PBConstants.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 + #ifndef _PBCONSTANTS_H_ 21 + #define _PBCONSTANTS_H_ 22 + 23 + // not sure what the value is here 24 + #define TYPE_END_GROUP ((uint8_t)0xff) 25 + 26 + #endif // _PBCONSTANTS_H_
+37
src/private-frameworks/ProtocolBuffer/include/ProtocolBuffer/PBDataReader.h
··· 19 19 20 20 #include <Foundation/Foundation.h> 21 21 22 + // not sure what this type is 23 + typedef int PBDataReaderMark; 24 + 22 25 @interface PBDataReader : NSObject 23 26 24 27 @end 28 + 29 + // seems to be either a macro or an inline function 30 + // (probably the latter) 31 + static inline BOOL PBReaderHasMoreData(PBDataReader* reader) { 32 + return FALSE; // stubbed 33 + }; 34 + 35 + static inline void PBReaderReadTag32AndType(PBDataReader* reader, uint32_t* tag, uint8_t* type) { 36 + return; 37 + }; 38 + 39 + static inline BOOL PBReaderHasError(PBDataReader* reader) { 40 + return FALSE; 41 + }; 42 + 43 + static inline BOOL PBReaderReadBOOL(PBDataReader* reader) { 44 + return FALSE; 45 + }; 46 + 47 + static inline uint64_t PBReaderReadUint64(PBDataReader* reader) { 48 + return 0; 49 + }; 50 + 51 + NSString* PBReaderReadString(PBDataReader* reader); 52 + NSData* PBReaderReadData(PBDataReader* reader); 53 + BOOL PBReaderPlaceMark(PBDataReader* reader, PBDataReaderMark* mark); 54 + void PBReaderRecallMark(PBDataReader* reader, PBDataReaderMark* mark); 55 + BOOL PBReaderSkipValueWithTag(PBDataReader* reader, uint32_t tag, uint8_t type); 56 + 57 + // guesses 58 + uint16_t PBReaderReadBigEndianFixed16(PBDataReader* reader); 59 + uint32_t PBReaderReadBigEndianFixed32(PBDataReader* reader); 60 + uint64_t PBReaderReadBigEndianFixed64(PBDataReader* reader); 61 + void* PBReaderReadVarIntBuf(PBDataReader* reader);
+30
src/private-frameworks/ProtocolBuffer/include/ProtocolBuffer/PBDataWriter.h
··· 19 19 20 20 #include <Foundation/Foundation.h> 21 21 22 + typedef int PBDataReaderMark; 23 + 24 + @class PBCodable; 25 + 22 26 @interface PBDataWriter : NSObject 23 27 24 28 @end 29 + 30 + void PBDataWriterWriteStringField(PBDataWriter* writer, NSString* string, uint32_t tag); 31 + void PBDataWriterWriteBOOLField(PBDataWriter* writer, BOOL boolean, uint32_t tag); 32 + 33 + void PBDataWriterPlaceMark(PBDataWriter* writer, PBDataReaderMark* mark, uint32_t tag); 34 + void PBDataWriterRecallMark(PBDataWriter* writer, PBDataReaderMark* mark, uint32_t tag); 35 + // not sure what the varint type is here 36 + void PBDataWriterWriteBareVarint(PBDataWriter* writer, void* value, uint32_t tag); 37 + void PBDataWriterWriteDataField(PBDataWriter* writer, NSData* value, uint32_t tag); 38 + void PBDataWriterWriteDoubleField(PBDataWriter* writer, double value, uint32_t tag); 39 + void PBDataWriterWriteFixed32Field(PBDataWriter* writer, int32_t value, uint32_t tag); 40 + void PBDataWriterWriteFixed64Field(PBDataWriter* writer, int64_t value, uint32_t tag); 41 + void PBDataWriterWriteFloatField(PBDataWriter* writer, float value, uint32_t tag); 42 + void PBDataWriterWriteInt32Field(PBDataWriter* writer, int32_t value, uint32_t tag); 43 + void PBDataWriterWriteInt64Field(PBDataWriter* writer, int64_t value, uint32_t tag); 44 + void PBDataWriterWriteSfixed32Field(PBDataWriter* writer, int32_t value, uint32_t tag); 45 + void PBDataWriterWriteSfixed64Field(PBDataWriter* writer, int64_t value, uint32_t tag); 46 + void PBDataWriterWriteSint32Field(PBDataWriter* writer, int32_t value, uint32_t tag); 47 + void PBDataWriterWriteSint64Field(PBDataWriter* writer, int64_t value, uint32_t tag); 48 + // also unsure here 49 + void PBDataWriterWriteSubgroup(PBDataWriter* writer, void* group, uint32_t tag); 50 + void PBDataWriterWriteUint32Field(PBDataWriter* writer, uint32_t value, uint32_t tag); 51 + void PBDataWriterWriteUint64Field(PBDataWriter* writer, uint64_t value, uint32_t tag); 52 + 53 + // not entirely sure about that second parameter type 54 + void PBDataWriterWriteSubmessage(PBDataWriter* writer, PBCodable* codable, uint32_t tag);
+29
src/private-frameworks/ProtocolBuffer/include/ProtocolBuffer/PBHashUtil.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 + #ifndef _PBHASHUTIL_H_ 21 + #define _PBHASHUTIL_H_ 22 + 23 + static inline NSUInteger PBHashInt(NSUInteger integer) { 24 + return integer; 25 + }; 26 + 27 + void* PBHashBytes(void); 28 + 29 + #endif // _PBHASHUTIL_H_
-30
src/private-frameworks/ProtocolBuffer/include/ProtocolBuffer/ProtocolBuffer.h
··· 40 40 #import <ProtocolBuffer/PBUnknownFields.h> 41 41 #import <ProtocolBuffer/PBSessionRequester.h> 42 42 43 - void* PBDataWriterPlaceMark(void); 44 - void* PBDataWriterRecallMark(void); 45 - void* PBDataWriterWriteBOOLField(void); 46 - void* PBDataWriterWriteBareVarint(void); 47 - void* PBDataWriterWriteDataField(void); 48 - void* PBDataWriterWriteDoubleField(void); 49 - void* PBDataWriterWriteFixed32Field(void); 50 - void* PBDataWriterWriteFixed64Field(void); 51 - void* PBDataWriterWriteFloatField(void); 52 - void* PBDataWriterWriteInt32Field(void); 53 - void* PBDataWriterWriteInt64Field(void); 54 - void* PBDataWriterWriteSfixed32Field(void); 55 - void* PBDataWriterWriteSfixed64Field(void); 56 - void* PBDataWriterWriteSint32Field(void); 57 - void* PBDataWriterWriteSint64Field(void); 58 - void* PBDataWriterWriteStringField(void); 59 - void* PBDataWriterWriteSubgroup(void); 60 - void* PBDataWriterWriteSubmessage(void); 61 - void* PBDataWriterWriteUint32Field(void); 62 - void* PBDataWriterWriteUint64Field(void); 63 - void* PBHashBytes(void); 64 - void* PBReaderPlaceMark(void); 65 - void* PBReaderReadBigEndianFixed16(void); 66 - void* PBReaderReadBigEndianFixed32(void); 67 - void* PBReaderReadBigEndianFixed64(void); 68 - void* PBReaderReadData(void); 69 - void* PBReaderReadString(void); 70 - void* PBReaderReadVarIntBuf(void); 71 - void* PBReaderRecallMark(void); 72 - void* PBReaderSkipValueWithTag(void); 73 43 void* PBRepeatedBOOLAdd(void); 74 44 void* PBRepeatedBOOLClear(void); 75 45 void* PBRepeatedBOOLCopy(void);
+57 -57
src/private-frameworks/ProtocolBuffer/src/ProtocolBuffer.m
··· 29 29 verbose = getenv("STUB_VERBOSE") != NULL; 30 30 } 31 31 32 - void* PBDataWriterPlaceMark(void) 32 + void PBDataWriterPlaceMark(PBDataWriter* writer, PBDataReaderMark* mark, uint32_t tag) 33 33 { 34 34 if (verbose) puts("STUB: PBDataWriterPlaceMark called"); 35 - return NULL; 35 + return; 36 36 } 37 37 38 - void* PBDataWriterRecallMark(void) 38 + void PBDataWriterRecallMark(PBDataWriter* writer, PBDataReaderMark* mark, uint32_t tag) 39 39 { 40 40 if (verbose) puts("STUB: PBDataWriterRecallMark called"); 41 - return NULL; 41 + return; 42 42 } 43 43 44 - void* PBDataWriterWriteBOOLField(void) 44 + void PBDataWriterWriteBOOLField(PBDataWriter* writer, BOOL boolean, uint32_t tag) 45 45 { 46 46 if (verbose) puts("STUB: PBDataWriterWriteBOOLField called"); 47 - return NULL; 47 + return; 48 48 } 49 49 50 - void* PBDataWriterWriteBareVarint(void) 50 + void PBDataWriterWriteBareVarint(PBDataWriter* writer, void* value, uint32_t tag) 51 51 { 52 52 if (verbose) puts("STUB: PBDataWriterWriteBareVarint called"); 53 - return NULL; 53 + return; 54 54 } 55 55 56 - void* PBDataWriterWriteDataField(void) 56 + void PBDataWriterWriteDataField(PBDataWriter* writer, NSData* value, uint32_t tag) 57 57 { 58 58 if (verbose) puts("STUB: PBDataWriterWriteDataField called"); 59 - return NULL; 59 + return; 60 60 } 61 61 62 - void* PBDataWriterWriteDoubleField(void) 62 + void PBDataWriterWriteDoubleField(PBDataWriter* writer, double value, uint32_t tag) 63 63 { 64 64 if (verbose) puts("STUB: PBDataWriterWriteDoubleField called"); 65 - return NULL; 65 + return; 66 66 } 67 67 68 - void* PBDataWriterWriteFixed32Field(void) 68 + void PBDataWriterWriteFixed32Field(PBDataWriter* writer, int32_t value, uint32_t tag) 69 69 { 70 70 if (verbose) puts("STUB: PBDataWriterWriteFixed32Field called"); 71 - return NULL; 71 + return; 72 72 } 73 73 74 - void* PBDataWriterWriteFixed64Field(void) 74 + void PBDataWriterWriteFixed64Field(PBDataWriter* writer, int64_t value, uint32_t tag) 75 75 { 76 76 if (verbose) puts("STUB: PBDataWriterWriteFixed64Field called"); 77 - return NULL; 77 + return; 78 78 } 79 79 80 - void* PBDataWriterWriteFloatField(void) 80 + void PBDataWriterWriteFloatField(PBDataWriter* writer, float value, uint32_t tag) 81 81 { 82 82 if (verbose) puts("STUB: PBDataWriterWriteFloatField called"); 83 - return NULL; 83 + return; 84 84 } 85 85 86 - void* PBDataWriterWriteInt32Field(void) 86 + void PBDataWriterWriteInt32Field(PBDataWriter* writer, int32_t value, uint32_t tag) 87 87 { 88 88 if (verbose) puts("STUB: PBDataWriterWriteInt32Field called"); 89 - return NULL; 89 + return; 90 90 } 91 91 92 - void* PBDataWriterWriteInt64Field(void) 92 + void PBDataWriterWriteInt64Field(PBDataWriter* writer, int64_t value, uint32_t tag) 93 93 { 94 94 if (verbose) puts("STUB: PBDataWriterWriteInt64Field called"); 95 - return NULL; 95 + return; 96 96 } 97 97 98 - void* PBDataWriterWriteSfixed32Field(void) 98 + void PBDataWriterWriteSfixed32Field(PBDataWriter* writer, int32_t value, uint32_t tag) 99 99 { 100 100 if (verbose) puts("STUB: PBDataWriterWriteSfixed32Field called"); 101 - return NULL; 101 + return; 102 102 } 103 103 104 - void* PBDataWriterWriteSfixed64Field(void) 104 + void PBDataWriterWriteSfixed64Field(PBDataWriter* writer, int64_t value, uint32_t tag) 105 105 { 106 106 if (verbose) puts("STUB: PBDataWriterWriteSfixed64Field called"); 107 - return NULL; 107 + return; 108 108 } 109 109 110 - void* PBDataWriterWriteSint32Field(void) 110 + void PBDataWriterWriteSint32Field(PBDataWriter* writer, int32_t value, uint32_t tag) 111 111 { 112 112 if (verbose) puts("STUB: PBDataWriterWriteSint32Field called"); 113 - return NULL; 113 + return; 114 114 } 115 115 116 - void* PBDataWriterWriteSint64Field(void) 116 + void PBDataWriterWriteSint64Field(PBDataWriter* writer, int64_t value, uint32_t tag) 117 117 { 118 118 if (verbose) puts("STUB: PBDataWriterWriteSint64Field called"); 119 - return NULL; 119 + return; 120 120 } 121 121 122 - void* PBDataWriterWriteStringField(void) 122 + void PBDataWriterWriteStringField(PBDataWriter* writer, NSString* string, uint32_t tag) 123 123 { 124 124 if (verbose) puts("STUB: PBDataWriterWriteStringField called"); 125 - return NULL; 125 + return; 126 126 } 127 127 128 - void* PBDataWriterWriteSubgroup(void) 128 + void PBDataWriterWriteSubgroup(PBDataWriter* writer, void* group, uint32_t tag) 129 129 { 130 130 if (verbose) puts("STUB: PBDataWriterWriteSubgroup called"); 131 - return NULL; 131 + return; 132 132 } 133 133 134 - void* PBDataWriterWriteSubmessage(void) 134 + void PBDataWriterWriteSubmessage(PBDataWriter* writer, PBCodable* codable, uint32_t tag) 135 135 { 136 136 if (verbose) puts("STUB: PBDataWriterWriteSubmessage called"); 137 - return NULL; 137 + return; 138 138 } 139 139 140 - void* PBDataWriterWriteUint32Field(void) 140 + void PBDataWriterWriteUint32Field(PBDataWriter* writer, uint32_t value, uint32_t tag) 141 141 { 142 142 if (verbose) puts("STUB: PBDataWriterWriteUint32Field called"); 143 - return NULL; 143 + return; 144 144 } 145 145 146 - void* PBDataWriterWriteUint64Field(void) 146 + void PBDataWriterWriteUint64Field(PBDataWriter* writer, uint64_t value, uint32_t tag) 147 147 { 148 148 if (verbose) puts("STUB: PBDataWriterWriteUint64Field called"); 149 - return NULL; 149 + return; 150 150 } 151 151 152 152 void* PBHashBytes(void) ··· 155 155 return NULL; 156 156 } 157 157 158 - void* PBReaderPlaceMark(void) 158 + BOOL PBReaderPlaceMark(PBDataReader* reader, PBDataReaderMark* mark) 159 159 { 160 160 if (verbose) puts("STUB: PBReaderPlaceMark called"); 161 - return NULL; 161 + return FALSE; 162 162 } 163 163 164 - void* PBReaderReadBigEndianFixed16(void) 164 + uint16_t PBReaderReadBigEndianFixed16(PBDataReader* reader) 165 165 { 166 166 if (verbose) puts("STUB: PBReaderReadBigEndianFixed16 called"); 167 - return NULL; 167 + return; 168 168 } 169 169 170 - void* PBReaderReadBigEndianFixed32(void) 170 + uint32_t PBReaderReadBigEndianFixed32(PBDataReader* reader) 171 171 { 172 172 if (verbose) puts("STUB: PBReaderReadBigEndianFixed32 called"); 173 - return NULL; 173 + return; 174 174 } 175 175 176 - void* PBReaderReadBigEndianFixed64(void) 176 + uint64_t PBReaderReadBigEndianFixed64(PBDataReader* reader) 177 177 { 178 178 if (verbose) puts("STUB: PBReaderReadBigEndianFixed64 called"); 179 - return NULL; 179 + return; 180 180 } 181 181 182 - void* PBReaderReadData(void) 182 + NSData* PBReaderReadData(PBDataReader* reader) 183 183 { 184 184 if (verbose) puts("STUB: PBReaderReadData called"); 185 - return NULL; 185 + return; 186 186 } 187 187 188 - void* PBReaderReadString(void) 188 + NSString* PBReaderReadString(PBDataReader* reader) 189 189 { 190 190 if (verbose) puts("STUB: PBReaderReadString called"); 191 191 return NULL; 192 192 } 193 193 194 - void* PBReaderReadVarIntBuf(void) 194 + void* PBReaderReadVarIntBuf(PBDataReader* reader) 195 195 { 196 196 if (verbose) puts("STUB: PBReaderReadVarIntBuf called"); 197 - return NULL; 197 + return; 198 198 } 199 199 200 - void* PBReaderRecallMark(void) 200 + void PBReaderRecallMark(PBDataReader* reader, PBDataReaderMark* mark); 201 201 { 202 202 if (verbose) puts("STUB: PBReaderRecallMark called"); 203 - return NULL; 203 + return; 204 204 } 205 205 206 - void* PBReaderSkipValueWithTag(void) 206 + BOOL PBReaderSkipValueWithTag(PBDataReader* reader, uint32_t tag, uint8_t type) 207 207 { 208 208 if (verbose) puts("STUB: PBReaderSkipValueWithTag called"); 209 - return NULL; 209 + return FALSE; 210 210 } 211 211 212 212 void* PBRepeatedBOOLAdd(void)