DatabaseSelection: add "match" attribute

Let the database plugin do the match.
This commit is contained in:
Max Kellermann
2012-08-07 23:22:37 +02:00
parent 8d2725234e
commit 733d6a6b16
12 changed files with 57 additions and 97 deletions

View File

@@ -25,6 +25,8 @@
#include <assert.h>
#include <stddef.h>
struct locate_item_list;
struct DatabaseSelection {
/**
* The base URI of the search (UTF-8). Must not begin or end
@@ -38,8 +40,11 @@ struct DatabaseSelection {
*/
bool recursive;
DatabaseSelection(const char *_uri, bool _recursive)
:uri(_uri), recursive(_recursive) {
const locate_item_list *match;
DatabaseSelection(const char *_uri, bool _recursive,
const locate_item_list *_match=nullptr)
:uri(_uri), recursive(_recursive), match(_match) {
assert(uri != NULL);
}
};