From 7a8a9c10e1ea06b6ee2d79da83fa82cbddb5449f Mon Sep 17 00:00:00 2001 From: "J. Alexander Treuman" <jat@spatialrift.net> Date: Wed, 25 Apr 2007 23:46:11 +0000 Subject: Adding count command. It's usage is identical to find, but instead of returning a list of matching songs, the number of results and total play time of the results are returned. git-svn-id: https://svn.musicpd.org/mpd/trunk@5950 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/dbUtils.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/dbUtils.h') diff --git a/src/dbUtils.h b/src/dbUtils.h index 722ff15b0..0607bc3b5 100644 --- a/src/dbUtils.h +++ b/src/dbUtils.h @@ -32,10 +32,13 @@ int addAllInToStoredPlaylist(int fd, char *name, char *utf8file); int printInfoForAllIn(int fd, char *name); int searchForSongsIn(int fd, char *name, int numItems, - LocateTagItem * items); + LocateTagItem * items); int findSongsIn(int fd, char *name, int numItems, LocateTagItem * items); +int searchStatsForSongsIn(int fd, char *name, int numItems, + LocateTagItem * items); + int countSongsIn(int fd, char *name); unsigned long sumSongTimesIn(int fd, char *name); -- cgit v1.2.3