EXIF library (libexif) API
0.6.22
exif-content.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_CONTENT_H__
24
#define __EXIF_CONTENT_H__
25
26
#ifdef __cplusplus
27
extern
"C"
{
28
#endif
/* __cplusplus */
29
31
typedef
struct
_ExifContent
ExifContent
;
32
typedef
struct
_ExifContentPrivate ExifContentPrivate;
33
34
#include <libexif/exiftag.h>
35
#include <libexif/exifent.h>
36
#include <libexif/exifdata.h>
37
#include <libexif/exiflog.h>
38
#include <libexif/exifmem.h>
39
40
struct
_ExifContent
41
{
42
ExifEntry
**entries;
43
exif_uint_t count;
44
46
ExifData
*
parent
;
47
48
ExifContentPrivate *priv;
49
};
50
51
/* Lifecycle */
52
59
EXIF_API(
ExifContent
*) exif_content_new (
void
);
60
68
EXIF_API(
ExifContent
*) exif_content_new_mem (ExifMem *);
69
76
EXIF_API(
void
) exif_content_ref (
ExifContent
*content);
77
83
EXIF_API(
void
) exif_content_unref (
ExifContent
*content);
84
92
EXIF_API(
void
) exif_content_free (
ExifContent
*content);
93
101
EXIF_API(
void
) exif_content_add_entry (
ExifContent
*c,
ExifEntry
*entry);
102
109
EXIF_API(
void
) exif_content_remove_entry (
ExifContent
*c,
ExifEntry
*e);
110
119
EXIF_API(
ExifEntry
*) exif_content_get_entry (
ExifContent
*content,
ExifTag
tag);
120
128
EXIF_API(
void
) exif_content_fix (
ExifContent
*c);
129
130
typedef
void
EXIF_CALLBACK (* ExifContentForeachEntryFunc) (
ExifEntry
*,
void
*user_data);
131
139
EXIF_API(
void
) exif_content_foreach_entry (
ExifContent
*content,
140
ExifContentForeachEntryFunc func,
141
void
*user_data);
142
148
EXIF_API(ExifIfd) exif_content_get_ifd (
ExifContent
*c);
149
158
#define exif_content_get_value(c,t,v,m) \
159
(exif_content_get_entry (c,t) ? \
160
exif_entry_get_value (exif_content_get_entry (c,t),v,m) : NULL)
161
168
EXIF_API(
void
) exif_content_dump (
ExifContent
*content, exif_uint_t indent);
169
175
EXIF_API(
void
) exif_content_log (
ExifContent
*content, ExifLog *log);
176
177
#ifdef __cplusplus
178
}
179
#endif
/* __cplusplus */
180
181
#endif
/* __EXIF_CONTENT_H__ */
ExifTag
uint32_t ExifTag
EXIF tags.
Definition:
exif-tag.h:34
_ExifContent
Definition:
exif-content.h:41
_ExifContent::parent
ExifData * parent
Data containing this content.
Definition:
exif-content.h:46
_ExifData
Represents the entire EXIF data found in an image.
Definition:
exif-data.h:48
_ExifEntry
Data found in one EXIF tag.
Definition:
exif-entry.h:43
libexif
exif-content.h
Generated by
1.9.6