From 4a77a2dd972e817a08a4571220c8406709af8c48 Mon Sep 17 00:00:00 2001 From: Jon Trowbridge Date: Tue, 31 Aug 2004 03:59:14 +0000 Subject: 2004-08-30 Jon Trowbridge * mono/BusDriver.cs: Added. This is a class for interacting with the org.freedesktop.DBus service. * mono/Message.cs: Added a mechanism to expose the message that is currently being dispatched via the static Message.Current property. Added Message.Sender and Message.Destination properties. * mono/Handler.cs: Expose the dispatched message via Message.Current when handling method calls. * mono/Service.cs: Expose the dispatched message via Message.Current when handling signal emissions. * mono/Connection.cs: Bind dbus_bus_get_base_service via the Connection.BaseService property. --- mono/Connection.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'mono/Connection.cs') diff --git a/mono/Connection.cs b/mono/Connection.cs index fad0dc56..acc6ef6d 100644 --- a/mono/Connection.cs +++ b/mono/Connection.cs @@ -76,6 +76,14 @@ namespace DBus return new Connection(rawConnection); } + public string BaseService + { + get + { + return Marshal.PtrToStringAnsi (dbus_bus_get_base_service (RawConnection)); + } + } + public int Timeout { get @@ -182,5 +190,8 @@ namespace DBus [DllImport ("dbus-1")] private extern static void dbus_connection_disconnect (IntPtr ptr); + + [DllImport ("dbus-1")] + private extern static IntPtr dbus_bus_get_base_service (IntPtr ptr); } } -- cgit