changeset 3634:1f7c00c1de22

Use gchar consistently.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 25 Sep 2007 22:52:31 +0300
parents 8c4633438785
children b20e98407a30
files src/audacious/playlist_container.c src/audacious/playlist_container.h
diffstat 2 files changed, 12 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- 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)
--- 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