summaryrefslogtreecommitdiffstats
path: root/src/main.h
diff options
context:
space:
mode:
authorpancake <pancake@pluna>2008-01-14 11:25:08 +0100
committerpancake <pancake@pluna>2008-01-14 11:25:08 +0100
commit288cad1c2e401e5dfbd029b95f62ca05c85d3d61 (patch)
treeac2652d1998dc9e641d49e367b3a853b2728b6c8 /src/main.h
parent4115aab13d70bbe8300562bcd789cc5bc27c8ded (diff)
download0xFFFF-288cad1c2e401e5dfbd029b95f62ca05c85d3d61.tar.bz2
* Up to 0.3.2
* Add HAVE_USB to config.mk - Now is possible to build a usb-less version of the flasher (only for unpacking and so, offline operations) * Refactor varname. Avoid portability problems: - reboot -> moboreboot
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h
index 2fbd15a..72ad491 100644
--- a/src/main.h
+++ b/src/main.h
@@ -25,6 +25,8 @@ void eprintf(const char *format, ...);
#ifndef PATH_MAX
#define PATH_MAX 4096
#endif
+
+#if HAVE_USB
#include <usb.h>
extern struct usb_device *device;
@@ -34,6 +36,8 @@ void list_valid_devices();
int usb_device_found(struct usb_device_descriptor *udd, struct devices *it_device);
int console(const char *device);
int connect_via_usb();
+#endif
+
int console_prompt();
//