summaryrefslogtreecommitdiffstats
path: root/avahi-sharp/ServiceResolver.cs
diff options
context:
space:
mode:
authorJames Willcox <snopr@snorp.net>2005-09-25 22:09:41 +0000
committerJames Willcox <snopr@snorp.net>2005-09-25 22:09:41 +0000
commitcc272cf44768c9292879a9ee43783fec4b510ffd (patch)
tree82b1121ff5e58a1b7319f0b555ded29caf3bae7f /avahi-sharp/ServiceResolver.cs
parent9247af4048229c9b777791fd087e2068dd785a7d (diff)
* update to the latest avahi-client API (LookupFlags)
* add the local service cookie bits * update docs git-svn-id: file:///home/lennart/svn/public/avahi/trunk@620 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'avahi-sharp/ServiceResolver.cs')
-rw-r--r--avahi-sharp/ServiceResolver.cs13
1 files changed, 9 insertions, 4 deletions
diff --git a/avahi-sharp/ServiceResolver.cs b/avahi-sharp/ServiceResolver.cs
index 8e8464b..a39299d 100644
--- a/avahi-sharp/ServiceResolver.cs
+++ b/avahi-sharp/ServiceResolver.cs
@@ -31,7 +31,8 @@ namespace Avahi
internal delegate void ServiceResolverCallback (IntPtr resolver, int iface, Protocol proto,
ResolverEvent revent, IntPtr name, IntPtr type,
IntPtr domain, IntPtr host, IntPtr address,
- UInt16 port, IntPtr txt, IntPtr userdata);
+ UInt16 port, IntPtr txt, LookupResultFlags flags,
+ IntPtr userdata);
public class ServiceResolver : IDisposable
{
@@ -44,6 +45,7 @@ namespace Avahi
private string type;
private string domain;
private Protocol aproto;
+ private LookupFlags flags;
private ServiceResolverCallback cb;
private ArrayList foundListeners = new ArrayList ();
@@ -52,7 +54,8 @@ namespace Avahi
[DllImport ("avahi-client")]
private static extern IntPtr avahi_service_resolver_new (IntPtr client, int iface, Protocol proto,
IntPtr name, IntPtr type, IntPtr domain,
- Protocol aproto, ServiceResolverCallback cb,
+ Protocol aproto, LookupFlags flags,
+ ServiceResolverCallback cb,
IntPtr userdata);
[DllImport ("avahi-common")]
@@ -145,7 +148,7 @@ namespace Avahi
lock (client) {
handle = avahi_service_resolver_new (client.Handle, iface, proto, namePtr, typePtr, domainPtr,
- aproto, cb, IntPtr.Zero);
+ aproto, flags, cb, IntPtr.Zero);
}
Utility.Free (namePtr);
@@ -168,7 +171,8 @@ namespace Avahi
private void OnServiceResolverCallback (IntPtr resolver, int iface, Protocol proto,
ResolverEvent revent, IntPtr name, IntPtr type,
IntPtr domain, IntPtr host, IntPtr address,
- UInt16 port, IntPtr txt, IntPtr userdata)
+ UInt16 port, IntPtr txt, LookupResultFlags flags,
+ IntPtr userdata)
{
ServiceInfo info;
info.NetworkInterface = iface;
@@ -191,6 +195,7 @@ namespace Avahi
}
info.Text = (byte[][]) txtlist.ToArray (typeof (byte[]));
+ info.Flags = flags;
if (revent == ResolverEvent.Found) {
currentInfo = info;