pub unsafe extern "C" fn otDnsRecordResponseGetQueryName(
aResponse: *const otDnsRecordResponse,
aNameBuffer: *mut c_char,
aNameBufferSize: u16,
) -> otError
Expand description
Gets the query name associated with a record query DNS response.
MUST only be used from otDnsRecordCallback
.
@param[in] aResponse A pointer to the response. @param[out] aNameBuffer A buffer to char array to output the full query name (MUST NOT be NULL). @param[in] aNameBufferSize The size of @p aNameBuffer.
@retval OT_ERROR_NONE The full query name was read successfully. @retval OT_ERROR_NO_BUFS The name does not fit in @p aNameBuffer.