Function gnunet_sys::GNUNET_DNSPARSER_builder_add_query[][src]

pub unsafe extern "C" fn GNUNET_DNSPARSER_builder_add_query(
    dst: *mut c_char,
    dst_len: usize,
    off: *mut usize,
    query: *const GNUNET_DNSPARSER_Query
) -> c_int

Add a DNS query to the UDP packet at the given location.

@param dst where to write the query @param dst_len number of bytes in @a dst @param off pointer to offset where to write the query (increment by bytes used) must not be changed if there is an error @param query query to write @return #GNUNET_SYSERR if @a query is invalid #GNUNET_NO if @a query did not fit #GNUNET_OK if @a query was added to @a dst