core,external: Avoid symbol redefintion
authorJens Georg <mail@jensge.org>
Mon, 2 Jul 2012 11:30:29 +0000 (13:30 +0200)
committerJens Georg <mail@jensge.org>
Tue, 3 Jul 2012 07:53:51 +0000 (09:53 +0200)
On C level, the vala DBus interface object and this constant both create
a FREE_DESKTOP_DBUS_OBJECT definition, creating a GCC warning when using
librygel-core.

src/librygel-core/rygel-free-desktop-interfaces.vala
src/plugins/external/rygel-external-plugin-factory.vala

index e6100f2..9a92913 100644 (file)
@@ -23,7 +23,7 @@
 
 namespace FreeDesktop {
     public const string DBUS_SERVICE = "org.freedesktop.DBus";
-    public const string DBUS_OBJECT = "/org/freedesktop/DBus";
+    public const string DBUS_OBJECT_PATH = "/org/freedesktop/DBus";
 }
 
 public enum FreeDesktop.DBusRequestNameReply {
index 8d4f90f..078871d 100644 (file)
@@ -58,7 +58,7 @@ public class Rygel.External.PluginFactory {
         this.dbus_obj = Bus.get_proxy_sync
                                         (BusType.SESSION,
                                          DBUS_SERVICE,
-                                         DBUS_OBJECT,
+                                         DBUS_OBJECT_PATH,
                                          DBusProxyFlags.DO_NOT_LOAD_PROPERTIES);
         this.loader = loader;