Function rs2_set_devices_changed_callback

Function Documentation

void rs2_set_devices_changed_callback(const rs2_context *context, rs2_devices_changed_callback_ptr callback, void *user, 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] function pointer to register as per-notifications callback

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