comparison src/xmms-sid.cc @ 56:6a3ce7260ae1

Changed some standard functions to glib ones
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 22 Jun 2003 00:17:04 +0000
parents 3518ca5c8b0f
children 85811bcd049e
comparison
equal deleted inserted replaced
55:e3708b2bbc5f 56:6a3ce7260ae1
62 static sidplay2 xs_emuEngine; 62 static sidplay2 xs_emuEngine;
63 typedef SidTune t_xs_tune; 63 typedef SidTune t_xs_tune;
64 typedef struct SidTuneInfo t_xs_tuneinfo; 64 typedef struct SidTuneInfo t_xs_tuneinfo;
65 #endif 65 #endif
66 66
67
67 static GtkWidget *xs_ctrlwin = NULL; 68 static GtkWidget *xs_ctrlwin = NULL;
68 static pthread_t xs_decode_thread; 69 static pthread_t xs_decode_thread;
69 struct t_xs_cfg xs_cfg; 70 struct t_xs_cfg xs_cfg;
71
70 72
71 struct { 73 struct {
72 gboolean isError, isPlaying, allowNext; 74 gboolean isError, isPlaying, allowNext;
73 gint currSong, nSongs; 75 gint currSong, nSongs;
74 t_xs_tune *currTune; 76 t_xs_tune *currTune;
193 } 195 }
194 196
195 delete testTune; 197 delete testTune;
196 return TRUE; 198 return TRUE;
197 #endif 199 #endif
200
198 #ifdef HAVE_SIDPLAY2 201 #ifdef HAVE_SIDPLAY2
199 #endif 202 #endif
200 } 203 }
201 204
202 /* Detect just by checking filename extension */ 205 /* Detect just by checking filename extension */
203 pcExt = strrchr(fileName, '.'); 206 pcExt = xs_strrchr(fileName, '.');
204 if (pcExt) 207 if (pcExt)
205 { 208 {
206 pcExt++; 209 pcExt++;
207 if (!strcasecmp(pcExt, "psid")) return TRUE; 210 if (!g_strcasecmp(pcExt, "psid")) return TRUE;
208 if (!strcasecmp(pcExt, "sid")) return TRUE; 211 if (!g_strcasecmp(pcExt, "sid")) return TRUE;
209 if (!strcasecmp(pcExt, "dat")) return TRUE; 212 if (!g_strcasecmp(pcExt, "dat")) return TRUE;
210 if (!strcasecmp(pcExt, "inf")) return TRUE; 213 if (!g_strcasecmp(pcExt, "inf")) return TRUE;
211 if (!strcasecmp(pcExt, "info")) return TRUE; 214 if (!g_strcasecmp(pcExt, "info")) return TRUE;
212 } 215 }
213 216
214 return FALSE; 217 return FALSE;
215 } 218 }
216 219