From 2f0e5bfd8546f91bf0fed17d7ba68545fd4c43ef Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 26 Jan 2008 12:46:49 +0000 Subject: addToPlaylist/addSongToPlaylist: printId argument changed to added_id Instead of printing out the Id from playlist.c, instead set the integer that added_id poitns to if added_id is non-NULL. This makes the API cleaner and will allow us to use additional commands to manipulate the newly-added song_id. Callers (handleAddId) that relied on printId to print it to the given fd have now been modified to print the ID at a higher-level; making playlist.c less-dependent on protocol details. git-svn-id: https://svn.musicpd.org/mpd/trunk@7149 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/playlist.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/playlist.h') diff --git a/src/playlist.h b/src/playlist.h index a26b7f45f..2e5ccf9ab 100644 --- a/src/playlist.h +++ b/src/playlist.h @@ -57,11 +57,11 @@ int clearPlaylist(int fd); int clearStoredPlaylist(int fd, char *utf8file); -int addToPlaylist(int fd, char *file, int printId); +int addToPlaylist(int fd, char *file, int *added_id); int addToStoredPlaylist(int fd, char *file, char *utf8file); -int addSongToPlaylist(int fd, Song * song, int printId); +int addSongToPlaylist(int fd, Song * song, int *added_id); int showPlaylist(int fd); -- cgit v1.2.3