axlPointer myqtt_async_queue_lookup ( MyQttAsyncQueue queue,
axlLookupFunc  lookup_func,
axlPointer  user_data 
)

Allows to iterate over queue elements applying a lookup function to select one.

Parameters
queueThe queue where the lookup operation will take place.
lookup_funcThe looking up function to call over each item.
user_dataUser defined data to be passed to the lookup function along with the queue item.
Returns
The first queue element that was found (lookup function returns axl_true for the queue item) or NULL if no items are in the queue or no item was selected by the lookup_func. Note the pointer returned is still owned by the queue.

References myqtt_mutex_lock(), and myqtt_mutex_unlock().