Author: abrander
Date: 2009-12-31 02:28:52 +0100 (Thu, 31 Dec 2009)
New Revision: 2937

Modified:
   branches/rawstudio-ng-color/src/rs-photo.c
   branches/rawstudio-ng-color/src/rs-photo.h
Log:
Added rs_photo_get_dcp_profile().

Modified: branches/rawstudio-ng-color/src/rs-photo.c
===================================================================
--- branches/rawstudio-ng-color/src/rs-photo.c  2009-12-31 01:25:52 UTC (rev 
2936)
+++ branches/rawstudio-ng-color/src/rs-photo.c  2009-12-31 01:28:52 UTC (rev 
2937)
@@ -386,8 +386,13 @@
  * @param photo A RS_PHOTO
  * @return A DCP profile or NULL
  */
-extern void rs_photo_get_dcp_profile(RS_PHOTO *photo);
+extern RSDcpFile *rs_photo_get_dcp_profile(RS_PHOTO *photo)
+{
+       g_assert(RS_IS_PHOTO(photo));
 
+       return photo->dcp;
+}
+
 /**
  * Sets the white balance of a RS_PHOTO using warmth and tint variables
  * @param photo A RS_PHOTO

Modified: branches/rawstudio-ng-color/src/rs-photo.h
===================================================================
--- branches/rawstudio-ng-color/src/rs-photo.h  2009-12-31 01:25:52 UTC (rev 
2936)
+++ branches/rawstudio-ng-color/src/rs-photo.h  2009-12-31 01:28:52 UTC (rev 
2937)
@@ -236,7 +236,7 @@
  * @param photo A RS_PHOTO
  * @return A DCP profile or NULL
  */
-extern void rs_photo_get_dcp_profile(RS_PHOTO *photo);
+extern RSDcpFile *rs_photo_get_dcp_profile(RS_PHOTO *photo);
 
 /**
  * Sets the white balance of a RS_PHOTO using warmth and tint variables


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

Reply via email to