this repo has no description
1
fork

Configure Feed

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

Create DiskManagement and NetworkStatistics stubs

+2036 -1
+4
src/CMakeLists.txt
··· 154 154 ${CMAKE_CURRENT_SOURCE_DIR}/external/WTF/include 155 155 ${CMAKE_CURRENT_SOURCE_DIR}/external/bmalloc/include 156 156 ${CMAKE_CURRENT_SOURCE_DIR}/PerformanceAnalysis/include 157 + ${CMAKE_CURRENT_SOURCE_DIR}/DiskManagement/include 158 + ${CMAKE_CURRENT_SOURCE_DIR}/NetworkStatistics/include 157 159 ${CMAKE_CURRENT_SOURCE_DIR}/lkm/include 158 160 ) 159 161 ··· 297 299 add_subdirectory(login) 298 300 add_subdirectory(DebugSymbols) 299 301 add_subdirectory(PerformanceAnalysis) 302 + add_subdirectory(DiskManagement) 303 + add_subdirectory(NetworkStatistics) 300 304 add_subdirectory(external/bsm) 301 305 add_subdirectory(external/gdb) 302 306 add_subdirectory(external/Heimdal)
+23
src/DiskManagement/CMakeLists.txt
··· 1 + project(DiskManagement) 2 + 3 + set(DYLIB_COMPAT_VERSION "1.0.0") 4 + set(DYLIB_CURRENT_VERSION "1.0.0") 5 + 6 + file(GLOB DM_C src/*.c) 7 + file(GLOB DM_OBJC src/*.m) 8 + 9 + add_framework(DiskManagement 10 + FAT 11 + CURRENT_VERSION 12 + PRIVATE 13 + VERSION "A" 14 + 15 + SOURCES 16 + ${DM_C} 17 + ${DM_OBJC} 18 + 19 + DEPENDENCIES 20 + system 21 + objc 22 + Foundation 23 + )
+22
src/DiskManagement/include/DiskManagement/DMAPFS.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 + @interface DMAPFS : NSObject 21 + 22 + @end
+22
src/DiskManagement/include/DiskManagement/DMAPFSPrivVars.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 + @interface DMAPFSPrivVars : NSObject 21 + 22 + @end
+22
src/DiskManagement/include/DiskManagement/DMAppleRAID.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 + @interface DMAppleRAID : NSObject 21 + 22 + @end
+22
src/DiskManagement/include/DiskManagement/DMAppleRAIDPrivVars.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 + @interface DMAppleRAIDPrivVars : NSObject 21 + 22 + @end
+22
src/DiskManagement/include/DiskManagement/DMCoreStorage.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 + @interface DMCoreStorage : NSObject 21 + 22 + @end
+22
src/DiskManagement/include/DiskManagement/DMCoreStoragePrivVars.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 + @interface DMCoreStoragePrivVars : NSObject 21 + 22 + @end
+22
src/DiskManagement/include/DiskManagement/DMDisk.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 + @interface DMDisk : NSObject 21 + 22 + @end
+22
src/DiskManagement/include/DiskManagement/DMEraseDisk.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 + @interface DMEraseDisk : NSObject 21 + 22 + @end
+22
src/DiskManagement/include/DiskManagement/DMEraseDiskPrivVars.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 + @interface DMEraseDiskPrivVars : NSObject 21 + 22 + @end
+22
src/DiskManagement/include/DiskManagement/DMFilesystem.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 + @interface DMFilesystem : NSObject 21 + 22 + @end
+22
src/DiskManagement/include/DiskManagement/DMFilesystemPrivVars.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 + @interface DMFilesystemPrivVars : NSObject 21 + 22 + @end
+22
src/DiskManagement/include/DiskManagement/DMManager.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 + @interface DMManager : NSObject 21 + 22 + @end
+22
src/DiskManagement/include/DiskManagement/DMManagerPrivVars.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 + @interface DMManagerPrivVars : NSObject 21 + 22 + @end
+22
src/DiskManagement/include/DiskManagement/DMPartitionDisk.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 + @interface DMPartitionDisk : NSObject 21 + 22 + @end
+22
src/DiskManagement/include/DiskManagement/DMPartitionDiskPrivVars.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 + @interface DMPartitionDiskPrivVars : NSObject 21 + 22 + @end
+22
src/DiskManagement/include/DiskManagement/DMRepairDisk.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 + @interface DMRepairDisk : NSObject 21 + 22 + @end
+22
src/DiskManagement/include/DiskManagement/DMRepairDiskPrivVars.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 + @interface DMRepairDiskPrivVars : NSObject 21 + 22 + @end
+22
src/DiskManagement/include/DiskManagement/DMUDSWrapper.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 + @interface DMUDSWrapper : NSObject 21 + 22 + @end
+44
src/DiskManagement/include/DiskManagement/DiskManagement.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 + void* DMLocalizedUserErrorString(void); 21 + void* DMUnlocalizedTechnicalErrorString(void); 22 + 23 + #import <Foundation/Foundation.h> 24 + #import <DiskManagement/_DMListDA.h> 25 + #import <DiskManagement/_DMClaimDA.h> 26 + #import <DiskManagement/_DMWaitIdleDA.h> 27 + #import <DiskManagement/DMUDSWrapper.h> 28 + #import <DiskManagement/DMFilesystemPrivVars.h> 29 + #import <DiskManagement/DMFilesystem.h> 30 + #import <DiskManagement/DMManagerPrivVars.h> 31 + #import <DiskManagement/DMManager.h> 32 + #import <DiskManagement/DMPartitionDiskPrivVars.h> 33 + #import <DiskManagement/DMPartitionDisk.h> 34 + #import <DiskManagement/DMEraseDiskPrivVars.h> 35 + #import <DiskManagement/DMEraseDisk.h> 36 + #import <DiskManagement/DMRepairDiskPrivVars.h> 37 + #import <DiskManagement/DMRepairDisk.h> 38 + #import <DiskManagement/DMAPFSPrivVars.h> 39 + #import <DiskManagement/DMAPFS.h> 40 + #import <DiskManagement/DMCoreStoragePrivVars.h> 41 + #import <DiskManagement/DMCoreStorage.h> 42 + #import <DiskManagement/DMAppleRAIDPrivVars.h> 43 + #import <DiskManagement/DMAppleRAID.h> 44 + #import <DiskManagement/DMDisk.h>
+22
src/DiskManagement/include/DiskManagement/_DMClaimDA.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 + @interface _DMClaimDA : NSObject 21 + 22 + @end
+22
src/DiskManagement/include/DiskManagement/_DMListDA.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 + @interface _DMListDA : NSObject 21 + 22 + @end
+22
src/DiskManagement/include/DiskManagement/_DMWaitIdleDA.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 + @interface _DMWaitIdleDA : NSObject 21 + 22 + @end
+32
src/DiskManagement/src/DMAPFS.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 <DiskManagement/DiskManagement.h> 21 + 22 + @implementation DMAPFS 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/DiskManagement/src/DMAPFSPrivVars.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 <DiskManagement/DiskManagement.h> 21 + 22 + @implementation DMAPFSPrivVars 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/DiskManagement/src/DMAppleRAID.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 <DiskManagement/DiskManagement.h> 21 + 22 + @implementation DMAppleRAID 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/DiskManagement/src/DMAppleRAIDPrivVars.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 <DiskManagement/DiskManagement.h> 21 + 22 + @implementation DMAppleRAIDPrivVars 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/DiskManagement/src/DMCoreStorage.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 <DiskManagement/DiskManagement.h> 21 + 22 + @implementation DMCoreStorage 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/DiskManagement/src/DMCoreStoragePrivVars.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 <DiskManagement/DiskManagement.h> 21 + 22 + @implementation DMCoreStoragePrivVars 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/DiskManagement/src/DMDisk.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 <DiskManagement/DiskManagement.h> 21 + 22 + @implementation DMDisk 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/DiskManagement/src/DMEraseDisk.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 <DiskManagement/DiskManagement.h> 21 + 22 + @implementation DMEraseDisk 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/DiskManagement/src/DMEraseDiskPrivVars.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 <DiskManagement/DiskManagement.h> 21 + 22 + @implementation DMEraseDiskPrivVars 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/DiskManagement/src/DMFilesystem.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 <DiskManagement/DiskManagement.h> 21 + 22 + @implementation DMFilesystem 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/DiskManagement/src/DMFilesystemPrivVars.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 <DiskManagement/DiskManagement.h> 21 + 22 + @implementation DMFilesystemPrivVars 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/DiskManagement/src/DMManager.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 <DiskManagement/DiskManagement.h> 21 + 22 + @implementation DMManager 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/DiskManagement/src/DMManagerPrivVars.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 <DiskManagement/DiskManagement.h> 21 + 22 + @implementation DMManagerPrivVars 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/DiskManagement/src/DMPartitionDisk.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 <DiskManagement/DiskManagement.h> 21 + 22 + @implementation DMPartitionDisk 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/DiskManagement/src/DMPartitionDiskPrivVars.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 <DiskManagement/DiskManagement.h> 21 + 22 + @implementation DMPartitionDiskPrivVars 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/DiskManagement/src/DMRepairDisk.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 <DiskManagement/DiskManagement.h> 21 + 22 + @implementation DMRepairDisk 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/DiskManagement/src/DMRepairDiskPrivVars.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 <DiskManagement/DiskManagement.h> 21 + 22 + @implementation DMRepairDiskPrivVars 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/DiskManagement/src/DMUDSWrapper.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 <DiskManagement/DiskManagement.h> 21 + 22 + @implementation DMUDSWrapper 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/DiskManagement/src/_DMClaimDA.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 <DiskManagement/DiskManagement.h> 21 + 22 + @implementation _DMClaimDA 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/DiskManagement/src/_DMListDA.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 <DiskManagement/DiskManagement.h> 21 + 22 + @implementation _DMListDA 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/DiskManagement/src/_DMWaitIdleDA.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 <DiskManagement/DiskManagement.h> 21 + 22 + @implementation _DMWaitIdleDA 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+27
src/DiskManagement/src/functions.c
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 <stdlib.h> 22 + static int verbose = 0; 23 + __attribute__((constructor)) static void initme(void) { 24 + verbose = getenv("STUB_VERBOSE") != NULL; 25 + } 26 + void* DMLocalizedUserErrorString(void) { if (verbose) puts("STUB: DMLocalizedUserErrorString called"); return NULL; } 27 + void* DMUnlocalizedTechnicalErrorString(void) { if (verbose) puts("STUB: DMUnlocalizedTechnicalErrorString called"); return NULL; }
+23
src/NetworkStatistics/CMakeLists.txt
··· 1 + project(NetworkStatistics) 2 + 3 + set(DYLIB_COMPAT_VERSION "1.0.0") 4 + set(DYLIB_CURRENT_VERSION "1.0.0") 5 + 6 + file(GLOB NW_C src/*.c) 7 + file(GLOB NW_OBJC src/*.m) 8 + 9 + add_framework(NetworkStatistics 10 + FAT 11 + CURRENT_VERSION 12 + PRIVATE 13 + VERSION "A" 14 + 15 + SOURCES 16 + ${NW_C} 17 + ${NW_OBJC} 18 + 19 + DEPENDENCIES 20 + system 21 + objc 22 + Foundation 23 + )
+22
src/NetworkStatistics/include/NetworkStatistics/NWRouteSnapshot.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 + @interface NWRouteSnapshot : NWSnapshot 21 + 22 + @end
+22
src/NetworkStatistics/include/NetworkStatistics/NWRouteSnapshotter.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 + @interface NWRouteSnapshotter : NWSnapshotter 21 + 22 + @end
+22
src/NetworkStatistics/include/NetworkStatistics/NWSnapshot.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 + @interface NWSnapshot : NSObject 21 + 22 + @end
+22
src/NetworkStatistics/include/NetworkStatistics/NWSnapshotSource.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 + @interface NWSnapshotSource : NSObject 21 + 22 + @end
+22
src/NetworkStatistics/include/NetworkStatistics/NWSnapshotter.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 + @interface NWSnapshotter : NSObject 21 + 22 + @end
+22
src/NetworkStatistics/include/NetworkStatistics/NWStatisticsDelegateBlockWrapper.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 + @interface NWStatisticsDelegateBlockWrapper : NSObject 21 + 22 + @end
+24
src/NetworkStatistics/include/NetworkStatistics/NWStatisticsInterfaceSource.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 <NetworkStatistics/NWStatisticsSource.h> 21 + 22 + @interface NWStatisticsInterfaceSource : NWStatisticsSource 23 + 24 + @end
+22
src/NetworkStatistics/include/NetworkStatistics/NWStatisticsManager.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 + @interface NWStatisticsManager : NSObject 21 + 22 + @end
+22
src/NetworkStatistics/include/NetworkStatistics/NWStatisticsRouteSource.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 + @interface NWStatisticsRouteSource : NWStatisticsSource 21 + 22 + @end
+22
src/NetworkStatistics/include/NetworkStatistics/NWStatisticsSource.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 + @interface NWStatisticsSource : NSObject 21 + 22 + @end
+22
src/NetworkStatistics/include/NetworkStatistics/NWStatisticsTCPSource.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 + @interface NWStatisticsTCPSource : NWStatisticsSource 21 + 22 + @end
+22
src/NetworkStatistics/include/NetworkStatistics/NWStatisticsUDPSource.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 + @interface NWStatisticsUDPSource : NWStatisticsSource 21 + 22 + @end
+69
src/NetworkStatistics/include/NetworkStatistics/NetworkStatistics.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 + void* NStatManagerAddAllRoutes(void); 21 + void* NStatManagerAddAllRoutesWithFilter(void); 22 + void* NStatManagerAddAllTCP(void); 23 + void* NStatManagerAddAllTCPWithFilter(void); 24 + void* NStatManagerAddAllTCPWithOptions(void); 25 + void* NStatManagerAddAllUDP(void); 26 + void* NStatManagerAddAllUDPWithFilter(void); 27 + void* NStatManagerAddAllUDPWithOptions(void); 28 + void* NStatManagerCreate(void); 29 + void* NStatManagerCreateInterfaceSource(void); 30 + void* NStatManagerCreateRouteSource(void); 31 + void* NStatManagerCreateSysinfoSource(void); 32 + void* NStatManagerCreateTCPSource(void); 33 + void* NStatManagerCreateUDPSource(void); 34 + void* NStatManagerDestroy(void); 35 + void* NStatManagerQueryAllSources(void); 36 + void* NStatManagerQueryAllSourcesDescriptions(void); 37 + void* NStatManagerQueryAllSourcesUpdate(void); 38 + void* NStatManagerSetFlags(void); 39 + void* NStatManagerSetInterfaceSourceFD(void); 40 + void* NStatManagerSetInterfaceTraceFD(void); 41 + void* NStatManagerSetQueuePriority(void); 42 + void* NStatRouteValuesForIPv4Host(void); 43 + void* NStatRouteValuesForIPv6Host(void); 44 + void* NStatSourceCopyCounts(void); 45 + void* NStatSourceCopyProperties(void); 46 + void* NStatSourceCopyProperty(void); 47 + void* NStatSourceQueryCounts(void); 48 + void* NStatSourceQueryDescription(void); 49 + void* NStatSourceQueryUpdate(void); 50 + void* NStatSourceRemove(void); 51 + void* NStatSourceSetCountsBlock(void); 52 + void* NStatSourceSetDescriptionBlock(void); 53 + void* NStatSourceSetEventsBlock(void); 54 + void* NStatSourceSetFilter(void); 55 + void* NStatSourceSetRemovedBlock(void); 56 + 57 + #import <Foundation/Foundation.h> 58 + #import <NetworkStatistics/NWSnapshotSource.h> 59 + #import <NetworkStatistics/NWSnapshotter.h> 60 + #import <NetworkStatistics/NWRouteSnapshotter.h> 61 + #import <NetworkStatistics/NWSnapshot.h> 62 + #import <NetworkStatistics/NWRouteSnapshot.h> 63 + #import <NetworkStatistics/NWStatisticsManager.h> 64 + #import <NetworkStatistics/NWStatisticsDelegateBlockWrapper.h> 65 + #import <NetworkStatistics/NWStatisticsInterfaceSource.h> 66 + #import <NetworkStatistics/NWStatisticsSource.h> 67 + #import <NetworkStatistics/NWStatisticsTCPSource.h> 68 + #import <NetworkStatistics/NWStatisticsUDPSource.h> 69 + #import <NetworkStatistics/NWStatisticsRouteSource.h>
+32
src/NetworkStatistics/src/NWRouteSnapshot.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 <NetworkStatistics/NetworkStatistics.h> 21 + 22 + @implementation NWRouteSnapshot 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/NetworkStatistics/src/NWRouteSnapshotter.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 <NetworkStatistics/NetworkStatistics.h> 21 + 22 + @implementation NWRouteSnapshotter 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/NetworkStatistics/src/NWSnapshot.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 <NetworkStatistics/NetworkStatistics.h> 21 + 22 + @implementation NWSnapshot 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/NetworkStatistics/src/NWSnapshotSource.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 <NetworkStatistics/NetworkStatistics.h> 21 + 22 + @implementation NWSnapshotSource 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/NetworkStatistics/src/NWSnapshotter.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 <NetworkStatistics/NetworkStatistics.h> 21 + 22 + @implementation NWSnapshotter 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/NetworkStatistics/src/NWStatisticsDelegateBlockWrapper.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 <NetworkStatistics/NetworkStatistics.h> 21 + 22 + @implementation NWStatisticsDelegateBlockWrapper 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/NetworkStatistics/src/NWStatisticsInterfaceSource.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 <NetworkStatistics/NetworkStatistics.h> 21 + 22 + @implementation NWStatisticsInterfaceSource 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/NetworkStatistics/src/NWStatisticsManager.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 <NetworkStatistics/NetworkStatistics.h> 21 + 22 + @implementation NWStatisticsManager 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/NetworkStatistics/src/NWStatisticsRouteSource.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 <NetworkStatistics/NetworkStatistics.h> 21 + 22 + @implementation NWStatisticsRouteSource 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/NetworkStatistics/src/NWStatisticsSource.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 <NetworkStatistics/NetworkStatistics.h> 21 + 22 + @implementation NWStatisticsSource 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/NetworkStatistics/src/NWStatisticsTCPSource.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 <NetworkStatistics/NetworkStatistics.h> 21 + 22 + @implementation NWStatisticsTCPSource 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+32
src/NetworkStatistics/src/NWStatisticsUDPSource.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 <NetworkStatistics/NetworkStatistics.h> 21 + 22 + @implementation NWStatisticsUDPSource 23 + 24 + - (NSMethodSignature *)methodSignatureForSelector:(SEL)aSelector { 25 + return [NSMethodSignature signatureWithObjCTypes: "v@:"]; 26 + } 27 + 28 + - (void)forwardInvocation:(NSInvocation *)anInvocation { 29 + NSLog(@"Stub called: %@ in %@", NSStringFromSelector([anInvocation selector]), [self class]); 30 + } 31 + 32 + @end
+61
src/NetworkStatistics/src/functions.c
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2017 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 <stdlib.h> 22 + static int verbose = 0; 23 + __attribute__((constructor)) static void initme(void) { 24 + verbose = getenv("STUB_VERBOSE") != NULL; 25 + } 26 + void* NStatManagerAddAllRoutes(void) { if (verbose) puts("STUB: NStatManagerAddAllRoutes called"); return NULL; } 27 + void* NStatManagerAddAllRoutesWithFilter(void) { if (verbose) puts("STUB: NStatManagerAddAllRoutesWithFilter called"); return NULL; } 28 + void* NStatManagerAddAllTCP(void) { if (verbose) puts("STUB: NStatManagerAddAllTCP called"); return NULL; } 29 + void* NStatManagerAddAllTCPWithFilter(void) { if (verbose) puts("STUB: NStatManagerAddAllTCPWithFilter called"); return NULL; } 30 + void* NStatManagerAddAllTCPWithOptions(void) { if (verbose) puts("STUB: NStatManagerAddAllTCPWithOptions called"); return NULL; } 31 + void* NStatManagerAddAllUDP(void) { if (verbose) puts("STUB: NStatManagerAddAllUDP called"); return NULL; } 32 + void* NStatManagerAddAllUDPWithFilter(void) { if (verbose) puts("STUB: NStatManagerAddAllUDPWithFilter called"); return NULL; } 33 + void* NStatManagerAddAllUDPWithOptions(void) { if (verbose) puts("STUB: NStatManagerAddAllUDPWithOptions called"); return NULL; } 34 + void* NStatManagerCreate(void) { if (verbose) puts("STUB: NStatManagerCreate called"); return NULL; } 35 + void* NStatManagerCreateInterfaceSource(void) { if (verbose) puts("STUB: NStatManagerCreateInterfaceSource called"); return NULL; } 36 + void* NStatManagerCreateRouteSource(void) { if (verbose) puts("STUB: NStatManagerCreateRouteSource called"); return NULL; } 37 + void* NStatManagerCreateSysinfoSource(void) { if (verbose) puts("STUB: NStatManagerCreateSysinfoSource called"); return NULL; } 38 + void* NStatManagerCreateTCPSource(void) { if (verbose) puts("STUB: NStatManagerCreateTCPSource called"); return NULL; } 39 + void* NStatManagerCreateUDPSource(void) { if (verbose) puts("STUB: NStatManagerCreateUDPSource called"); return NULL; } 40 + void* NStatManagerDestroy(void) { if (verbose) puts("STUB: NStatManagerDestroy called"); return NULL; } 41 + void* NStatManagerQueryAllSources(void) { if (verbose) puts("STUB: NStatManagerQueryAllSources called"); return NULL; } 42 + void* NStatManagerQueryAllSourcesDescriptions(void) { if (verbose) puts("STUB: NStatManagerQueryAllSourcesDescriptions called"); return NULL; } 43 + void* NStatManagerQueryAllSourcesUpdate(void) { if (verbose) puts("STUB: NStatManagerQueryAllSourcesUpdate called"); return NULL; } 44 + void* NStatManagerSetFlags(void) { if (verbose) puts("STUB: NStatManagerSetFlags called"); return NULL; } 45 + void* NStatManagerSetInterfaceSourceFD(void) { if (verbose) puts("STUB: NStatManagerSetInterfaceSourceFD called"); return NULL; } 46 + void* NStatManagerSetInterfaceTraceFD(void) { if (verbose) puts("STUB: NStatManagerSetInterfaceTraceFD called"); return NULL; } 47 + void* NStatManagerSetQueuePriority(void) { if (verbose) puts("STUB: NStatManagerSetQueuePriority called"); return NULL; } 48 + void* NStatRouteValuesForIPv4Host(void) { if (verbose) puts("STUB: NStatRouteValuesForIPv4Host called"); return NULL; } 49 + void* NStatRouteValuesForIPv6Host(void) { if (verbose) puts("STUB: NStatRouteValuesForIPv6Host called"); return NULL; } 50 + void* NStatSourceCopyCounts(void) { if (verbose) puts("STUB: NStatSourceCopyCounts called"); return NULL; } 51 + void* NStatSourceCopyProperties(void) { if (verbose) puts("STUB: NStatSourceCopyProperties called"); return NULL; } 52 + void* NStatSourceCopyProperty(void) { if (verbose) puts("STUB: NStatSourceCopyProperty called"); return NULL; } 53 + void* NStatSourceQueryCounts(void) { if (verbose) puts("STUB: NStatSourceQueryCounts called"); return NULL; } 54 + void* NStatSourceQueryDescription(void) { if (verbose) puts("STUB: NStatSourceQueryDescription called"); return NULL; } 55 + void* NStatSourceQueryUpdate(void) { if (verbose) puts("STUB: NStatSourceQueryUpdate called"); return NULL; } 56 + void* NStatSourceRemove(void) { if (verbose) puts("STUB: NStatSourceRemove called"); return NULL; } 57 + void* NStatSourceSetCountsBlock(void) { if (verbose) puts("STUB: NStatSourceSetCountsBlock called"); return NULL; } 58 + void* NStatSourceSetDescriptionBlock(void) { if (verbose) puts("STUB: NStatSourceSetDescriptionBlock called"); return NULL; } 59 + void* NStatSourceSetEventsBlock(void) { if (verbose) puts("STUB: NStatSourceSetEventsBlock called"); return NULL; } 60 + void* NStatSourceSetFilter(void) { if (verbose) puts("STUB: NStatSourceSetFilter called"); return NULL; } 61 + void* NStatSourceSetRemovedBlock(void) { if (verbose) puts("STUB: NStatSourceSetRemovedBlock called"); return NULL; }
+1 -1
src/ServiceManagement/ServiceManagement.c
··· 1 1 #include <ServiceManagement/ServiceManagement.h> 2 2 3 - #define STUB() (printf("STUB CALLED: %s:%s\n\t\t%s\n", __FILE__, __LINE__, __PRETTY_FUNCTION__)) 3 + #define STUB() (printf("STUB CALLED: %s:%i\n\t\t%s\n", __FILE__, __LINE__, __PRETTY_FUNCTION__)) 4 4 5 5 const CFStringRef kSMDomainSystemLaunchd = CFSTR("kSMDomainSystemLaunchd"); 6 6