summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Willcox <snopr@snorp.net>2005-09-14 06:08:23 +0000
committerJames Willcox <snopr@snorp.net>2005-09-14 06:08:23 +0000
commit5af9f469d85a9281bc5484e9f5a8740751591dfe (patch)
tree14c7fdf77276a80b2224e3dce27539470a0a4f12
parent217046a958569ecdc2bb72997b157de011e17c9d (diff)
add a missing file, and add EntryGroup.GetAlternativeServiceName
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@583 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
-rw-r--r--avahi-sharp/EntryGroup.cs11
-rw-r--r--avahi-sharp/avahi-sharp-docs.source4
2 files changed, 15 insertions, 0 deletions
diff --git a/avahi-sharp/EntryGroup.cs b/avahi-sharp/EntryGroup.cs
index 142029a..85c9a1d 100644
--- a/avahi-sharp/EntryGroup.cs
+++ b/avahi-sharp/EntryGroup.cs
@@ -74,6 +74,9 @@ namespace Avahi
[DllImport ("avahi-common")]
private static extern void avahi_string_list_free (IntPtr list);
+ [DllImport ("avahi-common")]
+ private static extern IntPtr avahi_alternative_service_name (IntPtr name);
+
public event EntryGroupStateHandler StateChanged;
public EntryGroupState State
@@ -170,6 +173,14 @@ namespace Avahi
client.CheckError ();
}
+ public static string GetAlternativeServiceName (string name) {
+ IntPtr namePtr = Utility.StringToPtr (name);
+ IntPtr result = avahi_alternative_service_name (namePtr);
+ Utility.Free (namePtr);
+
+ return Utility.PtrToStringFree (result);
+ }
+
private void OnEntryGroupCallback (IntPtr group, EntryGroupState state, IntPtr userdata)
{
if (StateChanged != null)
diff --git a/avahi-sharp/avahi-sharp-docs.source b/avahi-sharp/avahi-sharp-docs.source
new file mode 100644
index 0000000..9757b82
--- /dev/null
+++ b/avahi-sharp/avahi-sharp-docs.source
@@ -0,0 +1,4 @@
+<?xml version="1.0"?>
+<monodoc>
+ <source provider="ecma" basefile="avahi-sharp-docs" path="various"/>
+</monodoc>