Function rs2_software_device_set_destruction_callback_cpp

Function Documentation

void rs2_software_device_set_destruction_callback_cpp(const rs2_device *dev, rs2_software_device_destruction_callback *callback, rs2_error **error)

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

Parameters:
  • dev[in] software device

  • callback[in] callback object created from c++ application. ownership over the callback object is moved into the relevant device lock

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