summaryrefslogtreecommitdiff
path: root/src/generators.h
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2011-01-23 10:56:14 +0100
committerTomas Bzatek <tbzatek@users.sourceforge.net>2011-01-23 10:56:14 +0100
commit7df97fbe8fa93141e7922a95f5ce0f9254bf41ab (patch)
tree84c519692470b7a597f72acc2614d9d85bfa8ff6 /src/generators.h
parentbb58d822fb517f4a7a242994bbda3693255b2c74 (diff)
downloadcataract-7df97fbe8fa93141e7922a95f5ce0f9254bf41ab.tar.xz
Consolidate paths in a separate struct
This will allow us to pass detailed path info to worker methods. Each path info instance is bound to a currently processed album and directory. Possibly move to struct TItems in the future.
Diffstat (limited to 'src/generators.h')
-rw-r--r--src/generators.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/generators.h b/src/generators.h
index a890eb8..9e9c55e 100644
--- a/src/generators.h
+++ b/src/generators.h
@@ -36,7 +36,7 @@ gboolean generate_image (TGallerySetup *setup,
TAlbum *items,
TIndexItem *item,
unsigned int item_index,
- const gchar *dst_dir,
+ TPathInfo *path_info,
gboolean update_when_necessary,
gboolean *thumb_portrait);
@@ -49,6 +49,7 @@ gboolean generate_image (TGallerySetup *setup,
*
*/
gboolean write_html_album (TGallerySetup *setup,
+ TPathInfo *path_info,
const gchar *template_src,
const gchar *dst,
TAlbum *items);
@@ -57,15 +58,14 @@ gboolean write_html_album (TGallerySetup *setup,
* write_html_image: process single image template file
*
* template_src = template file of the album/index
- * original_img = source image file (original full-size) to get EXIF data from
* dst = save generated file as
* item = data for the current item
* parent_items = array of items in the album, to determine our position and make links to previous/next image
*
*/
gboolean write_html_image (TGallerySetup *setup,
+ TPathInfo *path_info,
const gchar *template_src,
- const gchar *original_img,
const gchar *dst,
TIndexItem *item,
TAlbum *parent_items);