changeset 1149:bca08b1c2d16 trunk

[svn] - expose lastfm internal data over mowgli's global storage subsystem so that plugins can manipulate lastfm listening indirectly
author nenolod
date Mon, 28 May 2007 23:16:25 -0700
parents 884966a37b7b
children 3506c611a802
files ChangeLog src/lastfm/lastfm.c
diffstat 2 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon May 28 03:15:02 2007 -0700
+++ b/ChangeLog	Mon May 28 23:16:25 2007 -0700
@@ -1,3 +1,11 @@
+2007-05-28 10:15:02 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
+  revision [2462]
+  - mms: convert to plugin2 architecture
+  
+  trunk/src/mms/mms.c |   14 +-------------
+  1 file changed, 1 insertion(+), 13 deletions(-)
+
+
 2007-05-28 10:14:08 +0000  William Pitcock <nenolod@sacredspiral.co.uk>
   revision [2460]
   - lastfm: convert to plugin2 architecture
--- a/src/lastfm/lastfm.c	Mon May 28 03:15:02 2007 -0700
+++ b/src/lastfm/lastfm.c	Mon May 28 23:16:25 2007 -0700
@@ -110,6 +110,11 @@
 	g_strfreev(split);
 	g_string_erase(res, 0, -1);
 	return (gboolean) TRUE;
+
+	if (mowgli_global_storage_get("lastfm_session_id"))
+		mowgli_global_storage_free("lastfm_session_id");
+
+	mowgli_global_storage_put("lastfm_session_id", LastFMGlobalData->lastfm_session_id);
 }
 
 static gboolean lastfm_adjust(const gchar * url)