2002-02-13 Lutz Müller <lutz@users.sourceforge.net>
[platform/upstream/libexif.git] / libexif / exif-entry.h
1 /* exif-entry.h
2  *
3  * Copyright (C) 2001 Lutz Müller <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., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  */
20
21 #ifndef __EXIF_ENTRY_H__
22 #define __EXIF_ENTRY_H__
23
24 typedef struct _ExifEntry        ExifEntry;
25 typedef struct _ExifEntryPrivate ExifEntryPrivate;
26
27 #include <libexif/exif-content.h>
28 #include <libexif/exif-format.h>
29
30 struct _ExifEntry {
31         ExifTag tag;
32         ExifFormat format;
33         unsigned long components;
34
35         unsigned char *data;
36         unsigned int size;
37
38         /* Content containing this entry */
39         ExifContent *parent;
40
41         ExifEntryPrivate *priv;
42 };
43
44 /* Lifecycle */
45 ExifEntry  *exif_entry_new   (void);
46 void        exif_entry_ref   (ExifEntry *entry);
47 void        exif_entry_unref (ExifEntry *entry);
48 void        exif_entry_free  (ExifEntry *entry);
49
50 void        exif_entry_initialize (ExifEntry *entry, ExifTag tag);
51
52 const char *exif_entry_get_value  (ExifEntry *entry);
53
54 void        exif_entry_dump      (ExifEntry *entry, unsigned int indent);
55
56 #endif /* __EXIF_ENTRY_H__ */