diff options
Diffstat (limited to 'src/items.c')
| -rw-r--r-- | src/items.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/items.c b/src/items.c index d475f91..0ddc3b1 100644 --- a/src/items.c +++ b/src/items.c @@ -551,6 +551,25 @@ get_child_gallery_type (const gchar *filename) } /* + * dup_path_info: duplicate pathinfo data + */ +TPathInfo * +dup_path_info (TPathInfo *path_info) +{ + TPathInfo *info; + + info = g_malloc0 (sizeof (TPathInfo)); + info->album_path = g_strdup (path_info->album_path); + info->dest_dir = g_strdup (path_info->dest_dir); + info->dest_root = g_strdup (path_info->dest_root); + info->source_root = g_strdup (path_info->source_root); + info->src_dir = g_strdup (path_info->src_dir); + info->templates_root = g_strdup (path_info->templates_root); + + return info; +} + +/* * free_path_info: free allocated pathinfo data */ void |
