summaryrefslogtreecommitdiffstats
path: root/avahi-common
diff options
context:
space:
mode:
Diffstat (limited to 'avahi-common')
-rw-r--r--avahi-common/strlst.c15
-rw-r--r--avahi-common/strlst.h9
2 files changed, 24 insertions, 0 deletions
diff --git a/avahi-common/strlst.c b/avahi-common/strlst.c
index 0c61857..72a0059 100644
--- a/avahi-common/strlst.c
+++ b/avahi-common/strlst.c
@@ -446,3 +446,18 @@ int avahi_string_list_get_pair(AvahiStringList *l, char **key, char **value, siz
return 0;
}
+
+AvahiStringList *avahi_string_list_get_next(AvahiStringList *l) {
+ assert(l);
+ return l->next;
+}
+
+const uint8_t *avahi_string_list_get_text(AvahiStringList *l) {
+ assert(l);
+ return l->text;
+}
+
+size_t avahi_string_list_get_size(AvahiStringList *l) {
+ assert(l);
+ return l->size;
+}
diff --git a/avahi-common/strlst.h b/avahi-common/strlst.h
index 47fd14b..0f8c8d4 100644
--- a/avahi-common/strlst.h
+++ b/avahi-common/strlst.h
@@ -133,6 +133,15 @@ AvahiStringList *avahi_string_list_add_pair(AvahiStringList *l, const char *key,
/** Same as avahi_string_list_add_pair() but allow strings containing NUL bytes in *value. */
AvahiStringList *avahi_string_list_add_pair_arbitrary(AvahiStringList *l, const char *key, const uint8_t *value, size_t size);
+/** Returns the next item in the string list */
+AvahiStringList *avahi_string_list_get_next(AvahiStringList *l);
+
+/** Returns the text for the current item */
+const uint8_t *avahi_string_list_get_text(AvahiStringList *l);
+
+/** Returns the size of the current text */
+size_t avahi_string_list_get_size(AvahiStringList *l);
+
AVAHI_C_DECL_END
#endif