From b3a40661ffb4a0da1aefc7e7151bbf9e82f23cef Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 7 Sep 2008 13:37:04 +0200 Subject: playlist: added is_valid_playlist_name() The function valid_playlist_name() checks the name, but it insists on reporting an eventual error to the client. The new function is_valid_playlist_name() is more generic: it just returns a boolean, and does not care what the caller will use it for. The old function valid_playlist_name() will be removed later. --- src/playlist.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/playlist.h') diff --git a/src/playlist.h b/src/playlist.h index c144d4ab4..83b02fd08 100644 --- a/src/playlist.h +++ b/src/playlist.h @@ -126,6 +126,8 @@ void searchForSongsInPlaylist(int fd, int numItems, LocateTagItem * items); void findSongsInPlaylist(int fd, int numItems, LocateTagItem * items); +int is_valid_playlist_name(const char *utf8path); + int valid_playlist_name(int err_fd, const char *utf8path); struct mpd_tag *playlist_current_tag(void); -- cgit v1.2.3