this repo has no description
1
fork

Configure Feed

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

[MobileGestalt] Fix MGCopyAnswer Arguments. Add kMGQReleaseType.

Thomas A bdd06ac9 3ebbde4a

+10 -5
+2 -2
src/libMobileGestalt/CMakeLists.txt
··· 5 5 set(DYLIB_CURRENT_VERSION "1.0.0") 6 6 7 7 add_darling_library(MobileGestalt SHARED 8 - src/MobileGestalt.c 8 + src/MobileGestalt.m 9 9 ) 10 10 make_fat(MobileGestalt) 11 - target_link_libraries(MobileGestalt system) 11 + target_link_libraries(MobileGestalt system objc Foundation) 12 12 install(TARGETS MobileGestalt DESTINATION libexec/darling/usr/lib)
+6 -1
src/libMobileGestalt/include/MobileGestalt/MobileGestalt.h
··· 21 21 #ifndef _MobileGestalt_H_ 22 22 #define _MobileGestalt_H_ 23 23 24 + #include <CoreFoundation/CoreFoundation.h> 25 + 26 + // I don't know what the actual keys values are... 27 + CFStringRef kMGQReleaseType = CFSTR("kMGQReleaseType"); 28 + 24 29 void* MGCancelNotifications(void); 25 - void* MGCopyAnswer(void); 30 + CFStringRef MGCopyAnswer(CFStringRef key, void* unknown); 26 31 void* MGCopyAnswerWithError(void); 27 32 void* MGCopyMultipleAnswers(void); 28 33 void* MGGetBoolAnswer(void);
+2 -2
src/libMobileGestalt/src/MobileGestalt.c src/libMobileGestalt/src/MobileGestalt.m
··· 35 35 return NULL; 36 36 } 37 37 38 - void* MGCopyAnswer(void) 38 + CFStringRef MGCopyAnswer(CFStringRef key, void* unknown) 39 39 { 40 40 if (verbose) puts("STUB: MGCopyAnswer called"); 41 - return NULL; 41 + return nil; 42 42 } 43 43 44 44 void* MGCopyAnswerWithError(void)