openthread_sys

Function otDnssdQuerySetCallbacks

Source
pub unsafe extern "C" fn otDnssdQuerySetCallbacks(
    aInstance: *mut otInstance,
    aSubscribe: otDnssdQuerySubscribeCallback,
    aUnsubscribe: otDnssdQueryUnsubscribeCallback,
    aContext: *mut c_void,
)
Expand description

Sets DNS-SD server query callbacks.

The DNS-SD server calls @p aSubscribe to subscribe to a service or service instance to resolve a DNS-SD query and @p aUnsubscribe to unsubscribe when the query is resolved or timeout.

@note @p aSubscribe and @p aUnsubscribe must be both set or unset.

@param[in] aInstance The OpenThread instance structure. @param[in] aSubscribe A pointer to the callback function to subscribe a service or service instance. @param[in] aUnsubscribe A pointer to the callback function to unsubscribe a service or service instance. @param[in] aContext A pointer to the application-specific context.