ivcam-private.cpp
Go to the documentation of this file.
1 // License: Apache 2.0. See LICENSE file in root directory.
2 // Copyright(c) 2015 Intel Corporation. All Rights Reserved.
3 
4 #include "ivcam-private.h"
5 
6 
7 namespace librealsense
8 {
9  namespace ivcam
10  {
11  bool try_fetch_usb_device(std::vector<platform::usb_device_info>& devices,
13  {
14  for (auto it = devices.begin(); it != devices.end(); ++it)
15  {
16  if (it->unique_id == info.unique_id)
17  {
18 
19  result = *it;
20  if(result.mi == 4 || result.mi == 2)
21  {
22  devices.erase(it);
23  return true;
24  }
25  }
26  }
27  return false;
28  }
29  } // namespace librealsense::ivcam
30 } // namespace librealsense
bool try_fetch_usb_device(std::vector< platform::usb_device_info > &devices, const platform::uvc_device_info &info, platform::usb_device_info &result)
def info(name, value, persistent=False)
Definition: test.py:301
devices
Definition: test-fg.py:9
static auto it
GLuint64EXT * result
Definition: glext.h:10921


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