[][src]Function libcoap_sys::coap_delete_resource

pub unsafe extern "C" fn coap_delete_resource(
    context: *mut coap_context_t,
    resource: *mut coap_resource_t
) -> c_int

Deletes a resource identified by @p resource. The storage allocated for that resource is freed, and removed from the context.

@param context The context where the resources are stored. @param resource The resource to delete.

@return @c 1 if the resource was found (and destroyed), @c 0 otherwise.