device_watcher.h
Go to the documentation of this file.
1 /* License: Apache 2.0. See LICENSE file in root directory. */
2 /* Copyright(c) 2019 Intel Corporation. All Rights Reserved. */
3 #pragma once
4 
5 #include "../types.h"
6 #include "../backend.h"
7 #include "../usb/usb-device.h"
8 
9 #include <memory>
10 
11 namespace librealsense
12 {
13  namespace platform
14  {
16  {
17  public:
18  virtual void start(device_changed_callback callback) override;
19  virtual void stop() override;
20 
21  void notify();
22  static std::shared_ptr<device_watcher_usbhost> instance();
23 
24  private:
25  std::mutex _mutex;
28  std::vector<platform::uvc_device_info> update_uvc_devices();
29  };
30  }
31 }
virtual void start(device_changed_callback callback) override
static std::shared_ptr< device_watcher_usbhost > instance()
std::vector< platform::uvc_device_info > update_uvc_devices()
std::function< void(backend_device_group old, backend_device_group curr)> device_changed_callback
Definition: backend.h:574
def callback(frame)
Definition: t265_stereo.py:91


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:47:12