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 --- modules/devices.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'modules/devices.c') diff --git a/modules/devices.c b/modules/devices.c index 152b6831..5e757c15 100644 --- a/modules/devices.c +++ b/modules/devices.c @@ -635,9 +635,10 @@ gchar *callback_input() gchar *callback_usb() { return g_strdup_printf("%s" - "[$ShellParam$]\n" - "ViewType=1\n" - "ReloadInterval=5000\n", usb_list); + "[$ShellParam$]\n" + "ViewType=1\n" + "ReloadInterval=5000\n", usb_list); + } ModuleEntry *hi_module_get_entries(void) -- cgit v1.2.3