diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-10-30 15:35:07 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-10-30 15:42:39 +0100 |
commit | cc9fffc825d7404315c60b70f68f293c355b90fd (patch) | |
tree | 043786a1509b92e21ff61f6333c6c1d4b3554c75 /include | |
parent | e2fce6b92c19e15593f98f354d19b2f7716896a9 (diff) | |
download | barebox-cc9fffc825d7404315c60b70f68f293c355b90fd.tar.gz barebox-cc9fffc825d7404315c60b70f68f293c355b90fd.tar.xz |
filetype: add shortnames
The filetype strings are not really suitable for shell scripts, so
add a shortname array of filetypes usable for shell scripts.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/filetype.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/filetype.h b/include/filetype.h index 0b6cd24a6d..0a722a0a54 100644 --- a/include/filetype.h +++ b/include/filetype.h @@ -22,9 +22,11 @@ enum filetype { filetype_mbr, filetype_bmp, filetype_png, + filetype_max, }; const char *file_type_to_string(enum filetype f); +const char *file_type_to_short_string(enum filetype f); enum filetype file_detect_type(void *_buf); enum filetype file_name_detect_type(const char *filename); enum filetype is_fat_or_mbr(const unsigned char *sector, unsigned long *bootsec); |