openthread_sys

Function otMessageQueueGetNext

Source
pub unsafe extern "C" fn otMessageQueueGetNext(
    aQueue: *mut otMessageQueue,
    aMessage: *const otMessage,
) -> *mut otMessage
Expand description

Returns a pointer to the next message in the queue by iterating forward (from head to tail).

@param[in] aQueue A pointer to a message queue. @param[in] aMessage A pointer to current message buffer.

@returns A pointer to the next message in the queue after aMessage or NULL if aMessage is the tail of queue. NULL is returned if aMessageis not in the queueaQueue`.