ls: don't pass "fd" to lsPlaylists(), printRemoteUrlHandlers()

Pass the client struct instead of the raw file descriptor.
This commit is contained in:
Max Kellermann
2008-09-07 14:02:40 +02:00
parent 4665f2bf32
commit 438b56f0ba
3 changed files with 12 additions and 10 deletions
+4 -2
View File
@@ -21,7 +21,9 @@
#include "decoder_list.h"
int lsPlaylists(int fd, const char *utf8path);
struct client;
int lsPlaylists(struct client *client, const char *utf8path);
const char *getSuffix(const char *utf8file);
@@ -40,7 +42,7 @@ struct decoder_plugin *hasMusicSuffix(const char *utf8file, unsigned int next);
struct decoder_plugin *isMusic(const char *utf8file, time_t * mtime,
unsigned int next);
int printRemoteUrlHandlers(int fd);
int printRemoteUrlHandlers(struct client *client);
int isFile(const char *utf8file, time_t * mtime);