From 28a418ad5de4f76a0b9202588152cac4a73edd61 Mon Sep 17 00:00:00 2001 From: Ryan Lortie Date: Fri, 11 Mar 2005 18:15:25 +0000 Subject: This commit was manufactured by cvs2svn to create tag 'dbus-0.23.4'. --- mono/Connection.cs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'mono/Connection.cs') diff --git a/mono/Connection.cs b/mono/Connection.cs index af0764db..50b2dd99 100644 --- a/mono/Connection.cs +++ b/mono/Connection.cs @@ -161,23 +161,22 @@ namespace DBus { if (!dbus_connection_register_object_path (RawConnection, path, ref vtable, IntPtr.Zero)) throw new OutOfMemoryException (); - + this.object_paths[path] = vtable; } - + internal void UnregisterObjectPath (string path) { dbus_connection_unregister_object_path (RawConnection, path); - + this.object_paths.Remove (path); } - - public string UniqueName + public string BaseService { get { - return Marshal.PtrToStringAnsi (dbus_bus_get_unique_name (RawConnection)); + return Marshal.PtrToStringAnsi (dbus_bus_get_base_service (RawConnection)); } } @@ -317,7 +316,7 @@ namespace DBus private extern static void dbus_connection_disconnect (IntPtr ptr); [DllImport ("dbus-1")] - private extern static IntPtr dbus_bus_get_unique_name (IntPtr ptr); + private extern static IntPtr dbus_bus_get_base_service (IntPtr ptr); [DllImport("dbus-1")] private extern static bool dbus_connection_add_filter(IntPtr rawConnection, -- cgit