all: Remove Freedesktop interfaces from core
authorJens Georg <mail@jensge.org>
Sat, 25 May 2013 06:35:23 +0000 (15:35 +0900)
committerJens Georg <mail@jensge.org>
Sat, 8 Feb 2014 05:46:15 +0000 (06:46 +0100)
They're used in two plug-ins only and are a pain in the donkey when doing
gobject-introspection.

Signed-off-by: Jens Georg <mail@jensge.org>
doc/reference/librygel-core/gtkdoc/librygel-core-docs.xml
src/librygel-core/filelist.am
src/librygel-server/filelist.am
src/librygel-server/rygel-free-desktop-interfaces.vala [new file with mode: 0644]
src/plugins/external/Makefile.am
src/plugins/external/rygel-free-desktop-interfaces.vala [moved from src/librygel-core/rygel-free-desktop-interfaces.vala with 70% similarity]
src/plugins/mpris/Makefile.am
src/plugins/mpris/rygel-free-desktop-interfaces.vala [new file with mode: 0644]

index 05f0fba..41d3f08 100644 (file)
@@ -31,7 +31,6 @@
     <xi:include href="xml/rygel-description-file.xml"/>
     <xi:include href="xml/rygel-plugin-loader.xml"/>
     <xi:include href="xml/rygel-icon-info.xml"/>
-    <xi:include href="xml/rygel-free-desktop-interfaces.xml"/>
     <xi:include href="xml/rygel-recursive-module-loader.xml"/>
     <xi:include href="xml/rygel-root-device.xml"/>
     <xi:include href="xml/rygel-plugin.xml"/>
@@ -46,8 +45,6 @@
   <chapter id="api-main-list-dbus">
     <title>librygel-core D-Bus API Reference</title>
     <xi:include href="xml/org-gnome-Rygel1.xml"/>
-    <xi:include href="xml/org-freedesktop-DBus.xml"/>
-    <xi:include href="xml/org-freedesktop-DBus-Properties.xml"/>
   </chapter>
 
   <chapter id="object-tree">
index ecd8abd..94f2caf 100644 (file)
@@ -18,7 +18,6 @@ LIBRYGEL_CORE_VAPI_SOURCE_FILES = \
        rygel-media-device.vala \
        rygel-configuration.vala \
        rygel-base-configuration.vala \
-       rygel-free-desktop-interfaces.vala \
        rygel-state-machine.vala \
        rygel-v1-hacks.vala
 
index 4b2279f..4aa3fb9 100644 (file)
@@ -38,6 +38,7 @@ LIBRYGEL_SERVER_NONVAPI_SOURCE_FILES = \
        rygel-content-directory.vala \
        rygel-dbus-thumbnailer.vala \
        rygel-engine-loader.vala \
+       rygel-free-desktop-interfaces.vala \
        rygel-http-byte-seek.vala \
        rygel-http-get-handler.vala \
        rygel-http-get.vala \
diff --git a/src/librygel-server/rygel-free-desktop-interfaces.vala b/src/librygel-server/rygel-free-desktop-interfaces.vala
new file mode 100644 (file)
index 0000000..511e75c
--- /dev/null
@@ -0,0 +1,32 @@
+/*
+ * Copyright (C) 2009,2010 Nokia Corporation.
+ *
+ * Author: Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
+ *                               <zeeshan.ali@nokia.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.
+ */
+
+namespace FreeDesktop {
+    internal const string DBUS_SERVICE = "org.freedesktop.DBus";
+    internal const string DBUS_OBJECT_PATH = "/org/freedesktop/DBus";
+}
+
+[DBus (name = "org.freedesktop.DBus")]
+internal interface FreeDesktop.DBusObject: Object {
+    internal abstract async string[] list_activatable_names () throws DBusError;
+}
index 3d28073..fa28188 100644 (file)
@@ -13,7 +13,8 @@ librygel_external_la_SOURCES = \
        rygel-external-interfaces.vala \
        rygel-external-plugin-factory.vala \
        rygel-external-icon-factory.vala \
-       rygel-external-variant-util.vala
+       rygel-external-variant-util.vala \
+       rygel-free-desktop-interfaces.vala
 
 librygel_external_la_VALAFLAGS = \
        $(RYGEL_COMMON_LIBRYGEL_SERVER_VALAFLAGS) \
  */
 
 namespace FreeDesktop {
-    public const string DBUS_SERVICE = "org.freedesktop.DBus";
-    public const string DBUS_OBJECT_PATH = "/org/freedesktop/DBus";
+    internal const string DBUS_SERVICE = "org.freedesktop.DBus";
+    internal const string DBUS_OBJECT_PATH = "/org/freedesktop/DBus";
 }
 
 [DBus (name = "org.freedesktop.DBus")]
-public interface FreeDesktop.DBusObject: Object {
-    public abstract signal void name_owner_changed (string name,
+internal interface FreeDesktop.DBusObject: Object {
+    internal abstract signal void name_owner_changed (string name,
                                                     string old_owner,
                                                     string new_owner);
 
-    public abstract async string[] list_names () throws DBusError;
-    public abstract async string[] list_activatable_names () throws DBusError;
+    internal abstract async string[] list_names () throws DBusError;
+    internal abstract async string[] list_activatable_names () throws DBusError;
 }
 
 [DBus (name = "org.freedesktop.DBus.Properties")]
-public interface FreeDesktop.Properties: Object {
-    public abstract async HashTable<string,Variant> get_all (string iface)
+internal interface FreeDesktop.Properties: Object {
+    internal abstract async HashTable<string,Variant> get_all (string iface)
                                                              throws DBusError;
 }
index c672e2b..45211f5 100644 (file)
@@ -7,7 +7,8 @@ librygel_mpris_la_SOURCES = \
        rygel-mpris-player.vala \
        rygel-mpris-plugin.vala \
        rygel-mpris-plugin-factory.vala \
-       rygel-mpris-interfaces.vala
+       rygel-mpris-interfaces.vala \
+       rygel-free-desktop-interfaces.vala
 
 librygel_mpris_la_VALAFLAGS = \
        $(RYGEL_COMMON_LIBRYGEL_RENDERER_VALAFLAGS) \
diff --git a/src/plugins/mpris/rygel-free-desktop-interfaces.vala b/src/plugins/mpris/rygel-free-desktop-interfaces.vala
new file mode 100644 (file)
index 0000000..d39e53d
--- /dev/null
@@ -0,0 +1,37 @@
+/*
+ * Copyright (C) 2009,2010 Nokia Corporation.
+ *
+ * Author: Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
+ *                               <zeeshan.ali@nokia.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.
+ */
+
+namespace FreeDesktop {
+    internal const string DBUS_SERVICE = "org.freedesktop.DBus";
+    internal const string DBUS_OBJECT_PATH = "/org/freedesktop/DBus";
+}
+
+[DBus (name = "org.freedesktop.DBus")]
+internal interface FreeDesktop.DBusObject: Object {
+    internal abstract signal void name_owner_changed (string name,
+                                                    string old_owner,
+                                                    string new_owner);
+
+    internal abstract async string[] list_names () throws DBusError;
+    internal abstract async string[] list_activatable_names () throws DBusError;
+}