1 /* GIMP - The GNU Image Manipulation Program
2  * Copyright (C) 1995 Spencer Kimball and Peter Mattis
3  *
4  * Copyright (C) 2016, 2017 Ben Touchette
5  *
6  * This program is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
18  */
19 
20 #ifndef __METADATA_MISC_H__
21 #define __METADATA_MISC_H__
22 
23 typedef struct
24 {
25   GtkWidget      *dialog;
26   GtkBuilder     *builder;
27   GExiv2Metadata *metadata;
28   gint32          image_id;
29   gchar          *filename;
30 } metadata_editor;
31 
32 typedef struct
33 {
34   gchar  *tag;
35   gchar  *mode;
36   gint32  other_tag_index;
37   gint32  tag_type;
38   gint32  xmp_type;
39 } metadata_tag;
40 
41 typedef struct
42 {
43   gchar  *data;
44   gchar  *display;
45 } combobox_str_tag;
46 
47 typedef struct
48 {
49   gint32  data;
50   gchar  *display;
51 } combobox_int_tag;
52 
53 typedef struct
54 {
55   gchar  *header;
56   gchar  *type;
57   gint32  size;
58 } TranslateHeaderTag;
59 
60 typedef struct
61 {
62   gchar  *id;
63   gchar  *tag;
64   gchar  *mode;
65   gint32  other_tag_index;
66   gint32  tag_type;
67 } TranslateTag;
68 
69 #endif /* __METADATA_MISC_H__ */
70 
71