---
title: ODQueryCallback
framework: opendirectory
role: symbol
role_heading: Type Alias
path: opendirectory/odquerycallback
---

# ODQueryCallback

A callback function called as results from a scheduled query are returned.

## Declaration

```swift
typealias ODQueryCallback = (ODQueryRef?, CFArray?, CFError?, UnsafeMutableRawPointer?) -> Void
```

## Discussion

Discussion Results from this function must be retained or copied. The results from any given call are partial. If both inResults and inError are NULL, the query has completed.

## See Also

### Data Types

- [ODAttributeType](opendirectory/odattributetype.md)
- [ODAuthenticationType](opendirectory/odauthenticationtype.md)
- [ODContext](opendirectory/odcontext.md)
- [ODNodeRef](opendirectory/odnoderef.md)
- [ODQueryRef](opendirectory/odqueryref.md)
- [ODRecordRef](opendirectory/odrecordref.md)
- [ODSessionRef](opendirectory/odsessionref.md)
- [ODMatchType](opendirectory/odmatchtype.md)
- [ODNodeType](opendirectory/odnodetype.md)
- [ODRecordType](opendirectory/odrecordtype.md)
