pub unsafe extern "C" fn otDnsServiceResponseGetServiceName(
    aResponse: *const otDnsServiceResponse,
    aLabelBuffer: *mut c_char,
    aLabelBufferSize: u8,
    aNameBuffer: *mut c_char,
    aNameBufferSize: u16
) -> otError
Expand description

Gets the service instance name associated with a DNS service instance resolution response.

MUST only be used from otDnsServiceCallback.

@param[in] aResponse A pointer to the response. @param[out] aLabelBuffer A buffer to char array to output the service instance label (MUST NOT be NULL). @param[in] aLabelBufferSize The size of @p aLabelBuffer. @param[out] aNameBuffer A buffer to char array to output the rest of service name (can be NULL if user is not interested in getting the name. @param[in] aNameBufferSize The size of @p aNameBuffer.

@retval OT_ERROR_NONE The service name was read successfully. @retval OT_ERROR_NO_BUFS Either the label or name does not fit in the given buffers.