X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-common%2Frr.h;h=f5349e9fefed567fb6084e8e6c158bd6bb103233;hb=61eb92b1ba30fd4da9be7e9dc9714125c1576cca;hp=1f6a4c63e5992812c4863725e44dc7fbfb14a8b4;hpb=14f8d9beb7ef14b0aab5512345e09109bdd8cb0c;p=catta diff --git a/avahi-common/rr.h b/avahi-common/rr.h index 1f6a4c6..f5349e9 100644 --- a/avahi-common/rr.h +++ b/avahi-common/rr.h @@ -28,6 +28,8 @@ #include #include +/** \file rr.h Functions and definitions for manipulating DNS resource record (RR) data. */ + AVAHI_C_DECL_BEGIN /** DNS record types, see RFC 1035 */ @@ -80,13 +82,11 @@ typedef struct { guint32 ttl; /**< DNS TTL of this record */ union { - struct { gpointer data; guint16 size; } generic; /**< Generic record data for unknown types */ - struct { guint16 priority; @@ -198,6 +198,12 @@ gint avahi_record_lexicographical_compare(AvahiRecord *a, AvahiRecord *b); /** Return TRUE if the specified record is an mDNS goodbye record. i.e. TTL is zero. */ gboolean avahi_record_is_goodbye(AvahiRecord *r); +/** Check whether the specified key is valid */ +gboolean avahi_key_valid(AvahiKey *k); + +/** Check whether the specified record is valid */ +gboolean avahi_record_valid(AvahiRecord *r); + AVAHI_C_DECL_END #endif