]> git.meshlink.io Git - catta/blobdiff - avahi-common/strlst.h
* Wrap HostNameResolver and AddressResolver APIs in DBUS
[catta] / avahi-common / strlst.h
index 01a2c41f812a250d59378f8046f5ac97b83a84ee..85a16f410e4458275eaba1f200c0043a6d8635d8 100644 (file)
@@ -49,6 +49,11 @@ AvahiStringList *avahi_string_list_new(const gchar *txt, ...);
 /** Same as avahi_string_list_new() but pass a va_list structure */
 AvahiStringList *avahi_string_list_new_va(va_list va);
 
+/** Create a new string list from a string array. The strings are
+ * copied using g_strdup(). length should contain the length of the
+ * array, or -1 if the array is NULL terminated*/
+AvahiStringList *avahi_string_list_new_from_array(const gchar **array, gint length);
+
 /** Free a string list */
 void avahi_string_list_free(AvahiStringList *l);