otSrpServerParseSubTypeServiceName() function
Parses a sub-type service name (full name) and extracts the sub-type label. The full service name for a sub-type service follows "._sub...".
Arguments
aSubTypeServiceName
A sub-type service name (full name).
aLabel
A pointer to a buffer to copy the extracted sub-type label.
aLabelSize
Maximum size of @p aLabel buffer.
Return value
OT_ERROR_NONE Name was successfully parsed and @p aLabel was updated. OT_ERROR_NO_BUFS The sub-type label could not fit in @p aLabel buffer (number of chars from label that could fit are copied in @p aLabel ensuring it is null-terminated). OT_ERROR_INVALID_ARGS @p aSubTypeServiceName is not a valid sub-type format.
![]()
IgnoreError(otSrpServerParseSubTypeServiceName(subTypeName, subLabel, sizeof(subLabel)));
otSrpServerParseSubTypeServiceName() is called by 1 function and calls 1 function:
![]()
otSrpServerParseSubTypeServiceName()
otSrpServerParseSubTypeServiceName():
![]()
otSrpServerParseSubTypeServiceName()