[rygel] core: Synchronous SearchExpression.satisfied_by()
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [rygel] core: Synchronous SearchExpression.satisfied_by()
- Date: Mon, 9 Nov 2009 18:46:11 +0000 (UTC)
commit c88f0555b83590864400570c78558b949b428a44
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Wed Nov 4 04:08:05 2009 +0200
core: Synchronous SearchExpression.satisfied_by()
SearchExpression.satisfied_by() doesn't need to be async.
src/rygel/rygel-search-criteria-parser.vala | 4 ++--
src/rygel/rygel-search-expression.vala | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/rygel/rygel-search-criteria-parser.vala b/src/rygel/rygel-search-criteria-parser.vala
index c95f126..4ce227d 100644
--- a/src/rygel/rygel-search-criteria-parser.vala
+++ b/src/rygel/rygel-search-criteria-parser.vala
@@ -150,7 +150,7 @@ internal class Rygel.SearchCriteriaParser : Object, StateMachine {
private class Rygel.OpenningBrace: Rygel.SearchExpression<void *,
void *,
void *> {
- public override async bool satisfied_by (MediaObject media_object) {
+ public override bool satisfied_by (MediaObject media_object) {
assert_not_reached ();
}
@@ -162,7 +162,7 @@ private class Rygel.OpenningBrace: Rygel.SearchExpression<void *,
private class Rygel.ClosingBrace: Rygel.SearchExpression<void *,
void *,
void *> {
- public override async bool satisfied_by (MediaObject media_object) {
+ public override bool satisfied_by (MediaObject media_object) {
assert_not_reached ();
}
diff --git a/src/rygel/rygel-search-expression.vala b/src/rygel/rygel-search-expression.vala
index 4b65da7..01f5790 100644
--- a/src/rygel/rygel-search-expression.vala
+++ b/src/rygel/rygel-search-expression.vala
@@ -36,14 +36,14 @@ public abstract class Rygel.SearchExpression<G,H,I> {
public H operand1;
public I operand2;
- public abstract async bool satisfied_by (MediaObject media_object);
+ public abstract bool satisfied_by (MediaObject media_object);
public abstract string to_string ();
}
public class Rygel.AtomicExpression :
Rygel.SearchExpression<SearchCriteriaOp,string,string> {
- public override async bool satisfied_by (MediaObject media_object) {
+ public override bool satisfied_by (MediaObject media_object) {
switch (this.operand1) {
case "@id":
return this.compare_string (media_object.id);
@@ -114,7 +114,7 @@ public class Rygel.LogicalExpression :
Rygel.SearchExpression<LogicalOperator,
SearchExpression,
SearchExpression> {
- public override async bool satisfied_by (MediaObject media_object) {
+ public override bool satisfied_by (MediaObject media_object) {
return true;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]