exif-content.h

Go to the documentation of this file.
00001 
00004 /*
00005  * Copyright (c) 2001 Lutz Mueller <lutz@users.sourceforge.net>
00006  *
00007  * This library is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Lesser General Public
00009  * License as published by the Free Software Foundation; either
00010  * version 2 of the License, or (at your option) any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful, 
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of 
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Lesser General Public License for more details. 
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with this library; if not, write to the
00019  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00020  * Boston, MA  02110-1301  USA.
00021  */
00022 
00023 #ifndef __EXIF_CONTENT_H__
00024 #define __EXIF_CONTENT_H__
00025 
00026 #ifdef __cplusplus
00027 extern "C" {
00028 #endif /* __cplusplus */
00029 
00031 typedef struct _ExifContent        ExifContent;
00032 typedef struct _ExifContentPrivate ExifContentPrivate;
00033 
00034 #include <libexif/exif-tag.h>
00035 #include <libexif/exif-entry.h>
00036 #include <libexif/exif-data.h>
00037 #include <libexif/exif-log.h>
00038 #include <libexif/exif-mem.h>
00039 
00040 struct _ExifContent
00041 {
00042         ExifEntry **entries;
00043         unsigned int count;
00044 
00046         ExifData *parent;
00047 
00048         ExifContentPrivate *priv;
00049 };
00050 
00051 /* Lifecycle */
00052 ExifContent *exif_content_new     (void);
00053 ExifContent *exif_content_new_mem (ExifMem *);
00054 void         exif_content_ref     (ExifContent *content);
00055 void         exif_content_unref   (ExifContent *content);
00056 void         exif_content_free    (ExifContent *content);
00057 
00065 void         exif_content_add_entry    (ExifContent *c, ExifEntry *entry);
00066 
00073 void         exif_content_remove_entry (ExifContent *c, ExifEntry *e);
00074 
00083 ExifEntry   *exif_content_get_entry    (ExifContent *content, ExifTag tag);
00084 
00092 void         exif_content_fix          (ExifContent *c);
00093 
00094 typedef void (* ExifContentForeachEntryFunc) (ExifEntry *, void *user_data);
00095 
00103 void         exif_content_foreach_entry (ExifContent *content,
00104                                          ExifContentForeachEntryFunc func,
00105                                          void *user_data);
00106 
00112 ExifIfd exif_content_get_ifd (ExifContent *c);
00113 
00122 #define exif_content_get_value(c,t,v,m)                                 \
00123         (exif_content_get_entry (c,t) ?                                 \
00124          exif_entry_get_value (exif_content_get_entry (c,t),v,m) : NULL)
00125 
00132 void exif_content_dump  (ExifContent *content, unsigned int indent);
00133 
00139 void exif_content_log   (ExifContent *content, ExifLog *log);
00140 
00141 #ifdef __cplusplus
00142 }
00143 #endif /* __cplusplus */
00144 
00145 #endif /* __EXIF_CONTENT_H__ */

SourceForge.net Logo Generated by doxygen