]> git.meshlink.io Git - catta/blobdiff - avahi-common/strlst.h
* Quick fix to incorrect configure line, from FreeBSD. :)
[catta] / avahi-common / strlst.h
index 0f8c8d41576c075f5da2bc02d53f4e17d215a9f9..1e69367ff730d571ea029a34c495541b96e3c618 100644 (file)
@@ -40,7 +40,7 @@ AVAHI_C_DECL_BEGIN
  * effectively a prepending to the linked list.  This object is used
  * primarily for storing DNS TXT record data. */
 typedef struct AvahiStringList {
-    struct AvahiStringList *next; /**< Pointe to the next linked list element */
+    struct AvahiStringList *next; /**< Pointer to the next linked list element */
     size_t size;  /**< Size of text[] */
     uint8_t text[1]; /**< Character data */
 } AvahiStringList;
@@ -93,7 +93,7 @@ AvahiStringList *avahi_string_list_add_many(AvahiStringList *r, ...) AVAHI_GCC_S
 AvahiStringList *avahi_string_list_add_many_va(AvahiStringList *r, va_list va);
 
 /** Convert the string list object to a single character string,
- * seperated by spaces and enclosed in "". g_free() the result! This
+ * seperated by spaces and enclosed in "". avahi_free() the result! This
  * function doesn't work well with string that contain NUL bytes. */
 char* avahi_string_list_to_string(AvahiStringList *l);
 
@@ -137,11 +137,15 @@ AvahiStringList *avahi_string_list_add_pair_arbitrary(AvahiStringList *l, const
 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);
+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);
 
+/** Try to find a magic service cookie in the specified DNS-SD string
+ * list. Or return AVAHI_SERVICE_COOKIE_INVALID if none is found. */
+uint32_t avahi_string_list_get_service_cookie(AvahiStringList *l);
+
 AVAHI_C_DECL_END
 
 #endif