comparison Plugins/General/scrobbler/xmms_scrobbler.c @ 1189:22707aa5ea6f trunk

[svn] - update this
author nenolod
date Sun, 11 Jun 2006 23:51:55 -0700
parents 4c58ab006563
children fc478bfe6fe6
comparison
equal deleted inserted replaced
1188:35dc5d2a1675 1189:22707aa5ea6f
37 static void init(void); 37 static void init(void);
38 static void cleanup(void); 38 static void cleanup(void);
39 static void *xs_thread(void *); 39 static void *xs_thread(void *);
40 static void *hs_thread(void *); 40 static void *hs_thread(void *);
41 static int going; 41 static int going;
42 static gint sc_id; 42 static GtkWidget *cfgdlg;
43 43
44 static GThread *pt_scrobbler; 44 static GThread *pt_scrobbler;
45 static GMutex *m_scrobbler; 45 static GMutex *m_scrobbler;
46 static GThread *pt_handshake; 46 static GThread *pt_handshake;
47 47
61 { 61 {
62 char *username = NULL, *password = NULL; 62 char *username = NULL, *password = NULL;
63 ConfigDb *cfgfile; 63 ConfigDb *cfgfile;
64 going = 1; 64 going = 1;
65 GError **moo = NULL; 65 GError **moo = NULL;
66 GtkWidget *cfgdlg = create_cfgdlg(); 66 cfgdlg = create_cfgdlg();
67 67
68 sc_id = prefswin_page_new(cfgdlg, "Last.FM", DATA_DIR "/images/audioscrobbler.png"); 68 prefswin_page_new(cfgdlg, "Last.FM", DATA_DIR "/images/audioscrobbler.png");
69 69
70 if ((cfgfile = bmp_cfg_db_open()) != NULL) { 70 if ((cfgfile = bmp_cfg_db_open()) != NULL) {
71 bmp_cfg_db_get_string(cfgfile, "audioscrobbler", "username", 71 bmp_cfg_db_get_string(cfgfile, "audioscrobbler", "username",
72 &username); 72 &username);
73 bmp_cfg_db_get_string(cfgfile, "audioscrobbler", "password", 73 bmp_cfg_db_get_string(cfgfile, "audioscrobbler", "password",
112 pdebug("joining threads", DEBUG); 112 pdebug("joining threads", DEBUG);
113 g_thread_join(pt_scrobbler); 113 g_thread_join(pt_scrobbler);
114 114
115 g_thread_join(pt_handshake); 115 g_thread_join(pt_handshake);
116 116
117 prefswin_page_destroy(sc_id); 117 prefswin_page_destroy(cfgdlg);
118 118
119 sc_cleaner(); 119 sc_cleaner();
120 } 120 }
121 121
122 static char ishttp(const char *a) 122 static char ishttp(const char *a)