summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2012-10-30 15:35:07 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-10-30 15:42:39 +0100
commitcc9fffc825d7404315c60b70f68f293c355b90fd (patch)
tree043786a1509b92e21ff61f6333c6c1d4b3554c75 /include
parente2fce6b92c19e15593f98f354d19b2f7716896a9 (diff)
downloadbarebox-cc9fffc825d7404315c60b70f68f293c355b90fd.tar.gz
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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/filetype.h b/include/filetype.h
index 0b6cd24..0a722a0 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);