From 3097239ce65c2eca659671c23dbacbefc398b9e7 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Fri, 28 Oct 2016 23:27:29 +0200 Subject: 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 --- utils/nwztools/plattools/nwz_lib.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'utils/nwztools/plattools/nwz_lib.h') 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 @@ #include "nwz_ts.h" #include "nwz_power.h" +struct nwz_dev_info_t +{ + unsigned long model_id; + const char *name; +}; + +const char *nwz_get_model_name(unsigned long model_id); + /* run a program and exit with nonzero status in case of error * argument list must be NULL terminated */ void nwz_run(const char *file, const char *args[], bool wait); -- cgit v1.2.3