EXIF library (libexif) API: libexif/exifent.h Source File

EXIF library (libexif) API 0.6.22

exifent.h
1
4/*
5 * Copyright (c) 2001 Lutz Mueller <lutz@users.sourceforge.net>
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the
19 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 * Boston, MA 02110-1301 USA.
21 */
22
23#ifndef __EXIF_ENTRY_H__
24#define __EXIF_ENTRY_H__
25
26#ifdef __cplusplus
27extern "C" {
28#endif /* __cplusplus */
29
35typedef struct _ExifEntry ExifEntry;
36typedef struct _ExifEntryPrivate ExifEntryPrivate;
37
38#include <libexif/exifcont.h>
39#include <libexif/exifform.h>
40#include <libexif/exifmem.h>
41
43struct _ExifEntry {
45 ExifTag tag;
46
48 exif_enum(ExifFormat) format;
49
52 unsigned long components;
53
57 unsigned char *data;
58
61 uint32_t size;
62
65 ExifContent *parent;
66
68 ExifEntryPrivate *priv;
69};
70
71/* Lifecycle */
72
80EXIF_API(ExifEntry *) exif_entry_new (void);
81
90EXIF_API(ExifEntry *) exif_entry_new_mem (ExifMem *);
91
98EXIF_API(void) exif_entry_ref (ExifEntry *entry);
99
105EXIF_API(void) exif_entry_unref (ExifEntry *entry);
106
114EXIF_API(void) exif_entry_free (ExifEntry *entry);
115
125EXIF_API(void) exif_entry_initialize (ExifEntry *e, ExifTag tag);
126
140EXIF_API(void) exif_entry_fix (ExifEntry *entry);
141
142
143/* For your convenience */
144
164EXIF_API(const char *) exif_entry_get_value (ExifEntry *entry, char *val, uint32_t maxlen);
165
172EXIF_API(void) exif_entry_dump (ExifEntry *entry, exif_uint_t indent);
173
179#define exif_entry_get_ifd(e) ((e) ? exif_content_get_ifd((e)->parent) : EXIF_IFD_COUNT)
180
181#ifdef __cplusplus
182}
183#endif /* __cplusplus */
184
185#endif /* __EXIF_ENTRY_H__ */
ExifFormat
ExifFormat
EXIF tag data formats.
Definition: exif-format.h:32
ExifTag
uint32_t ExifTag
EXIF tags.
Definition: exif-tag.h:34
exifcont.h
Handling EXIF IFDs.
_ExifContent
Definition: exif-content.h:41
_ExifEntry
Data found in one EXIF tag.
Definition: exif-entry.h:43
_ExifEntry::components
unsigned long components
Number of elements in the array, if this is an array entry.
Definition: exif-entry.h:52
_ExifEntry::priv
ExifEntryPrivate * priv
Internal data to be used by libexif itself.
Definition: exif-entry.h:68
_ExifEntry::exif_enum
exif_enum(ExifFormat) format
Type of data in this entry.
_ExifEntry::data
unsigned char * data
Pointer to the raw EXIF data for this entry.
Definition: exif-entry.h:57
_ExifEntry::tag
ExifTag tag
EXIF tag for this entry.
Definition: exif-entry.h:45
_ExifEntry::parent
ExifContent * parent
ExifContent containing this entry.
Definition: exif-entry.h:65
_ExifEntry::size
uint32_t size
Number of bytes in the buffer at data.
Definition: exif-entry.h:61