nabto_device_connection_events_init_listener()

DESCRIPTION

Initialize a listener for connection events.

DECLARATION

NABTO_DEVICE_DECL_PREFIX NabtoDeviceError NABTO_DEVICE_API
nabto_device_connection_events_init_listener(NabtoDevice* device, NabtoDeviceListener* listener)

PARAMETERS

device:
[in] Device
listener:
[in] Listener to initialize for connection events

RETURN VALUES

NABTO_DEVICE_EC_OK on success NABTO_DEVICE_EC_OUT_OF_MEMORY if underlying structure could not be allocated

EXAMPLES

None.