]> git.meshlink.io Git - catta/blobdiff - avahi-sharp/DomainBrowser.cs
update TODO
[catta] / avahi-sharp / DomainBrowser.cs
index 32948dfb4232add9015f1376afa3b4ebb2d8850c..cc93641c8cbf9abd927fdac1d7972aefca002056 100644 (file)
@@ -1,3 +1,5 @@
+/* $Id$ */
+
 /***
   This file is part of avahi.
 
@@ -52,6 +54,7 @@ namespace Avahi
         private Protocol proto;
         private string domain;
         private DomainBrowserType btype;
+        private DomainBrowserCallback cb;
 
         private ArrayList addListeners = new ArrayList ();
         private ArrayList removeListeners = new ArrayList ();
@@ -104,6 +107,7 @@ namespace Avahi
             this.proto = proto;
             this.domain = domain;
             this.btype = btype;
+            cb = OnDomainBrowserCallback;
         }
 
         ~DomainBrowser ()
@@ -123,7 +127,7 @@ namespace Avahi
 
             IntPtr domainPtr = Utility.StringToPtr (domain);
             handle = avahi_domain_browser_new (client.Handle, iface, (int) proto, domainPtr, (int) btype,
-                                               OnDomainBrowserCallback, IntPtr.Zero);
+                                               cb, IntPtr.Zero);
             Utility.Free (domainPtr);
         }