[][src]Function libcoap_sys::coap_option_filter_get

pub unsafe extern "C" fn coap_option_filter_get(
    filter: *mut u16,
    type_: u16
) -> c_int

Checks if @p type is contained in @p filter. This function returns @c 1 if found, @c 0 if not, or @c -1 on error (i.e. when the given type does not fit in the filter).

@param filter The filter object to search. @param type The type to search for.

@return @c 1 if @p type was found, @c 0 otherwise, or @c -1 on error.