Important: The information in this document is obsolete and should not be used for new development.
MyListSearchFunction
Search through a list for a link that matches certain criteria.
Boolean (MyListSearchFunction) (const void* ref, OTLink* linkToCheck);PARAMETERS
ref
- A value passed to your function by the
OTFindLink
orOTFindAndRemoveLink
functions. This is the value that your function must match against each link in the list until it finds a matching link. It is the same as the refPtr parameter passed toOTFindLink
andOTFindAndRemoveLink
.linkToCheck
- A pointer to the current link being evaluated.
- function result
- The function should return
true
if the list element defined bylinkToCheck
matches the information specified by therefPtr
parameter.DISCUSSION
When theOTFindLink
function or theOTFindAndRemoveLink
function execute, they call this user-defined function.For 680x0 code, this routine uses MPW C calling conventions. You should check your development environment documention for information about defining a function with MPW C calling conventions. This is not an issue for PowerPC code.