1 /* actions.h
2  *
3  * Copyright (c) 2002 Lutz Mueller <lutz@users.sourceforge.net>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the
17  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  * Boston, MA  02110-1301  USA.
19  */
20 
21 #ifndef __ACTIONS_H__
22 #define __ACTIONS_H__
23 
24 #include <libexif/exif-data.h>
25 
26 typedef struct {
27 	ExifTag tag;
28 	ExifIfd ifd;
29 
30 	unsigned int machine_readable;
31 	unsigned int use_ids;
32 	unsigned int width;
33 
34 	const char *fin;
35 
36 	char *set_value;
37 	char *set_thumb;
38 } ExifParams;
39 
40 void action_insert_thumb     (ExifData *, ExifLog *, ExifParams);
41 void action_remove_thumb     (ExifData *, ExifLog *, ExifParams);
42 void action_show_tag         (ExifData *, ExifLog *, ExifParams);
43 void action_set_value        (ExifData *, ExifLog *, ExifParams);
44 void action_remove_tag       (ExifData *, ExifLog *, ExifParams);
45 ExifEntry *
46 action_create_value (ExifData *ed, ExifLog *log, ExifTag tag, ExifIfd ifd);
47 
48 void action_save             (ExifData *, ExifLog *, ExifParams, const char *);
49 void action_save_thumb       (ExifData *, ExifLog *, ExifParams, const char *);
50 
51 void action_tag_table        (ExifData *, ExifParams);
52 void action_tag_list         (ExifData *, ExifParams);
53 void action_tag_list_machine (ExifData *, ExifParams);
54 void action_tag_list_xml     (ExifData *, ExifParams);
55 
56 void action_mnote_list       (ExifData *, ExifParams);
57 
58 #endif /* __ACTIONS_H__ */
59