#[no_mangle]
pub extern "C" fn pactffi_pact_sync_message_iter_next(
    iter: *mut PactSyncMessageIterator
) -> *mut SynchronousMessage
Expand description

Get the next synchronous request/response message from the V4 pact. As the messages returned are owned by the iterator, they do not need to be deleted but will be cleaned up when the iterator is deleted.

Will return a NULL pointer when the iterator has advanced past the end of the list.

§Safety

This function is safe.

Deleting a message returned by the iterator can lead to undefined behaviour.

§Error Handling

This function will return a NULL pointer if passed a NULL pointer or if an error occurs.