[][src]Function libcoap_sys::coap_remove_from_queue

pub unsafe extern "C" fn coap_remove_from_queue(
    queue: *mut *mut coap_queue_t,
    session: *mut coap_session_t,
    id: coap_tid_t,
    node: *mut *mut coap_queue_t
) -> c_int

This function removes the element with given @p id from the list given list. If @p id was found, @p node is updated to point to the removed element. Note that the storage allocated by @p node is @b not released. The caller must do this manually using coap_delete_node(). This function returns @c 1 if the element with id @p id was found, @c 0 otherwise. For a return value of @c 0, the contents of @p node is undefined.

@param queue The queue to search for @p id. @param session The session to look for. @param id The transaction id to look for. @param node If found, @p node is updated to point to the removed node. You must release the storage pointed to by @p node manually.

@return @c 1 if @p id was found, @c 0 otherwise.