From 4252f6eb96ef00d5907dceda3af8c581917d7aa1 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 27 Jan 2012 20:23:03 +0100 Subject: optional exif support (build with exif=1), initial patch import --- src/options.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/options.c') diff --git a/src/options.c b/src/options.c index 89f5e71..4c0ad5d 100644 --- a/src/options.c +++ b/src/options.c @@ -301,7 +301,11 @@ static void feh_getopt_theme(int argc, char **argv) static void feh_parse_option_array(int argc, char **argv, int finalrun) { static char stropts[] = - "a:A:b:B:cC:dD:e:E:f:Fg:GhH:iIj:J:kK:lL:mM:nNo:O:pPqrR:sS:tT:uUvVwW:xXy:YzZ" +#ifdef HAVE_LIBEXIF + "a:A:b:B:cC:dD:e:E:f:Fg:GhH:iIj:J:kK:lL:mM:nNo:O:pPQqrR:sS:tT:uUvVwW:xXy:YzZ" +#else + "a:A:b:B:cC:dD:e:E:f:Fg:GhH:iIj:J:kK:lL:mM:nNo:O:pPqrR:sS:tT:uUvVwW:xXy:YzZ" +#endif ".@:^:~:):|:+:"; /* (*name, has_arg, *flag, val) See: struct option in getopts.h */ @@ -329,6 +333,9 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun) {"auto-zoom" , 0, 0, 'Z'}, {"ignore-aspect" , 0, 0, 'X'}, {"draw-filename" , 0, 0, 'd'}, +#ifdef HAVE_LIBEXIF + {"draw-exif" , 0, 0, 'Q'}, +#endif {"preload" , 0, 0, 'p'}, {"reverse" , 0, 0, 'n'}, {"thumbnails" , 0, 0, 't'}, @@ -476,6 +483,11 @@ static void feh_parse_option_array(int argc, char **argv, int finalrun) case 'd': opt.draw_filename = 1; break; +#ifdef HAVE_LIBEXIF + case 'Q': + opt.draw_exif = 1; + break; +#endif case 'F': opt.full_screen = 1; break; -- cgit v1.2.3