1.1 --- a/tumble_input.c Thu Mar 20 08:32:16 2003 +0000 1.2 +++ b/tumble_input.c Thu Mar 20 14:55:28 2003 +0000 1.3 @@ -2,7 +2,7 @@ 1.4 * tumble: build a PDF file from image files 1.5 * 1.6 * Input handler dispatch 1.7 - * $Id: tumble_input.c,v 1.2 2003/03/19 23:02:28 eric Exp $ 1.8 + * $Id: tumble_input.c,v 1.3 2003/03/20 06:55:27 eric Exp $ 1.9 * Copyright 2001, 2002, 2003 Eric Smith <eric@brouhaha.com> 1.10 * 1.11 * This program is free software; you can redistribute it and/or modify 1.12 @@ -57,6 +57,15 @@ 1.13 } 1.14 1.15 1.16 +bool match_input_suffix (char *suffix) 1.17 +{ 1.18 + int i; 1.19 + for (i = 0; i < input_handler_count; i++) 1.20 + if (input_handlers [i]->match_suffix (suffix)) 1.21 + return (1); 1.22 + return (0); 1.23 +} 1.24 + 1.25 bool open_input_file (char *name) 1.26 { 1.27 int i;