From 7df97fbe8fa93141e7922a95f5ce0f9254bf41ab Mon Sep 17 00:00:00 2001 From: Tomas Bzatek Date: Sun, 23 Jan 2011 10:56:14 +0100 Subject: 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. --- src/generators.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/generators.h') 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); -- cgit v1.2.3