aboutsummaryrefslogtreecommitdiffstats
path: root/src/playlist.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-12-30 19:14:13 +0100
committerMax Kellermann <max@duempel.org>2008-12-30 19:14:13 +0100
commitbb55ec6b4ec89408e32b9af562d891c39e96501d (patch)
tree7f53818665a40809f783880229554906cd74a50f /src/playlist.h
parent7330002960d2c89081614ef5d15f2f5181e5886c (diff)
downloadmpd-bb55ec6b4ec89408e32b9af562d891c39e96501d.tar.gz
mpd-bb55ec6b4ec89408e32b9af562d891c39e96501d.tar.xz
mpd-bb55ec6b4ec89408e32b9af562d891c39e96501d.zip
command: don't allow adding local files on WIN32
There are no unix sockets on WIN32, and therefore no authentication. WIN32 might have similar capabilities, but until we implement them, disable that MPD feature.
Diffstat (limited to 'src/playlist.h')
-rw-r--r--src/playlist.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/playlist.h b/src/playlist.h
index 137475afb..a4b40f6e0 100644
--- a/src/playlist.h
+++ b/src/playlist.h
@@ -75,12 +75,14 @@ void savePlaylistState(FILE *);
void clearPlaylist(void);
+#ifndef WIN32
/**
* Appends a local file (outside the music database) to the playlist,
* but only if the file's owner is equal to the specified uid.
*/
enum playlist_result
playlist_append_file(const char *path, int uid, unsigned *added_id);
+#endif
enum playlist_result addToPlaylist(const char *file, unsigned *added_id);