nabto_device_device_events_init_listener()

DESCRIPTION

Initialize a listener for device events.

DECLARATION

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

PARAMETERS

device:
[in] Device
listener:
[in] The listener to initialize for device events

RETURNS

  • NABTO_DEVICE_EC_OK: on success
  • NABTO_DEVICE_EC_OUT_OF_MEMORY: if underlying structure could not be allocated