dbus/mono BusDriver.cs,1.1,1.2

Jon Trowbridge trow at freedesktop.org
Wed Sep 29 01:46:47 UTC 2004


Update of /cvs/dbus/dbus/mono
In directory gabe:/tmp/cvs-serv24833/mono

Modified Files:
	BusDriver.cs 
Log Message:
2004-09-28  Jon Trowbridge  <trow at ximian.com>

	    * mono/BusDriver.cs: Changed BusDriver struct to remove
	    the ServiceCreated and ServiceDeleted events and replace them
	    with the new ServiceOwnerChanged event.

	    * mono/example/BusListener.cs: Added a new example program,
	    which listens for and reports any ServiceOwnerChanged events
	    on the bus driver.

	    * mono/example/Makefile.am (DESTDIR): Build changes for the
	    new BusListener.cs example.



Index: BusDriver.cs
===================================================================
RCS file: /cvs/dbus/dbus/mono/BusDriver.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- BusDriver.cs	31 Aug 2004 03:59:14 -0000	1.1
+++ BusDriver.cs	29 Sep 2004 01:46:45 -0000	1.2
@@ -3,7 +3,9 @@
 
   using System;
 
-  public delegate void ServiceEventHandler (string serviceName);
+  public delegate void ServiceEventHandler (string serviceName,
+					    string oldOwner,
+					    string newOwner);
 
   [Interface ("org.freedesktop.DBus")]
   public abstract class BusDriver
@@ -19,11 +21,7 @@
 
 
     [Signal]
-    public virtual event ServiceEventHandler ServiceCreated;
-
-    [Signal]
-    public virtual event ServiceEventHandler ServiceDeleted;
-
+    public virtual event ServiceEventHandler ServiceOwnerChanged;
 
     static public BusDriver New (Connection connection)
     {



More information about the dbus-commit mailing list