[rygel] core: Add support for 'refID' attribute



commit 91fa00f7e1a6d744d1a407991ac4891253486e43
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Tue Apr 12 19:27:59 2011 +0300

    core: Add support for 'refID' attribute
    
    Although currently no plugin uses this, we are already adding this basic
    support to satisfy DLNA CTT test case 7.3.67.1.

 src/rygel/rygel-media-object.vala          |    1 +
 src/rygel/rygel-relational-expression.vala |    4 +++-
 2 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/rygel/rygel-media-object.vala b/src/rygel/rygel-media-object.vala
index 6f31a18..ff3ab06 100644
--- a/src/rygel/rygel-media-object.vala
+++ b/src/rygel/rygel-media-object.vala
@@ -32,6 +32,7 @@ public abstract class Rygel.MediaObject : GLib.Object {
     private static Regex host_name_regex;
 
     public string id;
+    public string ref_id;
     public string upnp_class;
     public uint64 modified;
     public Gee.ArrayList<string> uris;
diff --git a/src/rygel/rygel-relational-expression.vala b/src/rygel/rygel-relational-expression.vala
index 70f62d4..8b1295e 100644
--- a/src/rygel/rygel-relational-expression.vala
+++ b/src/rygel/rygel-relational-expression.vala
@@ -26,7 +26,7 @@ using GUPnP;
 // relational operator.
 public class Rygel.RelationalExpression :
              Rygel.SearchExpression<SearchCriteriaOp,string,string> {
-    internal const string CAPS = "@id,@parentID,upnp:class," +
+    internal const string CAPS = "@id,@parentID,@refID,upnp:class," +
                                  "dc:title,upnp:artist,upnp:album," +
                                  "dc:creator,upnp:createClass,@childCount";
 
@@ -34,6 +34,8 @@ public class Rygel.RelationalExpression :
         switch (this.operand1) {
         case "@id":
             return this.compare_string (media_object.id);
+        case "@refID":
+            return this.compare_string (media_object.ref_id);
         case "@parentID":
             return this.compare_string (media_object.parent.id);
         case "upnp:class":



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]