From fdb1a05b6b5c84b67e3df107288f5046b763647e Mon Sep 17 00:00:00 2001 From: Burt P Date: Fri, 18 Aug 2017 02:14:47 -0500 Subject: usb_util.c A set of functions for getting information for a single USB device, or a list of all devices. The only implemented method is using `lsusb`, which is slow. A method using sysfs would be much better. The existing sysfs and procfs methods in devices/usb.c do not appear to work, so it would have to be something new. devices/usb.c modified to use usb_util, but all the old code is still there. Signed-off-by: Burt P --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 8038aead..bc480146 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -214,6 +214,7 @@ endif() if (HARDINFO_GTK3) add_executable(hardinfo + hardinfo/usb_util.c hardinfo/binreloc.c hardinfo/expr.c hardinfo/hardinfo.c @@ -242,6 +243,7 @@ target_link_libraries(hardinfo ) else() add_executable(hardinfo + hardinfo/usb_util.c hardinfo/binreloc.c hardinfo/expr.c hardinfo/hardinfo.c -- cgit v1.2.3