Function rs2_software_device_set_destruction_callback

Function Documentation

void rs2_software_device_set_destruction_callback(const rs2_device *dev, rs2_software_device_destruction_callback_ptr on_notification, void *user, rs2_error **error)

set callback to be notified when a specific software device is destroyed

Parameters:
  • dev[in] software device

  • on_notification[in] function pointer to register as callback

  • error[out] if non-null, receives any error that occurs during this call, otherwise, errors are ignored