Function gnunet_sys::GNUNET_DNSPARSER_builder_add_mx[][src]

pub unsafe extern "C" fn GNUNET_DNSPARSER_builder_add_mx(
    dst: *mut c_char,
    dst_len: usize,
    off: *mut usize,
    mx: *const GNUNET_DNSPARSER_MxRecord
) -> c_int

Add an MX record to the UDP packet at the given location.

@param dst where to write the mx record @param dst_len number of bytes in @a dst @param off pointer to offset where to write the mx information (increment by bytes used); can also change if there was an error @param mx mx information to write @return #GNUNET_SYSERR if @a mx is invalid #GNUNET_NO if @a mx did not fit #GNUNET_OK if @a mx was added to @a dst