summaryrefslogtreecommitdiff
path: root/src/gallery-utils.h
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2009-03-28 13:45:39 +0100
committerTomas Bzatek <tbzatek@users.sourceforge.net>2009-03-28 13:45:39 +0100
commitd9ff1192a7b5eb7defca68e90e06c68e9b986c94 (patch)
tree904f1ff183e50aa56f4521cac87712aa163d3cca /src/gallery-utils.h
parent7d00adae2749556d077af1fa3f0de13a2ea8e4a2 (diff)
downloadcataract-d9ff1192a7b5eb7defca68e90e06c68e9b986c94.tar.xz
Support for custom index file name
Affects every generated HTML file (i.e. all of them would have .php extensions)
Diffstat (limited to 'src/gallery-utils.h')
-rw-r--r--src/gallery-utils.h9
1 files changed, 7 insertions, 2 deletions
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 &amp;
@@ -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);