directory: don't pass fd to traverseAllIn()
This patch continues the work of the previous patch: don't pass a file descriptor at all to traverseAllIn(). Since this fd was only used to report "directory not found" errors, we can easily move that check to the caller. This is a great relief, since it removes the dependency on a client connection from a lot of enumeration functions.
This commit is contained in:
+4
-4
@@ -23,9 +23,9 @@
|
||||
|
||||
int printAllIn(int fd, const char *name);
|
||||
|
||||
int addAllIn(int fd, const char *name);
|
||||
int addAllIn(const char *name);
|
||||
|
||||
int addAllInToStoredPlaylist(int fd, const char *name, const char *utf8file);
|
||||
int addAllInToStoredPlaylist(const char *name, const char *utf8file);
|
||||
|
||||
int printInfoForAllIn(int fd, const char *name);
|
||||
|
||||
@@ -37,9 +37,9 @@ int findSongsIn(int fd, const char *name, int numItems, LocateTagItem * items);
|
||||
int searchStatsForSongsIn(int fd, const char *name, int numItems,
|
||||
LocateTagItem * items);
|
||||
|
||||
int countSongsIn(int fd, const char *name);
|
||||
int countSongsIn(const char *name);
|
||||
|
||||
unsigned long sumSongTimesIn(int fd, const char *name);
|
||||
unsigned long sumSongTimesIn(const char *name);
|
||||
|
||||
int listAllUniqueTags(int fd, int type, int numConditiionals,
|
||||
LocateTagItem * conditionals);
|
||||
|
||||
Reference in New Issue
Block a user