aboutsummaryrefslogtreecommitdiffstats
path: root/src/dbUtils.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-09-07 13:53:55 +0200
committerMax Kellermann <max@duempel.org>2008-09-07 13:53:55 +0200
commitdc8b64fdef1f8bc4499eef3aca17ed336ea3569b (patch)
treeba98b059e544ddecd774bd4c97ce66898cba3be0 /src/dbUtils.h
parent5609a1fcd09c498fdcdfe0f535052e8d8c3ef05c (diff)
downloadmpd-dc8b64fdef1f8bc4499eef3aca17ed336ea3569b.tar.gz
mpd-dc8b64fdef1f8bc4499eef3aca17ed336ea3569b.tar.xz
mpd-dc8b64fdef1f8bc4499eef3aca17ed336ea3569b.zip
pass "struct client" to dbUtils.c, song.c, tag_print.c
Don't pass the raw file descriptor around. This migration patch is rather large, because all of the sources have inter dependencies - we have to change all of them at the same time.
Diffstat (limited to 'src/dbUtils.h')
-rw-r--r--src/dbUtils.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/dbUtils.h b/src/dbUtils.h
index 592b62e95..2cc7b9f25 100644
--- a/src/dbUtils.h
+++ b/src/dbUtils.h
@@ -21,27 +21,30 @@
#include "locate.h"
-int printAllIn(int fd, const char *name);
+struct client;
+
+int printAllIn(struct client *client, const char *name);
int addAllIn(const char *name);
int addAllInToStoredPlaylist(const char *name, const char *utf8file);
-int printInfoForAllIn(int fd, const char *name);
+int printInfoForAllIn(struct client *client, const char *name);
-int searchForSongsIn(int fd, const char *name, int numItems,
- LocateTagItem * items);
+int searchForSongsIn(struct client *client, const char *name,
+ int numItems, LocateTagItem * items);
-int findSongsIn(int fd, const char *name, int numItems, LocateTagItem * items);
+int findSongsIn(struct client *client, const char *name,
+ int numItems, LocateTagItem * items);
-int searchStatsForSongsIn(int fd, const char *name, int numItems,
- LocateTagItem * items);
+int searchStatsForSongsIn(struct client *client, const char *name,
+ int numItems, LocateTagItem * items);
int countSongsIn(const char *name);
unsigned long sumSongTimesIn(const char *name);
-int listAllUniqueTags(int fd, int type, int numConditiionals,
+int listAllUniqueTags(struct client *client, int type, int numConditiionals,
LocateTagItem * conditionals);
void printSavedMemoryFromFilenames(void);