comparison src/scrobbler/plugin.c @ 2328:224727e6c73d

if apply_timeout hasn't passed before cleanup, save password during cleanup; minor changes to saveconfig()
author Tomasz Mon <desowin@gmail.com>
date Fri, 18 Jan 2008 18:56:34 +0100
parents d7c321957be8
children 42a5c9d5830b
comparison
equal deleted inserted replaced
2327:5001f409c454 2328:224727e6c73d
21 #include <string.h> 21 #include <string.h>
22 #include <ctype.h> 22 #include <ctype.h>
23 #include <wchar.h> 23 #include <wchar.h>
24 #include <sys/time.h> 24 #include <sys/time.h>
25 25
26 #include "plugin.h"
26 #include "scrobbler.h" 27 #include "scrobbler.h"
27 #include "gerpok.h" 28 #include "gerpok.h"
28 #include "gtkstuff.h" 29 #include "gtkstuff.h"
29 #include "config.h" 30 #include "config.h"
30 #include "fmt.h" 31 #include "fmt.h"
31 #include "configure.h" 32 #include "configure.h"
32 33
33 #define XS_CS xmms_scrobbler.xmms_session
34 #define XS_SLEEP 1 34 #define XS_SLEEP 1
35 #define HS_SLEEP 10 35 #define HS_SLEEP 10
36 36
37 typedef struct submit_t 37 typedef struct submit_t
38 { 38 {
220 } 220 }
221 221
222 static void cleanup(void) 222 static void cleanup(void)
223 { 223 {
224 stop(); 224 stop();
225 configure_cleanup();
225 aud_prefswin_page_destroy(cfgdlg); 226 aud_prefswin_page_destroy(cfgdlg);
226 } 227 }
227 228
228 static void *xs_thread(void *data __attribute__((unused))) 229 static void *xs_thread(void *data __attribute__((unused)))
229 { 230 {