openthread_sys

Function otServerGetNextService

Source
pub unsafe extern "C" fn otServerGetNextService(
    aInstance: *mut otInstance,
    aIterator: *mut otNetworkDataIterator,
    aConfig: *mut otServiceConfig,
) -> otError
Expand description

Gets the next service in the local Network Data.

@param[in] aInstance A pointer to an OpenThread instance. @param[in,out] aIterator A pointer to the Network Data iterator context. To get the first service entry it should be set to OT_NETWORK_DATA_ITERATOR_INIT. @param[out] aConfig A pointer to where the service information will be placed.

@retval OT_ERROR_NONE Successfully found the next service. @retval OT_ERROR_NOT_FOUND No subsequent service exists in the Thread Network Data.