commit e2161d2991db4471600e8edf019e1b5905927b89 Author: Nathaniel McCallum <nathan...@natemccallum.com> Date: Thu Mar 25 12:36:49 2010 -0400
expose itdb_photodb_photoalbum_free (make non-static) src/itdb.h | 1 + src/itdb_photoalbum.c | 10 +++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) --- diff --git a/src/itdb.h b/src/itdb.h index 2ee3c3e..006860d 100644 --- a/src/itdb.h +++ b/src/itdb.h @@ -1918,6 +1918,7 @@ Itdb_PhotoAlbum *itdb_photodb_photoalbum_create (Itdb_PhotoDB *db, gint pos); Itdb_PhotoDB *itdb_photodb_create (const gchar *mountpoint); Itdb_PhotoAlbum *itdb_photodb_photoalbum_new (const gchar *albumname); +void itdb_photodb_photoalbum_free (Itdb_PhotoAlbum *album); void itdb_photodb_photoalbum_add (Itdb_PhotoDB *db, Itdb_PhotoAlbum *album, gint pos); void itdb_photodb_free (Itdb_PhotoDB *photodb); gboolean itdb_photodb_write (Itdb_PhotoDB *photodb, GError **error); diff --git a/src/itdb_photoalbum.c b/src/itdb_photoalbum.c index 680424a..6495939 100644 --- a/src/itdb_photoalbum.c +++ b/src/itdb_photoalbum.c @@ -91,9 +91,7 @@ saved (itdb_device_write_sysinfo() is called). */ - static Itdb_PhotoDB *itdb_photodb_new (void); -static void itdb_photodb_photoalbum_free (Itdb_PhotoAlbum *pa); /* Set @error with standard error message */ static void error_no_photos_dir (const gchar *mp, GError **error) @@ -337,7 +335,13 @@ G_GNUC_INTERNAL gint itdb_get_max_photo_id ( Itdb_PhotoDB *db ) return max_seen_id; } -static void itdb_photodb_photoalbum_free (Itdb_PhotoAlbum *album) +/** + * itdb_photodb_photoalbum_free: + * @album: an #Itdb_PhotoAlbum + * + * Frees the memory used by @album + */ +void itdb_photodb_photoalbum_free (Itdb_PhotoAlbum *album) { if (album) { ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ gtkpod-cvs2 mailing list gtkpod-cvs2@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2