From: James Willcox Date: Wed, 14 Sep 2005 06:08:23 +0000 (+0000) Subject: add a missing file, and add EntryGroup.GetAlternativeServiceName X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=5af9f469d85a9281bc5484e9f5a8740751591dfe;p=catta add a missing file, and add EntryGroup.GetAlternativeServiceName git-svn-id: file:///home/lennart/svn/public/avahi/trunk@583 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- 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 @@ + + + +