summaryrefslogtreecommitdiff
path: root/utils/nwztools/plattools/nwz_lib.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2016-11-01 17:04:26 +0100
committerAmaury Pouly <amaury.pouly@gmail.com>2016-11-01 17:09:07 +0100
commitd492f25c54b4134fd6632156efee07670ab4004f (patch)
tree318919b264876a3906d15ecd8781ad0a1e15b3fb /utils/nwztools/plattools/nwz_lib.h
parentb045e4da34165a878c7acc9a82e76b447fe992a7 (diff)
downloadrockbox-d492f25c54b4134fd6632156efee07670ab4004f.tar.gz
rockbox-d492f25c54b4134fd6632156efee07670ab4004f.zip
nwztools: add preliminary dualboot and dualboot install script
At the moment, the script install_duaboot does the following: - rename SpiderApp to SpiderApp.of (unless it already exists) - install payload as SpiderApp - fixes permissions Since SpiderApp is the main app, it will execute instead of the OF. The current dualboot code (dualboot.c) is still a preliminary but the current version displays an "all tools" menu to choose for. When exitting the menu using BACK, it will run the OF. With the modifications made by the install script, it should not be possible to break the device. In the worst case scenario, the dualboot code crashes and it restarted by the sysmgrd, or hangs. A safe way to recover is to plug the USB cable and reset the device: the system manager will then start the USB app and one can reflash the device if necessary. Change-Id: Id9edab0347538ad2a8651a28aea7fd083feaa626
Diffstat (limited to 'utils/nwztools/plattools/nwz_lib.h')
-rw-r--r--utils/nwztools/plattools/nwz_lib.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/nwztools/plattools/nwz_lib.h b/utils/nwztools/plattools/nwz_lib.h
index 90d122003a..df0105a13d 100644
--- a/utils/nwztools/plattools/nwz_lib.h
+++ b/utils/nwztools/plattools/nwz_lib.h
@@ -30,6 +30,7 @@
30#include <linux/input.h> 30#include <linux/input.h>
31#include <fcntl.h> 31#include <fcntl.h>
32#include <string.h> 32#include <string.h>
33#include <stdlib.h>
33 34
34#include "nwz_keys.h" 35#include "nwz_keys.h"
35#include "nwz_fb.h" 36#include "nwz_fb.h"
@@ -47,7 +48,9 @@ const char *nwz_get_model_name(unsigned long model_id);
47 48
48/* run a program and exit with nonzero status in case of error 49/* run a program and exit with nonzero status in case of error
49 * argument list must be NULL terminated */ 50 * argument list must be NULL terminated */
50void nwz_run(const char *file, const char *args[], bool wait); 51int nwz_run(const char *file, const char *args[], bool wait);
52/* run a program and return program output */
53char *nwz_run_pipe(const char *file, const char *args[], int *status);
51 54
52/* invoke /usr/bin/lcdmsg to display a message using the small font, optionally 55/* invoke /usr/bin/lcdmsg to display a message using the small font, optionally
53 * clearing the screen before */ 56 * clearing the screen before */