From d9ff1192a7b5eb7defca68e90e06c68e9b986c94 Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sat, 28 Mar 2009 13:45:39 +0100 Subject: Support for custom index file name Affects every generated HTML file (i.e. all of them would have .php extensions) --- src/gallery-utils.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/gallery-utils.h') diff --git a/src/gallery-utils.h b/src/gallery-utils.h index 3b12616..7e5e2c0 100644 --- a/src/gallery-utils.h +++ b/src/gallery-utils.h @@ -37,7 +37,7 @@ gboolean copy_file (const char *src, const char *dst); * make_string: make string of 'substr' substrings * - returns newly allocated string */ -char *make_string (const char* substr, int count); +char *make_string (const char *substr, int count); /* * fix_entities: replace all invalid & entities with & @@ -55,4 +55,9 @@ void remove_tags (char **str, const char *tag_begin, const char *tag_end); /* * count_dir_levels: returns number of path elements */ -int count_dir_levels (const char* path); +int count_dir_levels (const char *path); + +/* + * extract_file_ext: returns pointer to filename extension + */ +const char *extract_file_ext (const char *filename); -- cgit v1.2.3