[][src]Function libcoap_sys::coap_insert_optlist

pub unsafe extern "C" fn coap_insert_optlist(
    optlist_chain: *mut *mut coap_optlist_t,
    optlist: *mut coap_optlist_t
) -> c_int

Adds @p optlist to the given @p optlist_chain. The optlist_chain variable be set to NULL before the initial call to coap_insert_optlist(). The optlist_chain will need to be deleted using coap_delete_optlist() when no longer required.

@param optlist_chain The chain to add optlist to @param optlist The optlist to add to the queue

@return @c 1 if successful, @c 0 otherwise.