X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-sharp%2FServiceTypeBrowser.cs;h=e1356d00a4623cf1a2ddae808972273e6bebcafb;hb=908e491f7d55209acfbb2595ab1ef5b24502d641;hp=3796d602ace36118d281a6c1bd6bd8eeaa529786;hpb=2b2844b10d7b7e5c97f9c667d664d9418bb7769a;p=catta diff --git a/avahi-sharp/ServiceTypeBrowser.cs b/avahi-sharp/ServiceTypeBrowser.cs index 3796d60..e1356d0 100644 --- a/avahi-sharp/ServiceTypeBrowser.cs +++ b/avahi-sharp/ServiceTypeBrowser.cs @@ -1,5 +1,3 @@ -/* $Id$ */ - /*** This file is part of avahi. @@ -29,7 +27,7 @@ namespace Avahi internal delegate void ServiceTypeBrowserCallback (IntPtr browser, int iface, Protocol proto, BrowserEvent bevent, IntPtr type, IntPtr domain, LookupResultFlags flags, IntPtr userdata); - + public struct ServiceTypeInfo { public int NetworkInterface; @@ -55,7 +53,7 @@ namespace Avahi } public delegate void ServiceTypeInfoHandler (object o, ServiceTypeInfoArgs args); - + public class ServiceTypeBrowser : BrowserBase, IDisposable { private IntPtr handle; @@ -69,7 +67,7 @@ namespace Avahi private ArrayList addListeners = new ArrayList (); private ArrayList removeListeners = new ArrayList (); - + [DllImport ("avahi-client")] private static extern IntPtr avahi_service_type_browser_new (IntPtr client, int iface, int proto, byte[] domain, LookupFlags flags, @@ -90,7 +88,7 @@ namespace Avahi Stop (false); } } - + public event ServiceTypeInfoHandler ServiceTypeRemoved { add {