X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-core%2Frr.h;h=6824d2a658a182088618e2f056f5bad4be58624d;hb=d322a943be5387a539f8f3ea3a19a7e2ed5a55a2;hp=9fdcb0e7a03fe0b62fa44e9c032dce180f2050e2;hpb=4f0a5e7572a4257894b4bfede42c26d65152609e;p=catta diff --git a/avahi-core/rr.h b/avahi-core/rr.h index 9fdcb0e..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);