diff options
author | Max Kellermann <max@duempel.org> | 2008-09-07 13:37:04 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-09-07 13:37:04 +0200 |
commit | dc353eca802d8889dd868188d977fb0957cc8554 (patch) | |
tree | 16c63765590929f028a166c58413dca7da8d8890 /src/playlist.h | |
parent | 59efed3e8e3da3be85fada02a533cb79fba21569 (diff) |
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.
Diffstat (limited to 'src/playlist.h')
-rw-r--r-- | src/playlist.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/playlist.h b/src/playlist.h index 33b3bb2b6..92378eeb2 100644 --- a/src/playlist.h +++ b/src/playlist.h @@ -137,6 +137,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); #endif |