Function c_ares_sys::ares_dns_rr_get_opt_byid

source ยท
pub unsafe extern "C" fn ares_dns_rr_get_opt_byid(
    dns_rr: *const ares_dns_rr_t,
    key: ares_dns_rr_key_t,
    opt: c_ushort,
    val: *mut *const c_uchar,
    val_len: *mut usize,
) -> ares_bool_t
Expand description

Retrieve the option for the RR by the option key/id.

\param[in] dns_rr Pointer to resource record \param[in] key DNS Resource Record Key \param[in] opt Option record key id (this is not the index). \param[out] val Optional. Pointer passed by reference to hold value. Options may not have values. Value if returned is guaranteed to be NULL terminated, however in most cases it is not printable. \param[out] val_len Optional. Pointer passed by reference to hold value length. \return ARES_TRUE on success, ARES_FALSE on misuse.