pub type otDnssdQuerySubscribeCallback = Option<unsafe extern "C" fn(aContext: *mut c_void, aFullName: *const c_char)>;
Expand description

Is called when a DNS-SD query subscribes one of: 1. a service name. 2. a service instance name. 3. a host name.

The DNS-SD query implementation is responsible for identifying what @p aFullName is. If @p aFullName is a service name or service instance name, the DNS-SD query implementation should discover corresponding service instance information and notify the DNS-SD server using otDnssdQueryHandleDiscoveredServiceInstance. If @p aFullName is a host name, the DNS-SD query implementation should discover the host information and notify the DNS-SD server using otDnssdQueryHandleDiscoveredHost.

@note There can be multiple subscription to the same name. DNS-SD query implementation should record the number of active subscriptions and stop notifying when there is no active subscription for @p aFullName.

@param[in] aContext A pointer to the application-specific context. @param[in] aFullName The null-terminated full service name (e.g. “_ipps._tcp.default.service.arpa.”), or full service instance name (e.g. “OpenThread._ipps._tcp.default.service.arpa.”), or full host name (e.g. “ot-host.default.service.arpa.”).

@sa otDnssdQueryHandleDiscoveredServiceInstance @sa otDnssdQueryHandleDiscoveredHost

Aliased Type§

enum otDnssdQuerySubscribeCallback {
    None,
    Some(unsafe extern "C" fn(_: *mut c_void, _: *const i8)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut c_void, _: *const i8))

Some value of type T.