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/items.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/items.h') diff --git a/src/items.h b/src/items.h index f1f13c9..491a8b3 100644 --- a/src/items.h +++ b/src/items.h @@ -41,7 +41,6 @@ typedef struct { gchar *desc; gchar *footnote; GPtrArray *items; - gchar *base_dir; void *parent_index; /* pointer to the parent TAlbum structure */ int parent_item_index; /* item index in the parent album */ int quality; @@ -78,6 +77,12 @@ typedef struct { gboolean gen_portrait; /* thumbnail orientation, don't use for original image orientation */ } TIndexItem; +typedef struct { + gchar *source_root; + gchar *dest_root; + gchar *src_dir; + gchar *dest_dir; +} TPathInfo; /* @@ -100,6 +105,10 @@ int get_album_objects_count (const gchar *filename); */ void get_album_titles (const gchar *filename, gchar **title, gchar **description, gchar **thumbnail); +/* + * free_path_info: free allocated pathinfo data + */ +void free_path_info (TPathInfo *path_info); G_END_DECLS -- cgit v1.2.3