this repo has no description
1
fork

Configure Feed

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

Stub ServerInformation framework

+226
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ServerInformation.framework/Headers
··· 1 + Versions/Current/Headers
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ServerInformation.framework/Versions/A/Headers
··· 1 + ../../../../../../../../../../../../src/private-frameworks/ServerInformation/include/ServerInformation
+1
Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ServerInformation.framework/Versions/Current
··· 1 + A
+1
framework-include/ServerInformation
··· 1 + ../Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ServerInformation.framework/Headers
+1
src/private-frameworks/CMakeLists.txt
··· 33 33 add_subdirectory(PlugInKit) 34 34 add_subdirectory(PowerLog) 35 35 add_subdirectory(ProtocolBuffer) 36 + add_subdirectory(ServerInformation) 36 37 add_subdirectory(SkyLight) 37 38 add_subdirectory(Spotlight) 38 39 add_subdirectory(SpotlightDaemon)
+20
src/private-frameworks/ServerInformation/CMakeLists.txt
··· 1 + project(ServerInformation) 2 + 3 + set(DYLIB_COMPAT_VERSION "1.0.0") 4 + set(DYLIB_CURRENT_VERSION "1.0.0") 5 + 6 + add_framework(ServerInformation 7 + FAT 8 + CURRENT_VERSION 9 + PRIVATE 10 + VERSION "A" 11 + 12 + SOURCES 13 + src/ServerInformation.m 14 + src/ServerInformationComputerModelInfo.m 15 + 16 + DEPENDENCIES 17 + system 18 + objc 19 + Foundation 20 + )
+41
src/private-frameworks/ServerInformation/include/ServerInformation/ServerInformation.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2021 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 _ServerInformation_H_ 22 + #define _ServerInformation_H_ 23 + 24 + #if __OBJC__ 25 + #import <ServerInformation/ServerInformationComputerModelInfo.h> 26 + #endif 27 + 28 + void* SICopyLocalizedServerProductName(void); 29 + void* SICopyMinimumServerVersion(void); 30 + void* SICopyServerBuildVersion(void); 31 + void* SICopyServerVersion(void); 32 + void* SIGetServerInstallPathPrefix(void); 33 + void* SIGetServerPerformanceModeEnabled(void); 34 + void* SIIsOSXServerVolume(void); 35 + void* SIIsOSXServerVolumeConfigured(void); 36 + void* SIIsServerHardware(void); 37 + void* SIIsXsanCapable(void); 38 + void* SISetServerPerformanceModeEnabled(void); 39 + void* _SIIsOSXVolumeVersionEqualToOrGreater(void); 40 + 41 + #endif
+24
src/private-frameworks/ServerInformation/include/ServerInformation/ServerInformationComputerModelInfo.h
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2021 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 ServerInformationComputerModelInfo : NSObject 23 + 24 + @end
+102
src/private-frameworks/ServerInformation/src/ServerInformation.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2021 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 <ServerInformation/ServerInformation.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* SICopyLocalizedServerProductName(void) 33 + { 34 + if (verbose) puts("STUB: SICopyLocalizedServerProductName called"); 35 + return NULL; 36 + } 37 + 38 + void* SICopyMinimumServerVersion(void) 39 + { 40 + if (verbose) puts("STUB: SICopyMinimumServerVersion called"); 41 + return NULL; 42 + } 43 + 44 + void* SICopyServerBuildVersion(void) 45 + { 46 + if (verbose) puts("STUB: SICopyServerBuildVersion called"); 47 + return NULL; 48 + } 49 + 50 + void* SICopyServerVersion(void) 51 + { 52 + if (verbose) puts("STUB: SICopyServerVersion called"); 53 + return NULL; 54 + } 55 + 56 + void* SIGetServerInstallPathPrefix(void) 57 + { 58 + if (verbose) puts("STUB: SIGetServerInstallPathPrefix called"); 59 + return NULL; 60 + } 61 + 62 + void* SIGetServerPerformanceModeEnabled(void) 63 + { 64 + if (verbose) puts("STUB: SIGetServerPerformanceModeEnabled called"); 65 + return NULL; 66 + } 67 + 68 + void* SIIsOSXServerVolume(void) 69 + { 70 + if (verbose) puts("STUB: SIIsOSXServerVolume called"); 71 + return NULL; 72 + } 73 + 74 + void* SIIsOSXServerVolumeConfigured(void) 75 + { 76 + if (verbose) puts("STUB: SIIsOSXServerVolumeConfigured called"); 77 + return NULL; 78 + } 79 + 80 + void* SIIsServerHardware(void) 81 + { 82 + if (verbose) puts("STUB: SIIsServerHardware called"); 83 + return NULL; 84 + } 85 + 86 + void* SIIsXsanCapable(void) 87 + { 88 + if (verbose) puts("STUB: SIIsXsanCapable called"); 89 + return NULL; 90 + } 91 + 92 + void* SISetServerPerformanceModeEnabled(void) 93 + { 94 + if (verbose) puts("STUB: SISetServerPerformanceModeEnabled called"); 95 + return NULL; 96 + } 97 + 98 + void* _SIIsOSXVolumeVersionEqualToOrGreater(void) 99 + { 100 + if (verbose) puts("STUB: _SIIsOSXVolumeVersionEqualToOrGreater called"); 101 + return NULL; 102 + }
+34
src/private-frameworks/ServerInformation/src/ServerInformationComputerModelInfo.m
··· 1 + /* 2 + This file is part of Darling. 3 + 4 + Copyright (C) 2021 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 <ServerInformation/ServerInformationComputerModelInfo.h> 21 + 22 + @implementation ServerInformationComputerModelInfo 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