summaryrefslogtreecommitdiffstats
path: root/strlst.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2005-04-12 03:09:56 +0000
committerLennart Poettering <lennart@poettering.net>2005-04-12 03:09:56 +0000
commita20c01bd12216d409e0dfc5d3bbacc940352bfce (patch)
treee91508f26882306be164889a6bacc3be3517814d /strlst.h
parentb1d2a6b958d8d7a8ecf79765bb93aa57583d93bd (diff)
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
Diffstat (limited to 'strlst.h')
-rw-r--r--strlst.h32
1 files changed, 32 insertions, 0 deletions
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 <glib.h>
+
+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
+