]> git.meshlink.io Git - catta/commitdiff
add a missing file, and add EntryGroup.GetAlternativeServiceName
authorJames Willcox <snopr@snorp.net>
Wed, 14 Sep 2005 06:08:23 +0000 (06:08 +0000)
committerJames Willcox <snopr@snorp.net>
Wed, 14 Sep 2005 06:08:23 +0000 (06:08 +0000)
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@583 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

avahi-sharp/EntryGroup.cs
avahi-sharp/avahi-sharp-docs.source [new file with mode: 0644]

index 142029a22a8ec19e4bb18f70cb5d0732b9112dd4..85c9a1d51e5cad7388bd5b3b2ae8ca54a7854d4f 100644 (file)
@@ -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 (file)
index 0000000..9757b82
--- /dev/null
@@ -0,0 +1,4 @@
+<?xml version="1.0"?>
+<monodoc>
+  <source provider="ecma" basefile="avahi-sharp-docs" path="various"/>
+</monodoc>