improved sidecar writting
[geeqie.git] / src / metadata.h
1 /*
2  * Geeqie
3  * (C) 2004 John Ellis
4  * Copyright (C) 2008 The Geeqie Team
5  *
6  * Author: John Ellis, Laurent Monin
7  *
8  * This software is released under the GNU General Public License (GNU GPL).
9  * Please read the included file COPYING for more information.
10  * This software comes with no warranty of any kind, use at your own risk!
11  */
12
13
14 #ifndef METADATA_H
15 #define METADATA_H
16
17 gboolean metadata_write_queue_remove(FileData *fd);
18 gboolean metadata_write_queue_remove_list(GList *list);
19 gboolean metadata_write_perform(FileData *fd);
20 gboolean metadata_write_queue_confirm(void);
21
22
23
24 gint metadata_write(FileData *fd, GList **keywords, gchar **comment);
25
26 gint metadata_read(FileData *fd, GList **keywords, gchar **comment);
27
28 void metadata_set(FileData *fd, GList *new_keywords, gchar *new_comment, gboolean append);
29 gboolean find_string_in_list(GList *list, const gchar *keyword);
30 GList *string_to_keywords_list(const gchar *text);
31
32 gboolean meta_data_get_keyword_mark(FileData *fd, gint n, gpointer data);
33 gboolean meta_data_set_keyword_mark(FileData *fd, gint n, gboolean value, gpointer data);
34
35 #endif
36 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */