From 78c5f37d50ed5687bd5525954838f62b50de0690 Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Thu, 6 Jan 2011 04:01:17 +0100 Subject: 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 --- music.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'music.h') 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 find_artist(const std::string artist); + std::vector find(const std::map search); + std::vector find(std::string search); void begin_update(const std::string path); void update(const MusicDirectory& dir); }; -- cgit v1.2.3