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