Added Usb Detection using libUsb
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#include "UsbTypes.hpp"
|
||||
|
||||
#include <vector>
|
||||
#include <optional>
|
||||
|
||||
#pragma once
|
||||
|
||||
@@ -8,9 +9,9 @@ namespace ptprnt::driver {
|
||||
|
||||
class IUsb {
|
||||
public:
|
||||
virtual ~IUsb(){};
|
||||
virtual ~IUsb() = default;
|
||||
|
||||
virtual std::vector<UsbDevice> listDevices() = 0;
|
||||
virtual std::optional<std::vector<UsbDevice>> getDevices() = 0;
|
||||
};
|
||||
|
||||
} // namespace ptprnt::driver
|
Reference in New Issue
Block a user