]> git.meshlink.io Git - catta/blobdiff - avahi-core/rr.h
use /bin/sh
[catta] / avahi-core / rr.h
index 5349076144f2b0df0fb43575461688d99b78ba6b..6824d2a658a182088618e2f056f5bad4be58624d 100644 (file)
@@ -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 */