* 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)
This commit is contained in:
1 parent
196f1f7abb
commit
60f2337927
4 files changed
+122
-68
No files matched your search
+1
-14
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user