Function gnunet_sys::GNUNET_CONTAINER_multihashmap32_iterator_next[][src]

pub unsafe extern "C" fn GNUNET_CONTAINER_multihashmap32_iterator_next(
    iter: *mut GNUNET_CONTAINER_MultiHashMap32Iterator,
    key: *mut u32,
    value: *mut *const c_void
) -> c_int

Retrieve the next element from the hash map at the iterator’s position. If there are no elements left, GNUNET_NO is returned, and ‘key’ and ‘value’ are not modified. This operation is only allowed if no elements have been removed from the multihashmap since the creation of ‘iter’, and the map has not been destroyed. Adding elements may result in repeating or skipping elements.

@param iter the iterator to get the next element from @param key pointer to store the key in, can be NULL @param value pointer to store the value in, can be NULL @return #GNUNET_YES we returned an element, #GNUNET_NO if we are out of elements