summaryrefslogtreecommitdiffstats
path: root/src/main.h
diff options
context:
space:
mode:
authorpancake <pancake@dazo>2007-06-14 23:32:52 +0200
committerpancake <pancake@dazo>2007-06-14 23:32:52 +0200
commit579dbe983733df293b620143d3a18f9bbcabcec7 (patch)
tree48247979a87975d8778f7cc715683547b72d71b1 /src/main.h
parented3cb1d3f8f21a067b30a9d6695515a791895c74 (diff)
download0xFFFF-579dbe983733df293b620143d3a18f9bbcabcec7.tar.bz2
* Fix device identification for n800. patch from Robert Schuster
- Looks like n770 and n800 have different USB identifiers on the bootloader and the operating system. * Print oops message and exit when the use has no permissions to access to the usb.
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.h b/src/main.h
index 7895c5c..dcbacff 100644
--- a/src/main.h
+++ b/src/main.h
@@ -5,6 +5,8 @@
#define _FILE_OFFSET_BITS 64
#define _GNU_SOURCE
+// Forward declaration for use in function arguments.
+struct devices;
int reverse_extract_pieces(char *dir);
void flash_image(char *filename, char *piece, char *version);
@@ -22,7 +24,7 @@ extern struct usb_device *device;
extern struct usb_dev_handle *dev;
int is_valid_device(struct usb_device_descriptor *udd);
void list_valid_devices();
-int usb_device_found(struct usb_device_descriptor *udd);
+int usb_device_found(struct usb_device_descriptor *udd, struct devices *it_device);
int console(const char *device);
int connect_via_usb();
int console_prompt();
@@ -54,7 +56,8 @@ struct devices {
unsigned short product_id;
unsigned short flags;
};
-#define SUPPORTED_DEVICES 5
+
+#define SUPPORTED_DEVICES 6
extern struct devices supported_devices[SUPPORTED_DEVICES];
extern int pcs_n;