summaryrefslogtreecommitdiff
path: root/music.h
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2011-01-06 04:01:17 +0100
committerJon Bergli Heier <snakebite@jvnv.net>2011-01-06 04:05:46 +0100
commit78c5f37d50ed5687bd5525954838f62b50de0690 (patch)
tree2def0d74af305f040f6e48e8f644621cd8add64e /music.h
parente755f01e631e832e3ef529049888d62af38d2b38 (diff)
Reworked "find" to allow for more sophisticated searches.
The usage of the "find" command is as follows: find SEARCH where SEARCH is either a simple string to search for, or key:value pairs with the following keys: artist album title
Diffstat (limited to 'music.h')
-rw-r--r--music.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/music.h b/music.h
index ed47657..f7d06bd 100644
--- a/music.h
+++ b/music.h
@@ -43,7 +43,8 @@ namespace music {
MusicListing::p get(const HTTP::Connection::PathList& path);
MusicListing::p get(const std::string& path);
MusicDirectory::p get_directory(const std::string& path);
- std::vector<MusicListing::p> find_artist(const std::string artist);
+ std::vector<MusicListing::p> find(const std::map<std::string, std::string> search);
+ std::vector<MusicListing::p> find(std::string search);
void begin_update(const std::string path);
void update(const MusicDirectory& dir);
};