diff options
| author | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2013-02-10 16:25:29 +0100 |
|---|---|---|
| committer | Tomas Bzatek <tbzatek@users.sourceforge.net> | 2013-02-10 16:25:29 +0100 |
| commit | 0cb2950ba336d6c291a1dc086ad2f3138f37e132 (patch) | |
| tree | 799d0b2b419eb07ad6c598b4f5234001ac6e0c21 /src/items.h | |
| parent | 939408e9c730ceb43d9bfd49056b5eb26f081b26 (diff) | |
| download | cataract-0cb2950ba336d6c291a1dc086ad2f3138f37e132.tar.xz | |
Support theme-defined thumbnail for protected albums
Diffstat (limited to 'src/items.h')
| -rw-r--r-- | src/items.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/src/items.h b/src/items.h index 5b350b9..15baeae 100644 --- a/src/items.h +++ b/src/items.h @@ -109,9 +109,9 @@ TAlbum * parse_album_xml (const gchar *filename, TPathInfo *path_info); void free_album_data (TAlbum *index); /* - * get_album_objects_count: retrieve number of items in specified album + * get_album_info: retrieve number of items and protected status in the specified album */ -int get_album_objects_count (const gchar *filename); +void get_album_info (const gchar *filename, int *objects_count, gboolean *protected); /* * get_album_titles: retrieve title, description and first thumbnail from specified album @@ -128,6 +128,16 @@ TGalleryType get_child_gallery_type (const gchar *filename); */ void free_path_info (TPathInfo *path_info); +/* + * dup_index_item: duplicates the item structure or returns NULL if item == NULL + */ +TIndexItem *dup_index_item (TIndexItem *item); + +/* + * free_index_item: frees all memory used by item + */ +void free_index_item (TIndexItem *item); + G_END_DECLS #endif /* __CGG__ITEMS_H__ */ |
