* Recursively searches for all media objects the satisfy the given search
* expression in this container.
*
- * @param expression the search expression
+ * @param expression the search expression or `null` for wildcard
* @param offet zero-based index of the first object to return
* @param max_count maximum number of objects to return
* @param total_matches sets it to the actual number of objects that satisfy
}
// Then check if child itself satisfies search criteria
- if (expression.satisfied_by (child)) {
+ if (expression == null || expression.satisfied_by (child)) {
result.add (child);
}
// This implementation is not really async
public async void run () {
+ if (this.str == "*") {
+ // Wildcard
+ this.completed ();
+ }
+
var parser = new GUPnP.SearchCriteriaParser ();
parser.expression.connect (this.on_expression);