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;
}
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 \
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 = \
+++ /dev/null
-/*
- * 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);
- }
-}