summaryrefslogtreecommitdiff
path: root/src/gallery-utils.h
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2009-04-25 15:39:55 +0200
committerTomas Bzatek <tbzatek@users.sourceforge.net>2009-04-25 15:39:55 +0200
commit40334d2dec0545100edcca403d50ad6b1b015a9a (patch)
tree70e76683eec8b4036d23f2253ea65ddb06d7c8dd /src/gallery-utils.h
parent54f18873efeef6e0ae4ac8cb46c15d0a1bee37f5 (diff)
downloadcataract-40334d2dec0545100edcca403d50ad6b1b015a9a.tar.xz
Update mode
By doing update, cgg will check the output structure for missing files and re-generate them as necessary. The decision whether an item (file, picture, album) needs to be updated is done by comparing timestamps (mtime specifically). Due to that reason it's important to keep this fact in mind when replacing single image which carries older timestamp than other files. Either don't use the update mode or 'touch' that new file. Changes made to any XML file will result in whole album re-generation (excluding subalbums).
Diffstat (limited to 'src/gallery-utils.h')
-rw-r--r--src/gallery-utils.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallery-utils.h b/src/gallery-utils.h
index d9c1d8a..85ad35d 100644
--- a/src/gallery-utils.h
+++ b/src/gallery-utils.h
@@ -73,6 +73,11 @@ const char *extract_file_ext (const char *filename);
*/
void log_error (const gchar *format, ...) G_GNUC_PRINTF (1, 2);
+/*
+ * needs_update: returns TRUE if the destionation file needs updating, also when missing
+ */
+gboolean needs_update (const char *source, const char *dest);
+
#ifdef __cplusplus
}