this repo has no description
1
fork

Configure Feed

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

Add Missing Declarations & Header Includes. FIx Stubs.

Thomas A 1254079d 894d62c9

+57 -6
+3
src/frameworks/CoreVideo/include/CoreVideo/CVPixelBuffer.h
··· 3 3 4 4 #include <sys/cdefs.h> 5 5 #include <CoreVideo/CVImageBuffer.h> 6 + #include <CoreVideo/CVReturn.h> 6 7 7 8 __BEGIN_DECLS 8 9 ··· 78 79 extern const CFStringRef kCVPixelBufferMetalCompatibilityKey; 79 80 80 81 typedef CVImageBufferRef CVPixelBufferRef; 82 + typedef void (*CVPixelBufferReleaseBytesCallback)(void *releaseRefCon, const void *baseAddress); 81 83 82 84 // TODO: This header file is incomplete 85 + CVReturn CVPixelBufferCreateWithBytes(CFAllocatorRef allocator, size_t width, size_t height, OSType pixelFormatType, void *baseAddress, size_t bytesPerRow, CVPixelBufferReleaseBytesCallback releaseCallback, void *releaseRefCon, CFDictionaryRef pixelBufferAttributes, CVPixelBufferRef _Nullable *pixelBufferOut); 83 86 84 87 __END_DECLS 85 88
+8
src/frameworks/LocalAuthentication/include/LocalAuthentication/LAPrivateDefines.h
··· 3 3 4 4 #include <LocalAuthentication/LAPublicDefines.h> 5 5 #include <CoreFoundation/CFBase.h> 6 + #include <CoreFoundation/CFDictionary.h> 7 + #include <CoreFoundation/CFError.h> 8 + 9 + #include <sys/types.h> 10 + #include <stdbool.h> 6 11 7 12 CF_EXTERN_C_BEGIN 8 13 ··· 18 23 19 24 static CFIndex kLAOptionNotInteractive = 1; 20 25 static CFIndex kLAOptionCallerName = 2; 26 + 27 + bool LAEvaluatePolicy(CFTypeRef context, int policy, CFMutableDictionaryRef options, CFErrorRef *error); 28 + bool LAVerifySEP(uid_t pw_uid, CFErrorRef *error); 21 29 22 30 CF_EXTERN_C_END 23 31
+5 -4
src/frameworks/LocalAuthentication/src/stubs.c
··· 1 1 #include <stddef.h> 2 + #include <LocalAuthentication/LAPrivateDefines.h> 2 3 3 - void* LAEvaluatePolicy() { 4 - return NULL; 4 + bool LAEvaluatePolicy(CFTypeRef context, int policy, CFMutableDictionaryRef options, CFErrorRef *error) { 5 + return false; 5 6 }; 6 7 7 - void* LAVerifySEP() { 8 - return NULL; 8 + bool LAVerifySEP(uid_t pw_uid, CFErrorRef *error) { 9 + return false; 9 10 };
+3
src/launchd/liblaunch/launch.h
··· 184 184 LAUNCH_DATA_MACHPORT, 185 185 } launch_data_type_t; 186 186 187 + int 188 + launch_activate_socket(const char* key, int** fds, size_t* count); 189 + 187 190 __ld_allocator 188 191 launch_data_t 189 192 launch_data_alloc(launch_data_type_t);
+2
src/libDiagnosticMessagesClient/src/functions.c
··· 19 19 20 20 21 21 #include <stdlib.h> 22 + #include <stdio.h> 23 + 22 24 static int verbose = 0; 23 25 __attribute__((constructor)) static void initme(void) { 24 26 verbose = getenv("STUB_VERBOSE") != NULL;
+6
src/libacm/include/ACMLib.h
··· 7 7 // CF type 8 8 typedef void* ACMContextRef; 9 9 10 + typedef int ACMStatus; 11 + typedef char* ACMPassphrasePurpose; 12 + typedef char* ACMScope; 13 + 10 14 ACMContextRef ACMContextCreateWithExternalForm(const void *externalForm, size_t dataLength); 15 + ACMStatus ACMContextDelete(ACMContextRef context, bool destroyContext); 16 + ACMStatus ACMContextRemovePassphraseCredentialsByPurposeAndScope(const ACMContextRef context, ACMPassphrasePurpose purpose, ACMScope scope); 11 17 12 18 #endif // _ACMLIB_H_
+16
src/libaks/include/libaks.h
··· 34 34 return kIOReturnSuccess; 35 35 } 36 36 37 + extern kern_return_t aks_get_bag_uuid(keybag_handle_t handle, uuid_t uuid); 38 + 37 39 extern kern_return_t aks_assert_hold(keybag_handle_t keybagHandle, AKSAssertionType_t lockAssertType, uint64_t timeout); 38 40 39 41 extern kern_return_t aks_assert_drop(keybag_handle_t keybagHandle, AKSAssertionType_t lockAssertType); ··· 76 78 kern_return_t aks_unload_bag(keybag_handle_t handle); 77 79 kern_return_t aks_unlock_bag(keybag_handle_t handle, const void* passcode, int length); 78 80 kern_return_t aks_load_bag(const void* data, int length, keybag_handle_t* handle); 81 + kern_return_t aks_lock_bag(keybag_handle_t handle); 79 82 80 83 typedef enum _aks_key_type_enum { 81 84 key_class_none, ··· 108 111 109 112 const uint8_t * aks_ref_key_get_blob(aks_ref_key_t refkey, size_t *out_blob_len); 110 113 const uint8_t * aks_ref_key_get_external_data(aks_ref_key_t refkey, size_t *out_external_data_len); 114 + 115 + int aks_ref_key_create(keybag_handle_t handle, keyclass_t key_class, aks_key_type_t type, const uint8_t *params, size_t params_len, aks_ref_key_t *ot); 116 + int aks_ref_key_create_with_blob(keybag_handle_t keybag, const uint8_t *ref_key_blob, size_t ref_key_blob_len, aks_ref_key_t* handle); 117 + int aks_ref_key_encrypt(aks_ref_key_t handle, const uint8_t *der_params, size_t der_params_len, const void *data, size_t data_len, void **out_der, size_t *out_der_len); 118 + int aks_ref_key_decrypt(aks_ref_key_t handle, const uint8_t *der_params, size_t der_params_len, const void *data, size_t data_len, void **out_der, size_t *out_der_len); 119 + 120 + int aks_ref_key_free(aks_ref_key_t* refkey); 121 + int aks_ref_key_delete(aks_ref_key_t handle, const uint8_t *der_params, size_t der_params_len); 122 + 123 + kern_return_t aks_wrap_key(const uint8_t *source, uint32_t textLength, keyclass_t keyclass, keybag_handle_t keybag, uint8_t *data, int *dest_len, keyclass_t *actual_class); 124 + kern_return_t aks_unwrap_key(const uint8_t *source, uint32_t textLength, keyclass_t keyclass, keybag_handle_t keybag, uint8_t *data, int *dest_len); 125 + 126 + int aks_operation_optional_params(const uint8_t * access_groups, size_t access_groups_len, const uint8_t * external_data, size_t external_data_len, const void * acm_handle, int acm_handle_len, void ** out_der, size_t * out_der_len); 111 127 112 128 #ifdef __cplusplus 113 129 }
+2
src/libaks/libaks.c
··· 1 + #include <uuid/uuid.h> 2 + 1 3 #include "libaks.h" 2 4 #include "libaks_smartcard.h" 3 5
+1
src/libsysmon/src/sysmon.c
··· 18 18 */ 19 19 20 20 21 + #include <stdio.h> 21 22 #include <stdlib.h> 22 23 static int verbose = 0; 23 24 __attribute__((constructor)) static void initme(void) {
+8
src/private-frameworks/ProtocolBuffer/include/ProtocolBuffer/PBDataReader.h
··· 44 44 return FALSE; 45 45 }; 46 46 47 + static inline uint32_t PBReaderReadUint32(PBDataReader *reader) { 48 + return 0; 49 + } 50 + 51 + static inline int32_t PBReaderReadInt32(PBDataReader* reader) { 52 + return 0; 53 + } 54 + 47 55 static inline uint64_t PBReaderReadUint64(PBDataReader* reader) { 48 56 return 0; 49 57 };
+1 -1
src/private-frameworks/kperf/src/kperf.c
··· 17 17 along with Darling. If not, see <http://www.gnu.org/licenses/>. 18 18 */ 19 19 20 - 20 + #include <stdio.h> 21 21 #include <stdlib.h> 22 22 static int verbose = 0; 23 23 __attribute__((constructor)) static void initme(void) {
+1 -1
src/startup/mldr/elfcalls/elfcalls.h
··· 6 6 #include <stddef.h> 7 7 8 8 struct darling_thread_create_callbacks { 9 - int (*thread_self_trap)(void); 9 + unsigned int (*thread_self_trap)(void); 10 10 void (*thread_set_tsd_base)(void*, int); 11 11 void (*rpc_guard)(int); 12 12 void (*rpc_unguard)(int);
+1
src/xtrace/mig_trace.c
··· 4 4 #include <dirent.h> 5 5 #include <dlfcn.h> 6 6 #include <stdbool.h> 7 + #include <stdlib.h> 7 8 8 9 #include <mach/mach.h> 9 10