Author: abrander
Date: 2009-08-05 19:29:01 +0200 (Wed, 05 Aug 2009)
New Revision: 2606

Modified:
   trunk/librawstudio/rs-exif.cc
   trunk/librawstudio/rs-exif.h
Log:
Added rs_exif_copy().

Modified: trunk/librawstudio/rs-exif.cc
===================================================================
--- trunk/librawstudio/rs-exif.cc       2009-08-05 17:09:04 UTC (rev 2605)
+++ trunk/librawstudio/rs-exif.cc       2009-08-05 17:29:01 UTC (rev 2606)
@@ -184,4 +184,17 @@
        delete data;
 }
 
+gboolean
+rs_exif_copy(const gchar *input_filename, const gchar *output_filename)
+{
+       if (input_filename && output_filename)
+       {
+               RS_EXIF_DATA *exif;
+
+               exif = rs_exif_load_from_file(input_filename);
+               rs_exif_add_to_file(exif, output_filename);
+               rs_exif_free(exif);
+       }
+}
+
 } /* extern "C" */

Modified: trunk/librawstudio/rs-exif.h
===================================================================
--- trunk/librawstudio/rs-exif.h        2009-08-05 17:09:04 UTC (rev 2605)
+++ trunk/librawstudio/rs-exif.h        2009-08-05 17:29:01 UTC (rev 2606)
@@ -33,6 +33,7 @@
 extern RS_EXIF_DATA *rs_exif_load_from_rawfile(RAWFILE *rawfile);
 extern void rs_exif_add_to_file(RS_EXIF_DATA *d, const gchar *filename);
 extern void rs_exif_free(RS_EXIF_DATA *d);
+extern gboolean rs_exif_copy(const gchar *input_filename, const gchar 
*output_filename);
 
 #ifdef  __cplusplus
 }


_______________________________________________
Rawstudio-commit mailing list
[email protected]
http://rawstudio.org/cgi-bin/mailman/listinfo/rawstudio-commit

Reply via email to