aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-07 13:53:55 +0200
committerMax Kellermann <max@duempel.org>2008-09-07 13:53:55 +0200
commitdc8b64fdef1f8bc4499eef3aca17ed336ea3569b (patch)
treeba98b059e544ddecd774bd4c97ce66898cba3be0 /src/playlist.h
parent5609a1fcd09c498fdcdfe0f535052e8d8c3ef05c (diff)
downloadmpd-dc8b64fdef1f8bc4499eef3aca17ed336ea3569b.tar.gz
mpd-dc8b64fdef1f8bc4499eef3aca17ed336ea3569b.tar.xz
mpd-dc8b64fdef1f8bc4499eef3aca17ed336ea3569b.zip
pass "struct client" to dbUtils.c, song.c, tag_print.c
Don't pass the raw file descriptor around. This migration patch is rather large, because all of the sources have inter dependencies - we have to change all of them at the same time.
Diffstat (limited to 'src/playlist.h')
-rw-r--r--src/playlist.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/playlist.h b/src/playlist.h
index c013fee9e..4e160cf14 100644
--- a/src/playlist.h
+++ b/src/playlist.h
@@ -79,9 +79,9 @@ enum playlist_result deleteFromPlaylist(int song);
enum playlist_result deleteFromPlaylistById(int song);
-enum playlist_result playlistInfo(int fd, int song);
+enum playlist_result playlistInfo(struct client *client, int song);
-enum playlist_result playlistId(int fd, int song);
+enum playlist_result playlistId(struct client *client, int song);
void stopPlaylist(void);
@@ -137,15 +137,17 @@ enum playlist_result seekSongInPlaylistById(int id, float seek_time);
void playlistVersionChange(void);
-int playlistChanges(int fd, mpd_uint32 version);
+int playlistChanges(struct client *client, mpd_uint32 version);
int playlistChangesPosId(int fd, mpd_uint32 version);
-int PlaylistInfo(int fd, const char *utf8file, int detail);
+int PlaylistInfo(struct client *client, const char *utf8file, int detail);
-void searchForSongsInPlaylist(int fd, int numItems, LocateTagItem * items);
+void searchForSongsInPlaylist(struct client *client,
+ int numItems, LocateTagItem * items);
-void findSongsInPlaylist(int fd, int numItems, LocateTagItem * items);
+void findSongsInPlaylist(struct client *client,
+ int numItems, LocateTagItem * items);
int is_valid_playlist_name(const char *utf8path);