this repo has no description
1
fork

Configure Feed

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

[CFOpenDirectory] Remove Stub Declarations That Already Exist In CFOpenDirectoryPriv.h. Fix Stubs.

Thomas A fd9f73dc 1254079d

+149 -241
+4
src/frameworks/OpenDirectory/CFOpenDirectory/include/CFOpenDirectory/CFOpenDirectoryPriv.h
··· 184 184 CF_EXPORT 185 185 bool ODRecordContainsMemberRefresh(ODRecordRef inGroupRef, ODRecordRef inMemberRef, CFErrorRef *outError) __OSX_AVAILABLE_STARTING(__MAC_10_6, __IPHONE_NA); 186 186 187 + #ifdef DARLING 188 + bool ODRecordSetNodeCredentialsWithBootstrapToken(ODRecordRef cfRecord, CFStringRef token, CFErrorRef *error); 189 + #endif 190 + 187 191 __END_DECLS 188 192 189 193 #endif
-94
src/frameworks/OpenDirectory/CFOpenDirectory/include/generated-stubs.h
··· 21 21 #ifndef _CFOpenDirectory_H_ 22 22 #define _CFOpenDirectory_H_ 23 23 24 - void* ODContextGetTypeID(void); 25 - void* ODConvertToLegacyErrorCode(void); 26 - void* ODNodeAddAccountPolicy(void); 27 - void* ODNodeCopyAccountPolicies(void); 28 - void* ODNodeCopyCredentials(void); 29 - void* ODNodeCopyDetails(void); 30 - void* ODNodeCopyPolicies(void); 31 - void* ODNodeCopyRecord(void); 32 - void* ODNodeCopyRecordAuthenticationData(void); 33 24 void* ODNodeCopySession(void); 34 - void* ODNodeCopySubnodeNames(void); 35 - void* ODNodeCopySupportedAttributes(void); 36 - void* ODNodeCopySupportedPolicies(void); 37 - void* ODNodeCopySupportedRecordTypes(void); 38 - void* ODNodeCopyUnreachableSubnodeNames(void); 39 - void* ODNodeCreateCopy(void); 40 - void* ODNodeCreateRecord(void); 41 - void* ODNodeCreateWithDSRef(void); 42 - void* ODNodeCreateWithName(void); 43 25 void* ODNodeCreateWithNameAndOptions(void); 44 - void* ODNodeCreateWithNodeType(void); 45 - void* ODNodeCustomCall(void); 46 - void* ODNodeCustomFunction(void); 47 - void* ODNodeGetDSRef(void); 48 - void* ODNodeGetName(void); 49 26 void* ODNodeGetSecureTokenRecoveryType(void); 50 - void* ODNodeGetTypeID(void); 51 - void* ODNodePasswordContentCheck(void); 52 - void* ODNodeRemoveAccountPolicy(void); 53 - void* ODNodeRemovePolicy(void); 54 27 void* ODNodeReplaceUserRecord(void); 55 - void* ODNodeSetAccountPolicies(void); 56 - void* ODNodeSetCredentials(void); 57 - void* ODNodeSetCredentialsExtended(void); 58 - void* ODNodeSetCredentialsUsingKerberosCache(void); 59 28 void* ODNodeSetCredentialsWithBootstrapToken(void); 60 - void* ODNodeSetPolicies(void); 61 - void* ODNodeSetPolicy(void); 62 29 void* ODNodeSetSecureTokenRecoveryCloud(void); 63 30 void* ODNodeSetSecureTokenRecoveryCloudUsingIdentity(void); 64 31 void* ODNodeSetSecureTokenRecoveryMasterPassword(void); 65 32 void* ODNodeSetSecureTokenRecoveryPersonal(void); 66 33 void* ODNodeSetSecureTokenRecoveryPersonalUsingKey(void); 67 - void* ODNodeVerifyCredentialsExtended(void); 68 - void* ODQueryCopyResults(void); 69 - void* ODQueryCreateWithNode(void); 70 - void* ODQueryCreateWithNodeType(void); 71 - void* ODQueryGetTypeID(void); 72 - void* ODQueryScheduleWithRunLoop(void); 73 - void* ODQuerySetCallback(void); 74 - void* ODQuerySetDispatchQueue(void); 75 - void* ODQuerySynchronize(void); 76 - void* ODQueryUnscheduleFromRunLoop(void); 77 - void* ODRecordAddAccountPolicy(void); 78 - void* ODRecordAddMember(void); 79 - void* ODRecordAddValue(void); 80 - void* ODRecordAuthenticationAllowed(void); 81 - void* ODRecordChangePassword(void); 82 - void* ODRecordContainsMember(void); 83 - void* ODRecordContainsMemberRefresh(void); 84 - void* ODRecordCopyAccountPolicies(void); 85 - void* ODRecordCopyDetails(void); 86 - void* ODRecordCopyEffectivePolicies(void); 87 34 void* ODRecordCopyPasswordContentSummary(void); 88 - void* ODRecordCopyPasswordPolicy(void); 89 - void* ODRecordCopyPolicies(void); 90 - void* ODRecordCopySupportedPolicies(void); 91 - void* ODRecordCopyValues(void); 92 - void* ODRecordDelete(void); 93 35 void* ODRecordEnumerateMembers(void); 94 36 void* ODRecordEnumerateMembership(void); 95 - void* ODRecordGetRecordName(void); 96 - void* ODRecordGetRecordType(void); 97 - void* ODRecordGetTypeID(void); 98 - void* ODRecordPasswordChangeAllowed(void); 99 - void* ODRecordRemoveAccountPolicy(void); 100 - void* ODRecordRemoveMember(void); 101 - void* ODRecordRemovePolicy(void); 102 - void* ODRecordRemoveValue(void); 103 - void* ODRecordSecondsUntilAuthenticationsExpire(void); 104 - void* ODRecordSecondsUntilPasswordExpires(void); 105 - void* ODRecordSetAccountPolicies(void); 106 - void* ODRecordSetNodeCredentials(void); 107 - void* ODRecordSetNodeCredentialsExtended(void); 108 - void* ODRecordSetNodeCredentialsUsingKerberosCache(void); 109 - void* ODRecordSetNodeCredentialsWithBootstrapToken(void); 110 - void* ODRecordSetPolicies(void); 111 - void* ODRecordSetPolicy(void); 112 - void* ODRecordSetValue(void); 113 - void* ODRecordSynchronize(void); 114 - void* ODRecordVerifyPassword(void); 115 - void* ODRecordVerifyPasswordExtended(void); 116 - void* ODRecordWillAuthenticationsExpire(void); 117 - void* ODRecordWillPasswordExpire(void); 118 - void* ODSessionCopyNodeNames(void); 119 37 void* ODSessionCopySessionKeySupport(void); 120 - void* ODSessionCreate(void); 121 - void* ODSessionCreateWithDSRef(void); 122 - void* ODSessionGetDSRef(void); 123 - void* ODSessionGetTypeID(void); 124 38 void* ODSessionIsProxy(void); 125 - void* ODSessionNodeNameIsLocal(void); 126 39 void* ODSessionProxyAuthorizationForm(void); 127 - void* ODTriggerCancel(void); 128 - void* ODTriggerCreateForNodes(void); 129 - void* ODTriggerCreateForRecordAttributes(void); 130 - void* ODTriggerCreateForRecords(void); 131 - void* ODTriggerCreateForSearch(void); 132 - void* ODTriggerGetTypeID(void); 133 40 void* _NodeGetNodeTypeName(void); 134 41 void* _ODInitialize(void); 135 42 void* _ODNodeCreate(void); ··· 140 47 void* _ODQueryInit(void); 141 48 void* _ODQuerySetDelegate(void); 142 49 void* _ODQuerySetOperationQueue(void); 143 - void* _ODSessionCreate(void); 144 50 void* _ODSessionGetShared(void); 145 51 void* _ODSessionInit(void); 146 52
+145 -147
src/frameworks/OpenDirectory/CFOpenDirectory/src/CFOpenDirectory.c
··· 19 19 20 20 21 21 #include "../include/generated-stubs.h" 22 + #include <CFOpenDirectory/CFOpenDirectoryPriv.h> 22 23 #include <stdlib.h> 23 24 #include <stdio.h> 24 25 ··· 29 30 verbose = getenv("STUB_VERBOSE") != NULL; 30 31 } 31 32 32 - void* ODContextGetTypeID(void) 33 + CFTypeID ODContextGetTypeID(void) 33 34 { 34 35 if (verbose) puts("STUB: ODContextGetTypeID called"); 35 - return NULL; 36 + return 0; 36 37 } 37 38 38 - void* ODConvertToLegacyErrorCode(void) 39 + tDirStatus ODConvertToLegacyErrorCode(CFIndex code) 39 40 { 40 41 if (verbose) puts("STUB: ODConvertToLegacyErrorCode called"); 41 - return NULL; 42 + return eNotYetImplemented; 42 43 } 43 44 44 - void* ODNodeAddAccountPolicy(void) 45 + bool ODNodeAddAccountPolicy(ODNodeRef node, CFDictionaryRef policy, ODPolicyCategoryType category, CFErrorRef *error) 45 46 { 46 47 if (verbose) puts("STUB: ODNodeAddAccountPolicy called"); 47 - return NULL; 48 + return false; 48 49 } 49 50 50 - void* ODNodeCopyAccountPolicies(void) 51 + CFDictionaryRef ODNodeCopyAccountPolicies(ODNodeRef node, CFErrorRef *error) 51 52 { 52 53 if (verbose) puts("STUB: ODNodeCopyAccountPolicies called"); 53 54 return NULL; 54 55 } 55 56 56 - void* ODNodeCopyCredentials(void) 57 + bool ODNodeCopyCredentials(ODNodeRef node, ODRecordType *recordType, CFStringRef *username, CFErrorRef *error) 57 58 { 58 59 if (verbose) puts("STUB: ODNodeCopyCredentials called"); 59 - return NULL; 60 + return false; 60 61 } 61 62 62 - void* ODNodeCopyDetails(void) 63 + CFDictionaryRef ODNodeCopyDetails(ODNodeRef node, CFArrayRef keys, CFErrorRef *error) 63 64 { 64 65 if (verbose) puts("STUB: ODNodeCopyDetails called"); 65 66 return NULL; 66 67 } 67 68 68 - void* ODNodeCopyPolicies(void) 69 + CFDictionaryRef ODNodeCopyPolicies(ODNodeRef node, CFErrorRef *error) 69 70 { 70 71 if (verbose) puts("STUB: ODNodeCopyPolicies called"); 71 72 return NULL; 72 73 } 73 74 74 - void* ODNodeCopyRecord(void) 75 + ODRecordRef ODNodeCopyRecord(ODNodeRef node, ODRecordType recordType, CFStringRef recordName, CFTypeRef attributes, CFErrorRef *error) 75 76 { 76 77 if (verbose) puts("STUB: ODNodeCopyRecord called"); 77 78 return NULL; 78 79 } 79 80 80 - void* ODNodeCopyRecordAuthenticationData(void) 81 + ODRecordRef ODNodeCopyRecordAuthenticationData(ODNodeRef node, ODRecordRef record, CFErrorRef *error) 81 82 { 82 83 if (verbose) puts("STUB: ODNodeCopyRecordAuthenticationData called"); 83 84 return NULL; ··· 89 90 return NULL; 90 91 } 91 92 92 - void* ODNodeCopySubnodeNames(void) 93 + CFArrayRef ODNodeCopySubnodeNames(ODNodeRef node, CFErrorRef *error) 93 94 { 94 95 if (verbose) puts("STUB: ODNodeCopySubnodeNames called"); 95 96 return NULL; 96 97 } 97 98 98 - void* ODNodeCopySupportedAttributes(void) 99 + CFArrayRef ODNodeCopySupportedAttributes(ODNodeRef node, ODRecordType recordType, CFErrorRef *error) 99 100 { 100 101 if (verbose) puts("STUB: ODNodeCopySupportedAttributes called"); 101 102 return NULL; 102 103 } 103 104 104 - void* ODNodeCopySupportedPolicies(void) 105 + CFDictionaryRef ODNodeCopySupportedPolicies(ODNodeRef node, CFErrorRef *error) 105 106 { 106 107 if (verbose) puts("STUB: ODNodeCopySupportedPolicies called"); 107 108 return NULL; 108 109 } 109 110 110 - void* ODNodeCopySupportedRecordTypes(void) 111 + CFArrayRef ODNodeCopySupportedRecordTypes(ODNodeRef node, CFErrorRef *error) 111 112 { 112 113 if (verbose) puts("STUB: ODNodeCopySupportedRecordTypes called"); 113 114 return NULL; 114 115 } 115 116 116 - void* ODNodeCopyUnreachableSubnodeNames(void) 117 + CFArrayRef ODNodeCopyUnreachableSubnodeNames(ODNodeRef node, CFErrorRef *error) 117 118 { 118 119 if (verbose) puts("STUB: ODNodeCopyUnreachableSubnodeNames called"); 119 120 return NULL; 120 121 } 121 122 122 - void* ODNodeCreateCopy(void) 123 + ODNodeRef ODNodeCreateCopy(CFAllocatorRef allocator, ODNodeRef node, CFErrorRef *error) 123 124 { 124 125 if (verbose) puts("STUB: ODNodeCreateCopy called"); 125 126 return NULL; 126 127 } 127 128 128 - void* ODNodeCreateRecord(void) 129 + ODRecordRef ODNodeCreateRecord(ODNodeRef node, ODRecordType recordType, CFStringRef recordName, CFDictionaryRef attributeDict, CFErrorRef *error) 129 130 { 130 131 if (verbose) puts("STUB: ODNodeCreateRecord called"); 131 132 return NULL; 132 133 } 133 134 134 - void* ODNodeCreateWithDSRef(void) 135 + ODNodeRef ODNodeCreateWithDSRef(CFAllocatorRef inAllocator, tDirReference inDirRef, tDirNodeReference inNodeRef, bool inCloseOnRelease) 135 136 { 136 137 if (verbose) puts("STUB: ODNodeCreateWithDSRef called"); 137 138 return NULL; 138 139 } 139 140 140 - void* ODNodeCreateWithName(void) 141 + ODNodeRef ODNodeCreateWithName(CFAllocatorRef allocator, ODSessionRef session, CFStringRef nodeName, CFErrorRef *error) 141 142 { 142 143 if (verbose) puts("STUB: ODNodeCreateWithName called"); 143 144 return NULL; ··· 149 150 return NULL; 150 151 } 151 152 152 - void* ODNodeCreateWithNodeType(void) 153 + ODNodeRef ODNodeCreateWithNodeType(CFAllocatorRef allocator, ODSessionRef session, ODNodeType nodeType, CFErrorRef *error) 153 154 { 154 155 if (verbose) puts("STUB: ODNodeCreateWithNodeType called"); 155 156 return NULL; 156 157 } 157 158 158 - void* ODNodeCustomCall(void) 159 + CFDataRef ODNodeCustomCall(ODNodeRef node, CFIndex customCode, CFDataRef data, CFErrorRef *error) 159 160 { 160 161 if (verbose) puts("STUB: ODNodeCustomCall called"); 161 162 return NULL; 162 163 } 163 164 164 - void* ODNodeCustomFunction(void) 165 + CFTypeRef ODNodeCustomFunction(ODNodeRef node, CFStringRef function, CFTypeRef payload, CFErrorRef *error) 165 166 { 166 167 if (verbose) puts("STUB: ODNodeCustomFunction called"); 167 168 return NULL; 168 169 } 169 170 170 - void* ODNodeGetDSRef(void) 171 + tDirNodeReference ODNodeGetDSRef(ODNodeRef inNodeRef) 171 172 { 172 173 if (verbose) puts("STUB: ODNodeGetDSRef called"); 173 - return NULL; 174 + return 0; 174 175 } 175 176 176 - void* ODNodeGetName(void) 177 + CFStringRef ODNodeGetName(ODNodeRef node) 177 178 { 178 179 if (verbose) puts("STUB: ODNodeGetName called"); 179 180 return NULL; ··· 185 186 return NULL; 186 187 } 187 188 188 - void* ODNodeGetTypeID(void) 189 + CFTypeID ODNodeGetTypeID(void) 189 190 { 190 191 if (verbose) puts("STUB: ODNodeGetTypeID called"); 191 - return NULL; 192 + return 0; 192 193 } 193 194 194 - void* ODNodePasswordContentCheck(void) 195 + bool ODNodePasswordContentCheck(ODNodeRef node, CFStringRef password, CFStringRef recordName, CFErrorRef *error) 195 196 { 196 197 if (verbose) puts("STUB: ODNodePasswordContentCheck called"); 197 - return NULL; 198 + return false; 198 199 } 199 200 200 - void* ODNodeRemoveAccountPolicy(void) 201 + bool ODNodeRemoveAccountPolicy(ODNodeRef node, CFDictionaryRef policy, ODPolicyCategoryType category, CFErrorRef *error) 201 202 { 202 203 if (verbose) puts("STUB: ODNodeRemoveAccountPolicy called"); 203 - return NULL; 204 + return false; 204 205 } 205 206 206 - void* ODNodeRemovePolicy(void) 207 + bool ODNodeRemovePolicy(ODNodeRef node, ODPolicyType policyType, CFErrorRef *error) 207 208 { 208 209 if (verbose) puts("STUB: ODNodeRemovePolicy called"); 209 210 return NULL; ··· 215 216 return NULL; 216 217 } 217 218 218 - void* ODNodeSetAccountPolicies(void) 219 + bool ODNodeSetAccountPolicies(ODNodeRef node, CFDictionaryRef policies, CFErrorRef *error) 219 220 { 220 221 if (verbose) puts("STUB: ODNodeSetAccountPolicies called"); 221 222 return NULL; 222 223 } 223 224 224 - void* ODNodeSetCredentials(void) 225 + bool ODNodeSetCredentials(ODNodeRef node, ODRecordType recordType, CFStringRef recordName, CFStringRef password, CFErrorRef *error) 225 226 { 226 227 if (verbose) puts("STUB: ODNodeSetCredentials called"); 227 228 return NULL; 228 229 } 229 230 230 - void* ODNodeSetCredentialsExtended(void) 231 + bool ODNodeSetCredentialsExtended(ODNodeRef node, ODRecordType recordType, ODAuthenticationType authType, CFArrayRef authItems, CFArrayRef *outAuthItems, ODContextRef *outContext, CFErrorRef *error) 231 232 { 232 233 if (verbose) puts("STUB: ODNodeSetCredentialsExtended called"); 233 234 return NULL; 234 235 } 235 236 236 - void* ODNodeSetCredentialsUsingKerberosCache(void) 237 + bool ODNodeSetCredentialsUsingKerberosCache(ODNodeRef node, CFStringRef cacheName, CFErrorRef *error) 237 238 { 238 239 if (verbose) puts("STUB: ODNodeSetCredentialsUsingKerberosCache called"); 239 - return NULL; 240 + return false; 240 241 } 241 242 242 243 void* ODNodeSetCredentialsWithBootstrapToken(void) ··· 245 246 return NULL; 246 247 } 247 248 248 - void* ODNodeSetPolicies(void) 249 + bool ODNodeSetPolicies(ODNodeRef node, CFDictionaryRef policies, CFErrorRef *error) 249 250 { 250 251 if (verbose) puts("STUB: ODNodeSetPolicies called"); 251 - return NULL; 252 + return false; 252 253 } 253 254 254 - void* ODNodeSetPolicy(void) 255 + bool ODNodeSetPolicy(ODNodeRef node, ODPolicyType policyType, CFTypeRef value, CFErrorRef *error) 255 256 { 256 257 if (verbose) puts("STUB: ODNodeSetPolicy called"); 257 - return NULL; 258 + return false; 258 259 } 259 260 260 261 void* ODNodeSetSecureTokenRecoveryCloud(void) ··· 287 288 return NULL; 288 289 } 289 290 290 - void* ODNodeVerifyCredentialsExtended(void) 291 + bool ODNodeVerifyCredentialsExtended(ODNodeRef node, ODRecordType recordType, ODAuthenticationType authType, CFArrayRef authItems, CFArrayRef *authItemsOut, ODContextRef *context, CFErrorRef *error) 291 292 { 292 293 if (verbose) puts("STUB: ODNodeVerifyCredentialsExtended called"); 293 - return NULL; 294 + return false; 294 295 } 295 296 296 - void* ODQueryCopyResults(void) 297 + CFArrayRef ODQueryCopyResults(ODQueryRef query, bool allowPartialResults, CFErrorRef *error) 297 298 { 298 299 if (verbose) puts("STUB: ODQueryCopyResults called"); 299 300 return NULL; 300 301 } 301 302 302 - void* ODQueryCreateWithNode(void) 303 + ODQueryRef ODQueryCreateWithNode(CFAllocatorRef allocator, ODNodeRef node, CFTypeRef recordTypeOrList, ODAttributeType attribute, ODMatchType matchType, CFTypeRef queryValueOrList, CFTypeRef returnAttributeOrList, CFIndex maxResults, CFErrorRef *error) 303 304 { 304 305 if (verbose) puts("STUB: ODQueryCreateWithNode called"); 305 306 return NULL; 306 307 } 307 308 308 - void* ODQueryCreateWithNodeType(void) 309 + ODQueryRef ODQueryCreateWithNodeType(CFAllocatorRef allocator, ODNodeType nodeType, CFTypeRef recordTypeOrList, ODAttributeType attribute, ODMatchType matchType, CFTypeRef queryValueOrList, CFTypeRef returnAttributeOrList, CFIndex maxResults, CFErrorRef *error) 309 310 { 310 311 if (verbose) puts("STUB: ODQueryCreateWithNodeType called"); 311 312 return NULL; 312 313 } 313 314 314 - void* ODQueryGetTypeID(void) 315 + CFTypeID ODQueryGetTypeID(void) 315 316 { 316 317 if (verbose) puts("STUB: ODQueryGetTypeID called"); 317 - return NULL; 318 + return 0; 318 319 } 319 320 320 - void* ODQueryScheduleWithRunLoop(void) 321 + void ODQueryScheduleWithRunLoop(ODQueryRef query, CFRunLoopRef runLoop, CFStringRef runLoopMode) 321 322 { 322 323 if (verbose) puts("STUB: ODQueryScheduleWithRunLoop called"); 323 - return NULL; 324 324 } 325 325 326 - void* ODQuerySetCallback(void) 326 + void ODQuerySetCallback(ODQueryRef query, ODQueryCallback callback, void *userInfo) 327 327 { 328 328 if (verbose) puts("STUB: ODQuerySetCallback called"); 329 - return NULL; 330 329 } 331 330 332 - void* ODQuerySetDispatchQueue(void) 331 + void ODQuerySetDispatchQueue(ODQueryRef query, dispatch_queue_t queue) 333 332 { 334 333 if (verbose) puts("STUB: ODQuerySetDispatchQueue called"); 335 - return NULL; 336 334 } 337 335 338 - void* ODQuerySynchronize(void) 336 + void ODQuerySynchronize(ODQueryRef query) 339 337 { 340 338 if (verbose) puts("STUB: ODQuerySynchronize called"); 341 - return NULL; 342 339 } 343 340 344 - void* ODQueryUnscheduleFromRunLoop(void) 341 + void ODQueryUnscheduleFromRunLoop(ODQueryRef query, CFRunLoopRef runLoop, CFStringRef runLoopMode) 345 342 { 346 343 if (verbose) puts("STUB: ODQueryUnscheduleFromRunLoop called"); 347 - return NULL; 348 344 } 349 345 350 - void* ODRecordAddAccountPolicy(void) 346 + bool ODRecordAddAccountPolicy(ODRecordRef record, CFDictionaryRef policy, ODPolicyCategoryType category, CFErrorRef *error) 351 347 { 352 348 if (verbose) puts("STUB: ODRecordAddAccountPolicy called"); 353 - return NULL; 349 + return false; 354 350 } 355 351 356 - void* ODRecordAddMember(void) 352 + bool ODRecordAddMember(ODRecordRef group, ODRecordRef member, CFErrorRef *error) 357 353 { 358 354 if (verbose) puts("STUB: ODRecordAddMember called"); 359 - return NULL; 355 + return false; 360 356 } 361 357 362 - void* ODRecordAddValue(void) 358 + bool ODRecordAddValue(ODRecordRef record, ODAttributeType attribute, CFTypeRef value, CFErrorRef *error) 363 359 { 364 360 if (verbose) puts("STUB: ODRecordAddValue called"); 365 - return NULL; 361 + return false; 366 362 } 367 363 368 - void* ODRecordAuthenticationAllowed(void) 364 + bool ODRecordAuthenticationAllowed(ODRecordRef record, CFErrorRef *error) 369 365 { 370 366 if (verbose) puts("STUB: ODRecordAuthenticationAllowed called"); 371 - return NULL; 367 + return false; 372 368 } 373 369 374 - void* ODRecordChangePassword(void) 370 + bool ODRecordChangePassword(ODRecordRef record, CFStringRef oldPassword, CFStringRef newPassword, CFErrorRef *error) 375 371 { 376 372 if (verbose) puts("STUB: ODRecordChangePassword called"); 377 - return NULL; 373 + return false; 378 374 } 379 375 380 - void* ODRecordContainsMember(void) 376 + bool ODRecordContainsMember(ODRecordRef group, ODRecordRef member, CFErrorRef *error) 381 377 { 382 378 if (verbose) puts("STUB: ODRecordContainsMember called"); 383 - return NULL; 379 + return false; 384 380 } 385 381 386 - void* ODRecordContainsMemberRefresh(void) 382 + bool ODRecordContainsMemberRefresh(ODRecordRef inGroupRef, ODRecordRef inMemberRef, CFErrorRef *outError) 387 383 { 388 384 if (verbose) puts("STUB: ODRecordContainsMemberRefresh called"); 389 - return NULL; 385 + return false; 390 386 } 391 387 392 - void* ODRecordCopyAccountPolicies(void) 388 + CFDictionaryRef ODRecordCopyAccountPolicies(ODRecordRef record, CFErrorRef *error) 393 389 { 394 390 if (verbose) puts("STUB: ODRecordCopyAccountPolicies called"); 395 391 return NULL; 396 392 } 397 393 398 - void* ODRecordCopyDetails(void) 394 + CFDictionaryRef ODRecordCopyDetails(ODRecordRef record, CFArrayRef attributes, CFErrorRef *error) 399 395 { 400 396 if (verbose) puts("STUB: ODRecordCopyDetails called"); 401 397 return NULL; 402 398 } 403 399 404 - void* ODRecordCopyEffectivePolicies(void) 400 + CFDictionaryRef ODRecordCopyEffectivePolicies(ODRecordRef record, CFErrorRef *error) 405 401 { 406 402 if (verbose) puts("STUB: ODRecordCopyEffectivePolicies called"); 407 403 return NULL; ··· 413 409 return NULL; 414 410 } 415 411 416 - void* ODRecordCopyPasswordPolicy(void) 412 + CFDictionaryRef ODRecordCopyPasswordPolicy(CFAllocatorRef allocator, ODRecordRef record, CFErrorRef *error) 417 413 { 418 414 if (verbose) puts("STUB: ODRecordCopyPasswordPolicy called"); 419 415 return NULL; 420 416 } 421 417 422 - void* ODRecordCopyPolicies(void) 418 + CFDictionaryRef ODRecordCopyPolicies(ODRecordRef record, CFErrorRef *error) 423 419 { 424 420 if (verbose) puts("STUB: ODRecordCopyPolicies called"); 425 421 return NULL; 426 422 } 427 423 428 - void* ODRecordCopySupportedPolicies(void) 424 + CFDictionaryRef ODRecordCopySupportedPolicies(ODRecordRef record, CFErrorRef *error) 429 425 { 430 426 if (verbose) puts("STUB: ODRecordCopySupportedPolicies called"); 431 427 return NULL; 432 428 } 433 429 434 - void* ODRecordCopyValues(void) 430 + CFArrayRef ODRecordCopyValues(ODRecordRef record, ODAttributeType attribute, CFErrorRef *error) 435 431 { 436 432 if (verbose) puts("STUB: ODRecordCopyValues called"); 437 433 return NULL; 438 434 } 439 435 440 - void* ODRecordDelete(void) 436 + bool ODRecordDelete(ODRecordRef record, CFErrorRef *error) 441 437 { 442 438 if (verbose) puts("STUB: ODRecordDelete called"); 443 - return NULL; 439 + return false; 444 440 } 445 441 446 442 void* ODRecordEnumerateMembers(void) ··· 455 451 return NULL; 456 452 } 457 453 458 - void* ODRecordGetRecordName(void) 454 + CFStringRef ODRecordGetRecordName(ODRecordRef record) 459 455 { 460 456 if (verbose) puts("STUB: ODRecordGetRecordName called"); 461 457 return NULL; 462 458 } 463 459 464 - void* ODRecordGetRecordType(void) 460 + CFStringRef ODRecordGetRecordType(ODRecordRef record) 465 461 { 466 462 if (verbose) puts("STUB: ODRecordGetRecordType called"); 467 463 return NULL; 468 464 } 469 465 470 - void* ODRecordGetTypeID(void) 466 + CFTypeID ODRecordGetTypeID(void) 471 467 { 472 468 if (verbose) puts("STUB: ODRecordGetTypeID called"); 473 - return NULL; 469 + return 0; 474 470 } 475 471 476 - void* ODRecordPasswordChangeAllowed(void) 472 + bool ODRecordPasswordChangeAllowed(ODRecordRef record, CFStringRef newPassword, CFErrorRef *error) 477 473 { 478 474 if (verbose) puts("STUB: ODRecordPasswordChangeAllowed called"); 479 - return NULL; 475 + return false; 480 476 } 481 - 482 - void* ODRecordRemoveAccountPolicy(void) 477 + bool ODRecordRemoveAccountPolicy(ODRecordRef record, CFDictionaryRef policy, ODPolicyCategoryType category, CFErrorRef *error) 483 478 { 484 479 if (verbose) puts("STUB: ODRecordRemoveAccountPolicy called"); 485 - return NULL; 480 + return false; 486 481 } 487 482 488 - void* ODRecordRemoveMember(void) 483 + bool ODRecordRemoveMember(ODRecordRef group, ODRecordRef member, CFErrorRef *error) 489 484 { 490 485 if (verbose) puts("STUB: ODRecordRemoveMember called"); 491 - return NULL; 486 + return false; 492 487 } 493 488 494 - void* ODRecordRemovePolicy(void) 489 + bool ODRecordRemovePolicy(ODRecordRef record, ODPolicyType policy, CFErrorRef *error) 495 490 { 496 491 if (verbose) puts("STUB: ODRecordRemovePolicy called"); 497 - return NULL; 492 + return false; 498 493 } 499 494 500 - void* ODRecordRemoveValue(void) 495 + bool ODRecordRemoveValue(ODRecordRef record, ODAttributeType attribute, CFTypeRef value, CFErrorRef *error) 501 496 { 502 497 if (verbose) puts("STUB: ODRecordRemoveValue called"); 503 - return NULL; 498 + return false; 504 499 } 505 500 506 - void* ODRecordSecondsUntilAuthenticationsExpire(void) 501 + int64_t ODRecordSecondsUntilAuthenticationsExpire(ODRecordRef record) 507 502 { 508 503 if (verbose) puts("STUB: ODRecordSecondsUntilAuthenticationsExpire called"); 509 - return NULL; 504 + return 0; 510 505 } 511 506 512 - void* ODRecordSecondsUntilPasswordExpires(void) 507 + int64_t ODRecordSecondsUntilPasswordExpires(ODRecordRef record) 513 508 { 514 509 if (verbose) puts("STUB: ODRecordSecondsUntilPasswordExpires called"); 515 - return NULL; 510 + return 0; 516 511 } 517 512 518 - void* ODRecordSetAccountPolicies(void) 513 + bool ODRecordSetAccountPolicies(ODRecordRef record, CFDictionaryRef policies, CFErrorRef *error) 519 514 { 520 515 if (verbose) puts("STUB: ODRecordSetAccountPolicies called"); 521 - return NULL; 516 + return false; 522 517 } 523 518 524 - void* ODRecordSetNodeCredentials(void) 519 + bool ODRecordSetNodeCredentials(ODRecordRef record, CFStringRef username, CFStringRef password, CFErrorRef *error) 525 520 { 526 521 if (verbose) puts("STUB: ODRecordSetNodeCredentials called"); 527 - return NULL; 522 + return false; 528 523 } 529 524 530 - void* ODRecordSetNodeCredentialsExtended(void) 525 + bool ODRecordSetNodeCredentialsExtended(ODRecordRef record, ODRecordType recordType, ODAuthenticationType authType, CFArrayRef authItems, CFArrayRef *outAuthItems, ODContextRef *outContext, CFErrorRef *error) 531 526 { 532 527 if (verbose) puts("STUB: ODRecordSetNodeCredentialsExtended called"); 533 - return NULL; 528 + return false; 534 529 } 535 530 536 - void* ODRecordSetNodeCredentialsUsingKerberosCache(void) 531 + bool ODRecordSetNodeCredentialsUsingKerberosCache(ODRecordRef record, CFStringRef cacheName, CFErrorRef *error) 537 532 { 538 533 if (verbose) puts("STUB: ODRecordSetNodeCredentialsUsingKerberosCache called"); 539 - return NULL; 534 + return false; 540 535 } 541 536 542 - void* ODRecordSetNodeCredentialsWithBootstrapToken(void) 537 + bool ODRecordSetNodeCredentialsWithBootstrapToken(ODRecordRef cfRecord, CFStringRef token, CFErrorRef *error) 543 538 { 544 539 if (verbose) puts("STUB: ODRecordSetNodeCredentialsWithBootstrapToken called"); 545 - return NULL; 540 + return false; 546 541 } 547 542 548 - void* ODRecordSetPolicies(void) 543 + bool ODRecordSetPolicies(ODRecordRef record, CFDictionaryRef policies, CFErrorRef *error) 549 544 { 550 545 if (verbose) puts("STUB: ODRecordSetPolicies called"); 551 - return NULL; 546 + return false; 552 547 } 553 548 554 - void* ODRecordSetPolicy(void) 549 + bool ODRecordSetPolicy(ODRecordRef record, ODPolicyType policy, CFTypeRef value, CFErrorRef *error) 555 550 { 556 551 if (verbose) puts("STUB: ODRecordSetPolicy called"); 557 - return NULL; 552 + return false; 558 553 } 559 554 560 - void* ODRecordSetValue(void) 555 + bool ODRecordSetValue(ODRecordRef record, ODAttributeType attribute, CFTypeRef valueOrValues, CFErrorRef *error) 561 556 { 562 557 if (verbose) puts("STUB: ODRecordSetValue called"); 563 - return NULL; 558 + return false; 564 559 } 565 560 566 - void* ODRecordSynchronize(void) 561 + bool ODRecordSynchronize(ODRecordRef record, CFErrorRef *error) 567 562 { 568 563 if (verbose) puts("STUB: ODRecordSynchronize called"); 569 - return NULL; 564 + return false; 570 565 } 571 566 572 - void* ODRecordVerifyPassword(void) 567 + bool ODRecordVerifyPassword(ODRecordRef record, CFStringRef password, CFErrorRef *error) 573 568 { 574 569 if (verbose) puts("STUB: ODRecordVerifyPassword called"); 575 - return NULL; 570 + return false; 576 571 } 577 572 578 - void* ODRecordVerifyPasswordExtended(void) 573 + bool ODRecordVerifyPasswordExtended(ODRecordRef record, ODAuthenticationType authType, CFArrayRef authItems, CFArrayRef *outAuthItems, ODContextRef *outContext, CFErrorRef *error) 579 574 { 580 575 if (verbose) puts("STUB: ODRecordVerifyPasswordExtended called"); 581 - return NULL; 576 + return false; 582 577 } 583 578 584 - void* ODRecordWillAuthenticationsExpire(void) 579 + bool ODRecordWillAuthenticationsExpire(ODRecordRef record, uint64_t willExpireIn) 585 580 { 586 581 if (verbose) puts("STUB: ODRecordWillAuthenticationsExpire called"); 587 - return NULL; 582 + return false; 588 583 } 589 584 590 - void* ODRecordWillPasswordExpire(void) 585 + bool ODRecordWillPasswordExpire(ODRecordRef record, uint64_t willExpireIn) 591 586 { 592 587 if (verbose) puts("STUB: ODRecordWillPasswordExpire called"); 593 - return NULL; 588 + return false; 594 589 } 595 590 596 - void* ODSessionCopyNodeNames(void) 591 + CFArrayRef ODSessionCopyNodeNames(CFAllocatorRef allocator, ODSessionRef session, CFErrorRef *error) 597 592 { 598 593 if (verbose) puts("STUB: ODSessionCopyNodeNames called"); 599 594 return NULL; ··· 605 600 return NULL; 606 601 } 607 602 608 - void* ODSessionCreate(void) 603 + ODSessionRef ODSessionCreate(CFAllocatorRef allocator, CFDictionaryRef options, CFErrorRef *error) 609 604 { 610 605 if (verbose) puts("STUB: ODSessionCreate called"); 611 606 return NULL; 612 607 } 613 608 614 - void* ODSessionCreateWithDSRef(void) 609 + ODSessionRef ODSessionCreateWithDSRef(CFAllocatorRef inAllocator, tDirReference inDirRef, bool inCloseOnRelease) 615 610 { 616 611 if (verbose) puts("STUB: ODSessionCreateWithDSRef called"); 617 612 return NULL; 618 613 } 619 614 620 - void* ODSessionGetDSRef(void) 615 + tDirReference ODSessionGetDSRef(ODSessionRef inSessionRef) 621 616 { 622 617 if (verbose) puts("STUB: ODSessionGetDSRef called"); 623 - return NULL; 618 + return 0; 624 619 } 625 620 626 - void* ODSessionGetTypeID(void) 621 + CFTypeID ODSessionGetTypeID(void) 627 622 { 628 623 if (verbose) puts("STUB: ODSessionGetTypeID called"); 629 - return NULL; 624 + return 0; 630 625 } 631 626 632 627 void* ODSessionIsProxy(void) ··· 635 630 return NULL; 636 631 } 637 632 638 - void* ODSessionNodeNameIsLocal(void) 633 + bool ODSessionNodeNameIsLocal(ODSessionRef session, CFStringRef nodename) 639 634 { 640 635 if (verbose) puts("STUB: ODSessionNodeNameIsLocal called"); 641 - return NULL; 636 + return false; 642 637 } 643 638 644 639 void* ODSessionProxyAuthorizationForm(void) ··· 647 642 return NULL; 648 643 } 649 644 650 - void* ODTriggerCancel(void) 645 + void ODTriggerCancel(ODTriggerRef trigger) 651 646 { 652 647 if (verbose) puts("STUB: ODTriggerCancel called"); 653 - return NULL; 654 648 } 655 649 656 - void* ODTriggerCreateForNodes(void) 650 + ODTriggerRef ODTriggerCreateForNodes(CFAllocatorRef allocator, ODTriggerEventFlags events, CFTypeRef nodenames, 651 + dispatch_queue_t queue, void (^block)(ODTriggerRef trigger, CFStringRef node)) 657 652 { 658 653 if (verbose) puts("STUB: ODTriggerCreateForNodes called"); 659 654 return NULL; 660 655 } 661 656 662 - void* ODTriggerCreateForRecordAttributes(void) 657 + ODTriggerRef ODTriggerCreateForRecordAttributes(CFAllocatorRef allocator, CFTypeRef nodenames, CFTypeRef recordtypes, CFTypeRef recordnames, CFTypeRef attributes, 658 + dispatch_queue_t queue, void (^block)(ODTriggerRef trigger, CFStringRef node, CFStringRef type, CFStringRef rec, CFStringRef attr)) 663 659 { 664 660 if (verbose) puts("STUB: ODTriggerCreateForRecordAttributes called"); 665 661 return NULL; 666 662 } 667 663 668 - void* ODTriggerCreateForRecords(void) 664 + ODTriggerRef ODTriggerCreateForRecords(CFAllocatorRef allocator, ODTriggerEventFlags events, CFTypeRef nodenames, CFTypeRef recordtypes, CFTypeRef recordnames, 665 + dispatch_queue_t queue, void (^block)(ODTriggerRef trigger, CFStringRef node, CFStringRef type, CFStringRef name)) 669 666 { 670 667 if (verbose) puts("STUB: ODTriggerCreateForRecords called"); 671 668 return NULL; 672 669 } 673 670 674 - void* ODTriggerCreateForSearch(void) 671 + ODTriggerRef ODTriggerCreateForSearch(CFAllocatorRef allocator, ODTriggerEventFlags events, CFTypeRef nodenames, 672 + dispatch_queue_t queue, void (^block)(ODTriggerRef trigger, CFStringRef node)) 675 673 { 676 674 if (verbose) puts("STUB: ODTriggerCreateForSearch called"); 677 675 return NULL; 678 676 } 679 677 680 - void* ODTriggerGetTypeID(void) 678 + CFTypeID ODTriggerGetTypeID(void) 681 679 { 682 680 if (verbose) puts("STUB: ODTriggerGetTypeID called"); 683 - return NULL; 681 + return 0; 684 682 } 685 683 686 684 void* _NodeGetNodeTypeName(void) ··· 761 759 return NULL; 762 760 } 763 761 764 - void* kODSessionDefault = NULL; 762 + ODSessionRef kODSessionDefault = NULL;