10 FLX_DNS_TYPE_A = 0x01,
11 FLX_DNS_TYPE_NS = 0x02,
12 FLX_DNS_TYPE_CNAME = 0x05,
13 FLX_DNS_TYPE_SOA = 0x06,
14 FLX_DNS_TYPE_PTR = 0x0C,
15 FLX_DNS_TYPE_HINFO = 0x0D,
16 FLX_DNS_TYPE_MX = 0x0F,
17 FLX_DNS_TYPE_TXT = 0x10,
18 FLX_DNS_TYPE_AAAA = 0x1C,
19 FLX_DNS_TYPE_SRV = 0x21,
20 FLX_DNS_TYPE_ANY = 0xFF
24 FLX_DNS_CLASS_IN = 0x01
27 #define FLX_DEFAULT_TTL (120*60)
57 } ptr; /* and cname */
65 flxStringList *string_list;
69 flxIPv4Address address;
73 flxIPv6Address address;
80 flxKey *flx_key_new(const gchar *name, guint16 class, guint16 type);
81 flxKey *flx_key_ref(flxKey *k);
82 void flx_key_unref(flxKey *k);
84 gboolean flx_key_equal(const flxKey *a, const flxKey *b); /* Treat FLX_DNS_CLASS_ANY like any other type */
85 gboolean flx_key_pattern_match(const flxKey *pattern, const flxKey *k); /* If pattern.type is FLX_DNS_CLASS_ANY, k.type is ignored */
87 gboolean flx_key_is_pattern(const flxKey *k);
89 guint flx_key_hash(const flxKey *k);
91 flxRecord *flx_record_new(flxKey *k);
92 flxRecord *flx_record_new_full(const gchar *name, guint16 class, guint16 type);
93 flxRecord *flx_record_ref(flxRecord *r);
94 void flx_record_unref(flxRecord *r);
96 const gchar *flx_dns_class_to_string(guint16 class);
97 const gchar *flx_dns_type_to_string(guint16 type);
99 gchar *flx_key_to_string(const flxKey *k); /* g_free() the result! */
100 gchar *flx_record_to_string(const flxRecord *r); /* g_free() the result! */
102 gboolean flx_record_equal_no_ttl(const flxRecord *a, const flxRecord *b);
104 flxRecord *flx_record_copy(flxRecord *r);