From cc9fffc825d7404315c60b70f68f293c355b90fd Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Tue, 30 Oct 2012 15:35:07 +0100 Subject: 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 --- include/filetype.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') 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); -- cgit v1.2.3