all: Move Rygel.DLNAProfile into core
authorJens Georg <mail@jensge.org>
Sat, 8 Feb 2014 06:32:00 +0000 (07:32 +0100)
committerJens Georg <mail@jensge.org>
Sat, 8 Feb 2014 06:32:00 +0000 (07:32 +0100)
Signed-off-by: Jens Georg <mail@jensge.org>
doc/reference/librygel-core/gtkdoc/librygel-core-docs.xml
examples/renderer-plugins/vala/example-renderer-plugin-vala.vala
src/librygel-core/filelist.am
src/librygel-core/rygel-dlna-profile.vala [moved from src/librygel-server/rygel-dlna-profile.vala with 100% similarity]
src/librygel-renderer-gst/rygel-playbin-player.vala
src/librygel-renderer/filelist.am
src/librygel-renderer/rygel-dlna-profile.vala [deleted file]
src/librygel-renderer/rygel-media-renderer-plugin.vala
src/librygel-server/filelist.am

index 41d3f08..3b73135 100644 (file)
@@ -40,6 +40,7 @@
     <xi:include href="xml/rygel-meta-config.xml"/>
     <xi:include href="xml/rygel-xml-utils.xml"/>
     <xi:include href="xml/rygel-state-machine.xml"/>
+    <xi:include href="xml/rygel-dlna-profile.xml"/>
   </chapter>
   
   <chapter id="api-main-list-dbus">
index 53f6303..d02cfe7 100644 (file)
@@ -61,9 +61,9 @@ public class Rygel.Example.RendererPluginVala : Rygel.MediaRendererPlugin {
 
     public override void constructed () {
         base.constructed ();
-        var l = new List<Rygel.Renderer.DLNAProfile> ();
-        l.prepend (new Rygel.Renderer.DLNAProfile ("JPEG_SM", "image/jpeg"));
-        l.prepend (new Rygel.Renderer.DLNAProfile ("MP3", "audio/mpeg"));
+        var l = new List<DLNAProfile> ();
+        l.prepend (new DLNAProfile ("JPEG_SM", "image/jpeg"));
+        l.prepend (new DLNAProfile ("MP3", "audio/mpeg"));
 
         this.supported_profiles = l;
     }
index 94f2caf..70c00ec 100644 (file)
@@ -6,6 +6,7 @@ LIBRYGEL_CORE_VAPI_SOURCE_FILES = \
        rygel-basic-management-test-nslookup.vala \
        rygel-basic-management-test-traceroute.vala \
        rygel-description-file.vala \
+       rygel-dlna-profile.vala \
        rygel-root-device.vala \
        rygel-root-device-factory.vala \
        rygel-dbus-interface.vala \
index defae5e..3582013 100644 (file)
@@ -29,7 +29,6 @@
 
 using Gst;
 using GUPnP;
-using Rygel.Renderer;
 
 /**
  * Implementation of RygelMediaPlayer for GStreamer.
index def56e5..3f5cb08 100644 (file)
@@ -1,7 +1,6 @@
 LIBRYGEL_RENDERER_VAPI_SOURCE_FILES = \
        rygel-media-renderer-plugin.vala \
        rygel-media-player.vala \
-       rygel-dlna-profile.vala \
        rygel-media-renderer.vala
 
 LIBRYGEL_RENDERER_NONVAPI_SOURCE_FILES = \
diff --git a/src/librygel-renderer/rygel-dlna-profile.vala b/src/librygel-renderer/rygel-dlna-profile.vala
deleted file mode 100644 (file)
index 9a4743a..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright (C) 2012 Intel Corporation.
- *
- * Author: Jens Georg <jensg@openismus.com>
- *
- * This file is part of Rygel.
- *
- * Rygel is free software; you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * Rygel is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public License
- * along with this program; if not, write to the Free Software Foundation,
- * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- */
-
-/**
- * Data class representing a DLNA profile.
- * It contains the name and the corresponding DLNA mime type.
- *
- * Note: The mime type can deviate from mime types typically used elsewhere.
- */
-public class Rygel.Renderer.DLNAProfile {
-    public string mime;
-    public string name;
-
-    public DLNAProfile (string name, string mime) {
-        this.mime = mime;
-        this.name = name;
-    }
-
-    /**
-     * Compare two DLNA profiles by name
-     */
-    public static int compare_by_name (DLNAProfile a, DLNAProfile b) {
-        return a.name.ascii_casecmp (b.name);
-    }
-}
index ebb0ebe..c6abf2c 100644 (file)
@@ -22,8 +22,6 @@
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  */
 
-using Rygel.Renderer;
-
 /**
  * This is the base class for every Rygel UPnP renderer plugin.
  *
index 4aa3fb9..f40d699 100644 (file)
@@ -1,7 +1,6 @@
 
 LIBRYGEL_SERVER_VAPI_SOURCE_FILES = \
        rygel-audio-item.vala \
-       rygel-dlna-profile.vala \
        rygel-image-item.vala \
        rygel-logical-expression.vala \
        rygel-media-art-store.vala \