summaryrefslogtreecommitdiff
path: root/modules/devices.c
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2017-08-18 02:14:47 -0500
committerLeandro A. F. Pereira <leandro@hardinfo.org>2018-03-12 09:20:16 -0700
commitfdb1a05b6b5c84b67e3df107288f5046b763647e (patch)
tree57a18f80dac7cd11b5a571eef0d3a69ae096edcc /modules/devices.c
parent9154a9ab51a62180298dbd71c3cdac3f07f7b2a1 (diff)
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 <pburt0@gmail.com>
Diffstat (limited to 'modules/devices.c')
-rw-r--r--modules/devices.c7
1 files changed, 4 insertions, 3 deletions
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)