[rygel] server: One class/interface per file
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] server: One class/interface per file
- Date: Tue, 4 Dec 2012 14:09:07 +0000 (UTC)
commit effbab16f94985fcb40e3fb59e40828f528d2f05
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Dec 4 15:07:03 2012 +0100
server: One class/interface per file
This stop gtk-doc (or valadoc) from getting confused.
src/librygel-server/filelist.am | 1 +
src/librygel-server/rygel-dlna-profile.vala | 45 +++++++++++++++++++++++++++
src/librygel-server/rygel-media-engine.vala | 23 --------------
3 files changed, 46 insertions(+), 23 deletions(-)
---
diff --git a/src/librygel-server/filelist.am b/src/librygel-server/filelist.am
index bca9cac..a6e9960 100644
--- a/src/librygel-server/filelist.am
+++ b/src/librygel-server/filelist.am
@@ -1,6 +1,7 @@
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 \
diff --git a/src/librygel-server/rygel-dlna-profile.vala b/src/librygel-server/rygel-dlna-profile.vala
new file mode 100644
index 0000000..5abb22e
--- /dev/null
+++ b/src/librygel-server/rygel-dlna-profile.vala
@@ -0,0 +1,45 @@
+/*
+ * 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.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);
+ }
+}
+
diff --git a/src/librygel-server/rygel-media-engine.vala b/src/librygel-server/rygel-media-engine.vala
index f3e9e70..cc7f885 100644
--- a/src/librygel-server/rygel-media-engine.vala
+++ b/src/librygel-server/rygel-media-engine.vala
@@ -20,29 +20,6 @@
* 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.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);
- }
-}
-
public errordomain Rygel.MediaEngineError {
NOT_FOUND
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]