X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-core%2Frr.h;h=6824d2a658a182088618e2f056f5bad4be58624d;hb=9b2a5e5954a331006e1e7bb56cccf7fff0b7d477;hp=5349076144f2b0df0fb43575461688d99b78ba6b;hpb=6e35536bddb52c8e6bc201265c77a846d879b5a3;p=catta diff --git a/avahi-core/rr.h b/avahi-core/rr.h index 5349076..6824d2a 100644 --- a/avahi-core/rr.h +++ b/avahi-core/rr.h @@ -78,7 +78,7 @@ typedef struct { * creation. */ typedef struct { int ref; /**< Reference counter */ - AvahiKey *key; /**< Reference to the query key of thsi record */ + AvahiKey *key; /**< Reference to the query key of this record */ uint32_t ttl; /**< DNS TTL of this record */ @@ -124,6 +124,9 @@ typedef struct { /** Create a new AvahiKey object. The reference counter will be set to 1. */ AvahiKey *avahi_key_new(const char *name, uint16_t clazz, uint16_t type); +/** Creaze new AvahiKey object based on an existing key but replaceing the type by CNAME */ +AvahiKey *avahi_key_new_cname(AvahiKey *key); + /** Increase the reference counter of an AvahiKey object by one */ AvahiKey *avahi_key_ref(AvahiKey *k); @@ -169,12 +172,12 @@ const char *avahi_dns_class_to_string(uint16_t clazz); * returned pointer points to a read only internal string. */ const char *avahi_dns_type_to_string(uint16_t type); -/** Create a textual representation of the specified key. g_free() the +/** Create a textual representation of the specified key. avahi_free() the * result! */ char *avahi_key_to_string(const AvahiKey *k); /** Create a textual representation of the specified record, similar - * in style to BIND zone file data. g_free() the result! */ + * in style to BIND zone file data. avahi_free() the result! */ char *avahi_record_to_string(const AvahiRecord *r); /** Check whether two records are equal (regardless of the TTL */ @@ -196,7 +199,7 @@ size_t avahi_record_get_estimate_size(AvahiRecord *r); * zero if equal. */ int avahi_record_lexicographical_compare(AvahiRecord *a, AvahiRecord *b); -/** Return TRUE if the specified record is an mDNS goodbye record. i.e. TTL is zero. */ +/** Return 1 if the specified record is an mDNS goodbye record. i.e. TTL is zero. */ int avahi_record_is_goodbye(AvahiRecord *r); /** Check whether the specified key is valid */