diff options
-rw-r--r-- | Makefile.am | 2 | ||||
-rw-r--r-- | lsusb-t.c | 1 | ||||
-rw-r--r-- | lsusb.c | 2 | ||||
-rw-r--r-- | lsusb.h | 6 |
4 files changed, 9 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am index aa3644a..527672f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -18,7 +18,7 @@ bin_SCRIPTS = \ lsusb.py lsusb_SOURCES = \ - lsusb.c \ + lsusb.c lsusb.h \ lsusb-t.c \ list.h \ names.c names.h \ @@ -10,6 +10,7 @@ #include <stddef.h> #include "list.h" +#include "lsusb.h" #define MY_SYSFS_FILENAME_LEN 255 #define MY_PATH_MAX 4096 @@ -38,6 +38,7 @@ #include <libusb.h> #include <unistd.h> +#include "lsusb.h" #include "names.h" #include "devtree.h" #include "usbmisc.h" @@ -106,7 +107,6 @@ #define HUB_STATUS_BYTELEN 3 /* max 3 bytes status = hub + 23 ports */ -extern int lsusb_t(void); static const char procbususb[] = "/proc/bus/usb"; static unsigned int verblevel = VERBLEVEL_DEFAULT; static int do_report_desc = 1; @@ -0,0 +1,6 @@ +#ifndef _LSUSB_H +#define _LSUSB_H + +extern int lsusb_t(void); + +#endif |