[rygel] core,external: Avoid symbol redefintion
- From: Jens Georg <jensgeorg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rygel] core,external: Avoid symbol redefintion
- Date: Tue, 3 Jul 2012 07:58:46 +0000 (UTC)
commit 7b79a131e0c3eaaac4ae0f3fbcab872c16e56136
Author: Jens Georg <mail jensge org>
Date: Mon Jul 2 13:30:29 2012 +0200
core,external: Avoid symbol redefintion
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.
.../rygel-free-desktop-interfaces.vala | 2 +-
.../external/rygel-external-plugin-factory.vala | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/librygel-core/rygel-free-desktop-interfaces.vala b/src/librygel-core/rygel-free-desktop-interfaces.vala
index e6100f2..9a92913 100644
--- a/src/librygel-core/rygel-free-desktop-interfaces.vala
+++ b/src/librygel-core/rygel-free-desktop-interfaces.vala
@@ -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 {
diff --git a/src/plugins/external/rygel-external-plugin-factory.vala b/src/plugins/external/rygel-external-plugin-factory.vala
index 8d4f90f..078871d 100644
--- a/src/plugins/external/rygel-external-plugin-factory.vala
+++ b/src/plugins/external/rygel-external-plugin-factory.vala
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]