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 
00045         /* Data containing this content */
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 
00064 void         exif_content_add_entry    (ExifContent *c, ExifEntry *entry);
00065 
00072 void         exif_content_remove_entry (ExifContent *c, ExifEntry *e);
00073 
00082 ExifEntry   *exif_content_get_entry    (ExifContent *content, ExifTag tag);
00083 
00091 void         exif_content_fix          (ExifContent *c);
00092 
00093 typedef void (* ExifContentForeachEntryFunc) (ExifEntry *, void *user_data);
00094 
00102 void         exif_content_foreach_entry (ExifContent *content,
00103                                          ExifContentForeachEntryFunc func,
00104                                          void *user_data);
00105 
00111 ExifIfd exif_content_get_ifd (ExifContent *c);
00112 
00121 #define exif_content_get_value(c,t,v,m)                                 \
00122         (exif_content_get_entry (c,t) ?                                 \
00123          exif_entry_get_value (exif_content_get_entry (c,t),v,m) : NULL)
00124 
00131 void exif_content_dump  (ExifContent *content, unsigned int indent);
00132 
00138 void exif_content_log   (ExifContent *content, ExifLog *log);
00139 
00140 #ifdef __cplusplus
00141 }
00142 #endif /* __cplusplus */
00143 
00144 #endif /* __EXIF_CONTENT_H__ */

Generated on Wed Nov 25 12:54:40 2009 for EXIF library (libexif) API by  doxygen 1.6.1