[rygel] core: Delegate search critera in basic searching
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core: Delegate search critera in basic searching
- Date: Sun, 12 Aug 2012 17:53:57 +0000 (UTC)
commit c64819f24862cb0bfde662af9340ebe5d7f204d2
Author: Jens Georg <mail jensge org>
Date: Tue Aug 7 23:57:10 2012 +0200
core: Delegate search critera in basic searching
.../rygel-searchable-container.vala | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/src/librygel-server/rygel-searchable-container.vala b/src/librygel-server/rygel-searchable-container.vala
index 60d61b0..2d09c2e 100644
--- a/src/librygel-server/rygel-searchable-container.vala
+++ b/src/librygel-server/rygel-searchable-container.vala
@@ -105,6 +105,7 @@ public interface Rygel.SearchableContainer : MediaContainer {
var child_results = yield this.search_in_children (expression,
children,
child_limit,
+ sort_criteria,
cancellable);
result.add_all (child_results);
}
@@ -169,11 +170,13 @@ public interface Rygel.SearchableContainer : MediaContainer {
}
}
- private async MediaObjects search_in_children (SearchExpression expression,
- MediaObjects children,
- uint limit,
- Cancellable? cancellable)
- throws Error {
+ private async MediaObjects search_in_children
+ (SearchExpression expression,
+ MediaObjects children,
+ uint limit,
+ string sort_criteria,
+ Cancellable? cancellable)
+ throws Error {
var result = new MediaObjects ();
foreach (var child in children) {
@@ -185,7 +188,7 @@ public interface Rygel.SearchableContainer : MediaContainer {
0,
limit,
out tmp,
- "",
+ sort_criteria,
cancellable);
result.add_all (child_result);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]