X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-common%2Fstrlst.h;h=85a16f410e4458275eaba1f200c0043a6d8635d8;hb=978cbe80eb8437fd013dc6cff0088590884e7148;hp=01a2c41f812a250d59378f8046f5ac97b83a84ee;hpb=54d7450ef8b085110c380d4263794deffa5edda4;p=catta diff --git a/avahi-common/strlst.h b/avahi-common/strlst.h index 01a2c41..85a16f4 100644 --- a/avahi-common/strlst.h +++ b/avahi-common/strlst.h @@ -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);