exif-content.h
Go to the documentation of this file.
/*
* Copyright (c) 2001 Lutz Mueller <lutz@users.sourceforge.net>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301 USA.
*
* SPDX-License-Identifier: LGPL-2.0-or-later
*/
#ifndef LIBEXIF_EXIF_CONTENT_H
#define LIBEXIF_EXIF_CONTENT_H
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
typedef struct _ExifContent ExifContent;
typedef struct _ExifContentPrivate ExifContentPrivate;
#include <libexif/exif-tag.h>
#include <libexif/exif-entry.h>
#include <libexif/exif-data.h>
#include <libexif/exif-log.h>
#include <libexif/exif-mem.h>
struct _ExifContent
{
ExifEntry **entries;
unsigned int count;
ExifData *parent;
ExifContentPrivate *priv;
};
/* Lifecycle */
ExifContent *exif_content_new (void);
ExifContent *exif_content_new_mem (ExifMem *);
void exif_content_ref (ExifContent *content);
void exif_content_unref (ExifContent *content);
void exif_content_free (ExifContent *content);
void exif_content_add_entry (ExifContent *c, ExifEntry *entry);
void exif_content_remove_entry (ExifContent *c, ExifEntry *e);
ExifEntry *exif_content_get_entry (ExifContent *content, ExifTag tag);
void exif_content_fix (ExifContent *c);
typedef void (* ExifContentForeachEntryFunc) (ExifEntry *, void *user_data);
void exif_content_foreach_entry (ExifContent *content,
ExifContentForeachEntryFunc func,
void *user_data);
ExifIfd exif_content_get_ifd (ExifContent *c);
#define exif_content_get_value(c,t,v,m) \
(exif_content_get_entry (c,t) ? \
exif_entry_get_value (exif_content_get_entry (c,t),v,m) : NULL)
void exif_content_dump (ExifContent *content, unsigned int indent);
void exif_content_log (ExifContent *content, ExifLog *log);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* !defined(LIBEXIF_EXIF_CONTENT_H) */
exif_content_remove_entry
void exif_content_remove_entry(ExifContent *c, ExifEntry *e)
Remove an EXIF tag from an IFD.
Definition exif-content.c:165
exif_content_get_ifd
ExifIfd exif_content_get_ifd(ExifContent *c)
Return the IFD number in which the given ExifContent is found.
Definition exif-content.c:242
exif_content_fix
void exif_content_fix(ExifContent *c)
Fix the IFD to bring it into specification.
Definition exif-content.c:286
exif_content_ref
void exif_content_ref(ExifContent *content)
Increase reference counter for ExifContent.
Definition exif-content.c:81
exif_content_get_entry
ExifEntry * exif_content_get_entry(ExifContent *content, ExifTag tag)
Return the ExifEntry in this IFD corresponding to the given tag.
Definition exif-content.c:204
exif_content_unref
void exif_content_unref(ExifContent *content)
Decrease reference counter for ExifContent.
Definition exif-content.c:90
exif_content_add_entry
void exif_content_add_entry(ExifContent *c, ExifEntry *entry)
Add an EXIF tag to an IFD.
Definition exif-content.c:141
exif_content_dump
void exif_content_dump(ExifContent *content, unsigned int indent)
Dump contents of the IFD to stdout.
Definition exif-content.c:122
ExifContent
struct _ExifContent ExifContent
Holds all EXIF tags in a single IFD.
Definition exif-content.h:33
exif_content_log
void exif_content_log(ExifContent *content, ExifLog *log)
Set the log message object for this IFD.
Definition exif-content.c:231
exif_content_foreach_entry
void exif_content_foreach_entry(ExifContent *content, ExifContentForeachEntryFunc func, void *user_data)
Executes function on each EXIF tag in this IFD in turn.
Definition exif-content.c:218
exif_content_new_mem
ExifContent * exif_content_new_mem(ExifMem *)
Reserve memory for and initialize new ExifContent using the specified memory allocator.
Definition exif-content.c:56
exif_content_new
ExifContent * exif_content_new(void)
Reserve memory for and initialize a new ExifContent.
Definition exif-content.c:45
exif_content_free
void exif_content_free(ExifContent *content)
Actually free the ExifContent.
Definition exif-content.c:101
exif-data.h
Defines the ExifData type and the associated functions.
ExifData
struct _ExifData ExifData
Represents the entire EXIF data found in an image.
Definition exif-data.h:39
exif-entry.h
Handling EXIF entries.
ExifEntry
struct _ExifEntry ExifEntry
Data found in one EXIF tag.
Definition exif-entry.h:37
exif-log.h
Log message infrastructure.
ExifLog
struct _ExifLog ExifLog
State maintained by the logging interface.
Definition exif-log.h:36
exif-mem.h
Define the ExifMem data type and the associated functions.
ExifMem
struct _ExifMem ExifMem
ExifMem define a memory allocator.
Definition exif-mem.h:59
exif-tag.h
Handling EXIF tags.
ExifTag
ExifTag
EXIF tags.
Definition exif-tag.h:36
_ExifContent
Definition exif-content.h:43
_ExifContent::parent
ExifData * parent
Data containing this content.
Definition exif-content.h:48