forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhid_device_info_linux.h
33 lines (24 loc) · 995 Bytes
/
hid_device_info_linux.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef DEVICE_HID_HID_DEVICE_INFO_LINUX_H_
#define DEVICE_HID_HID_DEVICE_INFO_LINUX_H_
#include "device/hid/hid_device_info.h"
namespace device {
class HidDeviceInfoLinux : public HidDeviceInfo {
public:
HidDeviceInfoLinux(const HidDeviceId& device_id,
const std::string& device_node,
uint16_t vendor_id,
uint16_t product_id,
const std::string& product_name,
const std::string& serial_number,
HidBusType bus_type,
const std::vector<uint8> report_descriptor);
const std::string& device_node() const { return device_node_; }
private:
~HidDeviceInfoLinux() override;
std::string device_node_;
};
} // namespace device
#endif // DEVICE_HID_HID_DEVICE_INFO_LINUX_H_