summaryrefslogtreecommitdiff
path: root/utils/nwztools/plattools/nwz_lib.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2016-10-28 23:27:29 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2016-10-28 23:27:29 +0200
commit3097239ce65c2eca659671c23dbacbefc398b9e7 (patch)
treed10a9ae5e04f42f1f22735bd2d44621fc1bf471e /utils/nwztools/plattools/nwz_lib.h
parent281c8d47000f591daae8c74c737825ecdccf4326 (diff)
downloadrockbox-3097239ce65c2eca659671c23dbacbefc398b9e7.tar.gz
rockbox-3097239ce65c2eca659671c23dbacbefc398b9e7.zip
nwztools/plattools: add device list
This list can map from model id to device name. It was automatically extracted from Sony's tools. In the future, we will probably generate it from a clean database containing more useful information. Change-Id: Ibe580edf25b60bf0bf4aef4a06f40dddd19c5404
Diffstat (limited to 'utils/nwztools/plattools/nwz_lib.h')
-rw-r--r--utils/nwztools/plattools/nwz_lib.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/nwztools/plattools/nwz_lib.h b/utils/nwztools/plattools/nwz_lib.h
index 1dd7b4c85b..5e1640a70e 100644
--- a/utils/nwztools/plattools/nwz_lib.h
+++ b/utils/nwztools/plattools/nwz_lib.h
@@ -37,6 +37,14 @@
37#include "nwz_ts.h" 37#include "nwz_ts.h"
38#include "nwz_power.h" 38#include "nwz_power.h"
39 39
40struct nwz_dev_info_t
41{
42 unsigned long model_id;
43 const char *name;
44};
45
46const char *nwz_get_model_name(unsigned long model_id);
47
40/* run a program and exit with nonzero status in case of error 48/* run a program and exit with nonzero status in case of error
41 * argument list must be NULL terminated */ 49 * argument list must be NULL terminated */
42void nwz_run(const char *file, const char *args[], bool wait); 50void nwz_run(const char *file, const char *args[], bool wait);