10 AVAHI_DNS_TYPE_A = 0x01,
11 AVAHI_DNS_TYPE_NS = 0x02,
12 AVAHI_DNS_TYPE_CNAME = 0x05,
13 AVAHI_DNS_TYPE_SOA = 0x06,
14 AVAHI_DNS_TYPE_PTR = 0x0C,
15 AVAHI_DNS_TYPE_HINFO = 0x0D,
16 AVAHI_DNS_TYPE_MX = 0x0F,
17 AVAHI_DNS_TYPE_TXT = 0x10,
18 AVAHI_DNS_TYPE_AAAA = 0x1C,
19 AVAHI_DNS_TYPE_SRV = 0x21,
20 AVAHI_DNS_TYPE_ANY = 0xFF
24 AVAHI_DNS_CLASS_IN = 0x01,
25 AVAHI_DNS_CACHE_FLUSH = 0x8000,
26 AVAHI_DNS_UNICAST_RESPONSE = 0x8000
29 #define AVAHI_DEFAULT_TTL (120*60)
59 } ptr; /* and cname */
67 AvahiStringList *string_list;
71 AvahiIPv4Address address;
75 AvahiIPv6Address address;
82 AvahiKey *avahi_key_new(const gchar *name, guint16 class, guint16 type);
83 AvahiKey *avahi_key_ref(AvahiKey *k);
84 void avahi_key_unref(AvahiKey *k);
86 gboolean avahi_key_equal(const AvahiKey *a, const AvahiKey *b); /* Treat AVAHI_DNS_CLASS_ANY like any other type */
87 gboolean avahi_key_pattern_match(const AvahiKey *pattern, const AvahiKey *k); /* If pattern.type is AVAHI_DNS_CLASS_ANY, k.type is ignored */
89 gboolean avahi_key_is_pattern(const AvahiKey *k);
91 guint avahi_key_hash(const AvahiKey *k);
93 AvahiRecord *avahi_record_new(AvahiKey *k);
94 AvahiRecord *avahi_record_new_full(const gchar *name, guint16 class, guint16 type);
95 AvahiRecord *avahi_record_ref(AvahiRecord *r);
96 void avahi_record_unref(AvahiRecord *r);
98 const gchar *avahi_dns_class_to_string(guint16 class);
99 const gchar *avahi_dns_type_to_string(guint16 type);
101 gchar *avahi_key_to_string(const AvahiKey *k); /* g_free() the result! */
102 gchar *avahi_record_to_string(const AvahiRecord *r); /* g_free() the result! */
104 gboolean avahi_record_equal_no_ttl(const AvahiRecord *a, const AvahiRecord *b);
106 AvahiRecord *avahi_record_copy(AvahiRecord *r);
108 /* returns a maximum estimate for the space that is needed to store
109 * this key in a DNS packet */
110 guint avahi_key_get_estimate_size(AvahiKey *k);
113 guint avahi_record_get_estimate_size(AvahiRecord *r);
115 gint avahi_record_lexicographical_compare(AvahiRecord *a, AvahiRecord *b);