# HG changeset patch # User nenolod # Date 1180420142 25200 # Node ID 3506c611a802b903a65409de79e3982bdc0bfb62 # Parent bca08b1c2d168a9f12bb4a8cfa46b40395c0fa7e [svn] - fix registration of lastfm session ID diff -r bca08b1c2d16 -r 3506c611a802 ChangeLog --- a/ChangeLog Mon May 28 23:16:25 2007 -0700 +++ b/ChangeLog Mon May 28 23:29:02 2007 -0700 @@ -1,3 +1,11 @@ +2007-05-29 06:16:25 +0000 William Pitcock + revision [2464] + - expose lastfm internal data over mowgli's global storage subsystem so that plugins can manipulate lastfm listening indirectly + + trunk/src/lastfm/lastfm.c | 5 +++++ + 1 file changed, 5 insertions(+) + + 2007-05-28 10:15:02 +0000 William Pitcock revision [2462] - mms: convert to plugin2 architecture diff -r bca08b1c2d16 -r 3506c611a802 src/lastfm/lastfm.c --- a/src/lastfm/lastfm.c Mon May 28 23:16:25 2007 -0700 +++ b/src/lastfm/lastfm.c Mon May 28 23:29:02 2007 -0700 @@ -38,13 +38,6 @@ return size * nmemb; } -int max(int a,int b) -{ - if(a>b) - return a; - return b; -} - gint get_data_from_url(gchar buf[4096], GString * res) { CURL *curl = curl_easy_init(); @@ -109,12 +102,13 @@ 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); + + return (gboolean) TRUE; } static gboolean lastfm_adjust(const gchar * url)