diff options
| author | Jon Bergli Heier <snakebite@jvnv.net> | 2011-01-06 04:01:17 +0100 | 
|---|---|---|
| committer | Jon Bergli Heier <snakebite@jvnv.net> | 2011-01-06 04:05:46 +0100 | 
| commit | 78c5f37d50ed5687bd5525954838f62b50de0690 (patch) | |
| tree | 2def0d74af305f040f6e48e8f644621cd8add64e /music.h | |
| parent | e755f01e631e832e3ef529049888d62af38d2b38 (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.h | 3 | 
1 files changed, 2 insertions, 1 deletions
@@ -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);  };  | 
