aboutsummaryrefslogtreecommitdiffstats
path: root/src/dbUtils.h
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2007-04-25 23:46:11 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2007-04-25 23:46:11 +0000
commit7a8a9c10e1ea06b6ee2d79da83fa82cbddb5449f (patch)
tree01974e42655e31766eb440f33b72edbd492df599 /src/dbUtils.h
parent7fd9859540ccef194452d3d2ad3e089d7f44123f (diff)
downloadmpd-7a8a9c10e1ea06b6ee2d79da83fa82cbddb5449f.tar.gz
mpd-7a8a9c10e1ea06b6ee2d79da83fa82cbddb5449f.tar.xz
mpd-7a8a9c10e1ea06b6ee2d79da83fa82cbddb5449f.zip
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
Diffstat (limited to 'src/dbUtils.h')
-rw-r--r--src/dbUtils.h5
1 files changed, 4 insertions, 1 deletions
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);