diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2009-04-25 15:39:55 +0200 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2009-04-25 15:39:55 +0200 |
| commit | 40334d2dec0545100edcca403d50ad6b1b015a9a (patch) | |
| tree | 70e76683eec8b4036d23f2253ea65ddb06d7c8dd /src/generators.h | |
| parent | 54f18873efeef6e0ae4ac8cb46c15d0a1bee37f5 (diff) | |
| download | cataract-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/generators.h')
| -rw-r--r-- | src/generators.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/generators.h b/src/generators.h index 584cff3..31636f0 100644 --- a/src/generators.h +++ b/src/generators.h @@ -23,11 +23,12 @@ /* * generate_image: generate needed image sizes */ -void generate_image (TGallerySetup *setup, - TAlbum *items, - TIndexItem *item, - unsigned int item_index, - const char *dst_dir); +gboolean generate_image (TGallerySetup *setup, + TAlbum *items, + TIndexItem *item, + unsigned int item_index, + const char *dst_dir, + gboolean update_when_necessary); /* * write_html_album: process album and index template files |
