# HG changeset patch # User Matti Hamalainen # Date 1190749951 -10800 # Node ID 1f7c00c1de228bae40efb648ef0341d992d56fce # Parent 8c463343878562b516eccfbc00e483d1083a5daf Use gchar consistently. diff -r 8c4633438785 -r 1f7c00c1de22 src/audacious/playlist_container.c --- a/src/audacious/playlist_container.c Tue Sep 25 22:34:52 2007 +0300 +++ b/src/audacious/playlist_container.c Tue Sep 25 22:52:31 2007 +0300 @@ -40,7 +40,7 @@ registered_plcs = g_list_remove(registered_plcs, plc); } -PlaylistContainer *playlist_container_find(char *ext) +PlaylistContainer *playlist_container_find(gchar *ext) { GList *node; PlaylistContainer *plc; @@ -58,9 +58,9 @@ return NULL; } -void playlist_container_read(char *filename, gint pos) +void playlist_container_read(gchar *filename, gint pos) { - char *ext = strrchr(filename, '.') + 1; /* optimization: skip past the dot -nenolod */ + gchar *ext = strrchr(filename, '.') + 1; /* optimization: skip past the dot -nenolod */ PlaylistContainer *plc = playlist_container_find(ext); if (plc->plc_read == NULL) @@ -69,9 +69,9 @@ plc->plc_read(filename, pos); } -void playlist_container_write(char *filename, gint pos) +void playlist_container_write(gchar *filename, gint pos) { - char *ext = strrchr(filename, '.') + 1; /* optimization: skip past the dot -nenolod */ + gchar *ext = strrchr(filename, '.') + 1; /* optimization: skip past the dot -nenolod */ PlaylistContainer *plc = playlist_container_find(ext); if (plc->plc_write == NULL) @@ -80,9 +80,9 @@ plc->plc_write(filename, pos); } -gboolean is_playlist_name(char *filename) +gboolean is_playlist_name(gchar *filename) { - char *ext = strrchr(filename, '.') + 1; /* optimization: skip past the dot -nenolod */ + gchar *ext = strrchr(filename, '.') + 1; /* optimization: skip past the dot -nenolod */ PlaylistContainer *plc = playlist_container_find(ext); if (plc != NULL) diff -r 8c4633438785 -r 1f7c00c1de22 src/audacious/playlist_container.h --- a/src/audacious/playlist_container.h Tue Sep 25 22:34:52 2007 +0300 +++ b/src/audacious/playlist_container.h Tue Sep 25 22:52:31 2007 +0300 @@ -25,8 +25,8 @@ G_BEGIN_DECLS struct _PlaylistContainer { - char *name; /* human-readable name */ - char *ext; /* extension */ + gchar *name; /* human-readable name */ + gchar *ext; /* extension */ void (*plc_read)(const gchar *filename, gint pos); /* plc_load */ void (*plc_write)(const gchar *filename, gint pos); /* plc_write */ }; @@ -37,9 +37,9 @@ extern void playlist_container_register(PlaylistContainer *plc); extern void playlist_container_unregister(PlaylistContainer *plc); -extern void playlist_container_read(char *filename, gint pos); -extern void playlist_container_write(char *filename, gint pos); -extern PlaylistContainer *playlist_container_find(char *ext); +extern void playlist_container_read(gchar *filename, gint pos); +extern void playlist_container_write(gchar *filename, gint pos); +extern PlaylistContainer *playlist_container_find(gchar *ext); G_END_DECLS