openthread_sys

Type Alias otDnssdQueryUnsubscribeCallback

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

Is called when a DNS-SD query unsubscribes 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.

@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.”).

Aliased Type§

enum otDnssdQueryUnsubscribeCallback {
    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.