diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2011-01-23 10:56:14 +0100 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2011-01-23 10:56:14 +0100 |
| commit | 7df97fbe8fa93141e7922a95f5ce0f9254bf41ab (patch) | |
| tree | 84c519692470b7a597f72acc2614d9d85bfa8ff6 /src/items.h | |
| parent | bb58d822fb517f4a7a242994bbda3693255b2c74 (diff) | |
| download | cataract-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/items.h')
| -rw-r--r-- | src/items.h | 11 |
1 files changed, 10 insertions, 1 deletions
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 |
