Author: akv
Date: 2009-12-29 20:50:28 +0100 (Tue, 29 Dec 2009)
New Revision: 2881

Modified:
   branches/rawstudio-ng-color/librawstudio/rs-lens-db.c
   branches/rawstudio-ng-color/librawstudio/rs-lens-db.h
Log:
Added rs_lens_db_save() and rs_lens_db_get_lenses().

Modified: branches/rawstudio-ng-color/librawstudio/rs-lens-db.c
===================================================================
--- branches/rawstudio-ng-color/librawstudio/rs-lens-db.c       2009-12-29 
18:29:13 UTC (rev 2880)
+++ branches/rawstudio-ng-color/librawstudio/rs-lens-db.c       2009-12-29 
19:50:28 UTC (rev 2881)
@@ -181,6 +181,16 @@
        return;
 }
 
+/**
+ * Force save of RSLensDb
+ * @param lens_db the RSLensDb to save
+ */
+void
+rs_lens_db_save(RSLensDb *lens_db)
+{
+       save_db(lens_db);
+}
+
 static void
 open_db(RSLensDb *lens_db)
 {
@@ -377,3 +387,14 @@
 
        return lens;
 }
+
+/**
+ * Gets the lenses in RSLensDb
+ * @param lens_db A RSLensDb
+ * @return A GList of RSLens'es
+ */
+GList *
+rs_lens_db_get_lenses(RSLensDb *lens_db)
+{
+       return lens_db->lenses;
+}

Modified: branches/rawstudio-ng-color/librawstudio/rs-lens-db.h
===================================================================
--- branches/rawstudio-ng-color/librawstudio/rs-lens-db.h       2009-12-29 
18:29:13 UTC (rev 2880)
+++ branches/rawstudio-ng-color/librawstudio/rs-lens-db.h       2009-12-29 
19:50:28 UTC (rev 2881)
@@ -40,6 +40,12 @@
 } RSLensDbClass;
 
 /**
+ * Force save of RSLensDb
+ * @param lens_db the RSLensDb to save
+ */
+void rs_lens_db_save(RSLensDb *lens_db);
+
+/**
  * Instantiate a new RSLensDb
  * @param path An absolute path to a XML-file containing the database
  * @return A new RSLensDb with a refcount of 1
@@ -75,6 +81,13 @@
  */
 RSLens *rs_lens_db_lookup_from_metadata(RSLensDb *lens_db, RSMetadata 
*metdata);
 
+/**
+ * Gets the lenses in RSLensDb
+ * @param lens_db A RSLensDb
+ * @return A GList of RSLens'es
+ */
+GList *rs_lens_db_get_lenses(RSLensDb *lens_db);
+
 G_END_DECLS
 
 #endif /* RS_LENS_DB_H */


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

Reply via email to