Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
src
android
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
{
15
class
device_watcher_usbhost
:
public
device_watcher
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
;
26
device_changed_callback
_callback
=
nullptr
;
27
backend_device_group
_prev_group
;
28
std::vector<platform::uvc_device_info>
update_uvc_devices
();
29
};
30
}
31
}
librealsense::platform::backend_device_group
Definition:
backend.h:510
librealsense::platform::device_watcher_usbhost::_mutex
std::mutex _mutex
Definition:
device_watcher.h:25
librealsense::platform::device_watcher_usbhost::start
virtual void start(device_changed_callback callback) override
Definition:
device_watcher.cpp:44
librealsense::platform::device_watcher_usbhost::instance
static std::shared_ptr< device_watcher_usbhost > instance()
Definition:
device_watcher.cpp:18
librealsense::platform::device_watcher_usbhost::stop
virtual void stop() override
Definition:
device_watcher.cpp:50
librealsense::platform::device_watcher_usbhost::update_uvc_devices
std::vector< platform::uvc_device_info > update_uvc_devices()
librealsense::platform::device_watcher_usbhost::_callback
device_changed_callback _callback
Definition:
device_watcher.h:26
librealsense
Definition:
calibration-model.h:6
librealsense::platform::device_changed_callback
std::function< void(backend_device_group old, backend_device_group curr)> device_changed_callback
Definition:
backend.h:574
t265_stereo.callback
def callback(frame)
Definition:
t265_stereo.py:91
librealsense::platform::device_watcher_usbhost
Definition:
device_watcher.h:15
librealsense::platform::device_watcher
Definition:
backend.h:815
librealsense::platform::device_watcher_usbhost::notify
void notify()
Definition:
device_watcher.cpp:24
librealsense::platform::device_watcher_usbhost::_prev_group
backend_device_group _prev_group
Definition:
device_watcher.h:27
librealsense2
Author(s): Sergey Dorodnicov
, Doron Hirshberg
, Mark Horn
, Reagan Lopez
, Itay Carpis
autogenerated on Mon May 3 2021 02:47:12