Function openthread_sys::otSrpServerSetDomain
source ยท pub unsafe extern "C" fn otSrpServerSetDomain(
aInstance: *mut otInstance,
aDomain: *const c_char,
) -> otError
Expand description
Sets the domain on the SRP server.
A trailing dot will be appended to @p aDomain if it is not already there. Should only be called before the SRP server is enabled.
@param[in] aInstance A pointer to an OpenThread instance. @param[in] aDomain The domain to be set. MUST NOT be NULL.
@retval OT_ERROR_NONE Successfully set the domain to @p aDomain. @retval OT_ERROR_INVALID_STATE The SRP server is already enabled and the Domain cannot be changed. @retval OT_ERROR_INVALID_ARGS The argument @p aDomain is not a valid DNS domain name. @retval OT_ERROR_NO_BUFS There is no memory to store content of @p aDomain.