List usb device

This commit is contained in:
2022-11-08 19:51:11 +01:00
parent 0081d219f9
commit 4809f60d2c
6 changed files with 90 additions and 8 deletions

View File

@@ -3,6 +3,7 @@
#include "IPrinter.hpp"
#include "P700Printer.hpp"
#include "Usb.hpp"
#include <libusb-1.0/libusb.h>
using namespace ptprnt;
@@ -11,9 +12,16 @@ int main(int argc, char** argv) {
std::cout << "Hello ptprnt!" << std::endl;
auto driver = std::make_unique<driver::P700Driver>();
auto usb = std::make_unique<driver::Usb>();
auto devs = usb->listDevices();
for (auto dev : devs) {
}
/*auto driver = std::make_unique<driver::P700Driver>();
auto printer = std::make_unique<printer::P700Printer>(std::move(driver));
printer::info info = printer->getInfo();
printer::info info = printer->getInfo();*/
return 0;
}