aboutsummaryrefslogtreecommitdiffstats
path: root/src/DatabaseSelection.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/DatabaseSelection.hxx')
-rw-r--r--src/DatabaseSelection.hxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/DatabaseSelection.hxx b/src/DatabaseSelection.hxx
index 3e5232288..35e2c27c9 100644
--- a/src/DatabaseSelection.hxx
+++ b/src/DatabaseSelection.hxx
@@ -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);
}
};