Function rs2_set_devices_changed_callback_cpp

Function Documentation

void rs2_set_devices_changed_callback_cpp(rs2_context *context, rs2_devices_changed_callback *callback, rs2_error **error)

set callback to get devices changed events these events will be raised by the context whenever new RealSense device is connected or existing device gets disconnected

Parameters:
  • context – Object representing librealsense session

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

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