openthread_sys

Type Alias otSrpClientAutoStartCallback

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

Pointer type defines the callback used by SRP client to notify user when it is auto-started or stopped.

This is only used when auto-start feature OPENTHREAD_CONFIG_SRP_CLIENT_AUTO_START_API_ENABLE is enabled.

This callback is invoked when auto-start mode is enabled and the SRP client is either automatically started or stopped.

@param[in] aServerSockAddr A non-NULL pointer indicates SRP server was started and pointer will give the selected server socket address. A NULL pointer indicates SRP server was stopped. @param[in] aContext A pointer to an arbitrary context (provided when callback was registered).

Aliased Type§

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

Variants§

§1.0.0

None

No value.

§1.0.0

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

Some value of type T.