Function gnunet_sys::GNUNET_CONTAINER_heap_peek2[][src]

pub unsafe extern "C" fn GNUNET_CONTAINER_heap_peek2(
    heap: *const GNUNET_CONTAINER_Heap,
    element: *mut *mut c_void,
    cost: *mut GNUNET_CONTAINER_HeapCostType
) -> c_int

Get @a element and @a cost stored at the root of @a heap.

@param[in] heap Heap to inspect. @param[out] element Root element is returned here. @param[out] cost Cost of @a element is returned here. @return #GNUNET_YES if an element is returned, #GNUNET_NO if the heap is empty.