summaryrefslogtreecommitdiff
path: root/src/eom-exif-util.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/eom-exif-util.c')
-rw-r--r--src/eom-exif-util.c30
1 files changed, 28 insertions, 2 deletions
diff --git a/src/eom-exif-util.c b/src/eom-exif-util.c
index fedefcd..7fa0e99 100644
--- a/src/eom-exif-util.c
+++ b/src/eom-exif-util.c
@@ -185,7 +185,7 @@ eom_exif_util_format_date (const gchar *date)
}
/**
- * eom_exif_util_get_value:
+ * eom_exif_data_get_value:
* @exif_data: pointer to an <structname>ExifData</structname> struct
* @tag_id: the requested tag's id. See <filename>exif-tag.h</filename>
* from the libexif package for possible values (e.g. %EXIF_TAG_EXPOSURE_MODE).
@@ -199,7 +199,7 @@ eom_exif_util_format_date (const gchar *date)
* Returns: a pointer to @buffer.
*/
const gchar *
-eom_exif_util_get_value (ExifData *exif_data, gint tag_id, gchar *buffer, guint buf_size)
+eom_exif_data_get_value (EomExifData *exif_data, gint tag_id, gchar *buffer, guint buf_size)
{
ExifEntry *exif_entry;
const gchar *exif_value;
@@ -212,3 +212,29 @@ eom_exif_util_get_value (ExifData *exif_data, gint tag_id, gchar *buffer, guint
return exif_value;
}
+
+EomExifData *
+eom_exif_data_copy (EomExifData *data)
+{
+ exif_data_ref (data);
+
+ return data;
+}
+
+void
+eom_exif_data_free (EomExifData *data)
+{
+ exif_data_unref (data);
+}
+
+GType
+eom_exif_data_get_type (void)
+{
+ static GType our_type = 0;
+
+ if (our_type == 0)
+ our_type = g_boxed_type_register_static ("EomExifData",
+ (GBoxedCopyFunc) eom_exif_data_copy,
+ (GBoxedFreeFunc) eom_exif_data_free);
+ return our_type;
+}