diff src/exif.h @ 548:7ada6e5d4de8

Add a pointer to the build function in the formatted exif tags struct and use a loop in exif_get_formatted_by_key().
author zas_
date Fri, 02 May 2008 22:28:39 +0000
parents 116346636d42
children d93498f2a0f6
line wrap: on
line diff
--- a/src/exif.h	Fri May 02 21:58:36 2008 +0000
+++ b/src/exif.h	Fri May 02 22:28:39 2008 +0000
@@ -53,13 +53,6 @@
 } ExifFormatType;
 
 
-typedef struct _ExifFormattedText ExifFormattedText;
-struct _ExifFormattedText
-{
-	const gchar *key;
-	const gchar *description;
-};
-
 /*
  *-----------------------------------------------------------------------------
  * Data storage
@@ -100,6 +93,14 @@
 } ExifUnitType;
 
 
+typedef struct _ExifFormattedText ExifFormattedText;
+struct _ExifFormattedText
+{
+	const gchar *key;
+	const gchar *description;
+	gchar *(*build_func)(ExifData *exif);
+};
+
 /*
  *-----------------------------------------------------------------------------
  * functions