From a20c01bd12216d409e0dfc5d3bbacc940352bfce Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 12 Apr 2005 03:09:56 +0000 Subject: assorted work: * new rr implementation: resource data is stored in parsed form now. * make TXT and SRV functions variadic * many other things git-svn-id: file:///home/lennart/svn/public/avahi/trunk@23 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- strlst.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 strlst.h (limited to 'strlst.h') diff --git a/strlst.h b/strlst.h new file mode 100644 index 0000000..94fb563 --- /dev/null +++ b/strlst.h @@ -0,0 +1,32 @@ +#ifndef footxtlisthfoo +#define footxtlisthfoo + +#include + +typedef struct _flxStringList flxStringList; + +struct _flxStringList { + flxStringList *next; + gchar text[1]; +}; + +flxStringList *flx_string_list_new(const gchar *txt, ...); +flxStringList *flx_string_list_new_va(va_list va); + +void flx_string_list_free(flxStringList *l); + +flxStringList *flx_string_list_add(flxStringList *l, const gchar *text); +flxStringList *flx_string_list_add_many(flxStringList *r, ...); +flxStringList *flx_string_list_add_many_va(flxStringList *r, va_list va); + +gchar* flx_string_list_to_string(flxStringList *l); + +guint flx_string_list_serialize(flxStringList *l, gpointer data, guint size); +flxStringList *flx_string_list_parse(gconstpointer data, guint size); + +gboolean flx_string_list_equal(flxStringList *a, flxStringList *b); + +flxStringList *flx_string_list_copy(flxStringList *l); + +#endif + -- cgit