public const string UPNP_TYPE_V1 =
"urn:schemas-upnp-org:service:ContentDirectory:1";
public const string DESCRIPTION_PATH = "xml/ContentDirectory.xml";
- private const string SEARCH_CAPS = "@id,@parentID,@refID," +
- "upnp:class,dc:title,dc:creator," +
- "res,res@protocolInfo";
protected string feature_list;
protected string sort_caps;
private void get_search_capabilities_cb (Service content_dir,
owned ServiceAction action) {
/* Set action return arguments */
- action.set ("SearchCaps", typeof (string), SEARCH_CAPS);
+ action.set ("SearchCaps", typeof (string), RelationalExpression.CAPS);
action.return ();
}
ref GLib.Value value) {
/* Set action return arguments */
value.init (typeof (string));
- value.set_string (SEARCH_CAPS);
+ value.set_string (RelationalExpression.CAPS);
}
/* action GetSortCapabilities implementation */
// relational operator.
public class Rygel.RelationalExpression :
Rygel.SearchExpression<SearchCriteriaOp,string,string> {
+ internal const string CAPS = "@id,@parentID,@refID," +
+ "upnp:class,dc:title,dc:creator," +
+ "res,res@protocolInfo";
+
public override bool satisfied_by (MediaObject media_object) {
switch (this.operand1) {
case "@id":