summaryrefslogtreecommitdiffstats
path: root/src/main.h
diff options
context:
space:
mode:
authorpancake <pancake@dazo>2007-04-25 21:05:03 +0200
committerpancake <pancake@dazo>2007-04-25 21:05:03 +0200
commit60f2337927efe4116a6675fccdf1021f51c86937 (patch)
tree8f793d5937d692bf8526590e0fc86af8b90f274b /src/main.h
parent196f1f7abbb896b84bbbb7a813e9d6641e162fc1 (diff)
download0xFFFF-60f2337927efe4116a6675fccdf1021f51c86937.tar.bz2
* import of the 'set-get-query_header' from Robert Schuster
1) name the simple functions get_foo and set_foo (and make them more consistent e.g. set_rd_mode and get_rd_mode). 2) moved remaining simple queries from main.c into query.c 3) created separate query.h header and included it in main.c 4) implemented get_usb_mode (they do not have this in the proprietary flasher) and added this function to a normal run (-> you will see the current USB mode when running with -i)
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h15
1 files changed, 1 insertions, 14 deletions
diff --git a/src/main.h b/src/main.h
index 0155833..1417b24 100644
--- a/src/main.h
+++ b/src/main.h
@@ -1,3 +1,4 @@
+
#ifndef _INCLUDE_MAIN_H_
#define _INCLUDE_MAIN_H_
@@ -11,21 +12,7 @@ void check_nolo_order();
extern struct usb_dev_handle *dev;
unsigned long get_file_size(char *file);
void progressbar(unsigned long long part, unsigned long long total);
-int get_status();
-int get_peripheral_host_mode(int foo);
-int boot_board(char *cmdline);
-int boot_board(char *cmdline);
-int reboot_board();
char *fpid_file(char *filename);
-int set_rd_mode(unsigned short mode);
-int set_usb_host_mode(unsigned short mode);
-int query_hw_revision();
-int query_rdmode_device();
-
-int query_root_device();
-int set_root_device(unsigned short);
-
-int query_nolo_version();
int add_piece(char *piece);
#define D if (verbose)