diff options
author | Lennart Poettering <lennart@poettering.net> | 2005-03-31 23:31:11 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2005-03-31 23:31:11 +0000 |
commit | d553a1c2d1cd3fcdd65ade64940b5bd3efc70675 (patch) | |
tree | 5e240f9fcea9fdc77662df825f217107fbd95406 /rr.h | |
parent | 07b93a6d49a3252e3f5cacadd15083949241b071 (diff) |
add client part of known answer suppresion
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@20 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
Diffstat (limited to 'rr.h')
-rw-r--r-- | rr.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -13,7 +13,8 @@ enum { FLX_DNS_TYPE_MX = 0x0F, FLX_DNS_TYPE_TXT = 0x10, FLX_DNS_TYPE_AAAA = 0x1C, - FLX_DNS_TYPE_SRV = 0x21 + FLX_DNS_TYPE_SRV = 0x21, + FLX_DNS_TYPE_ANY = 0xFF }; enum { @@ -42,7 +43,11 @@ flxKey *flx_key_new(const gchar *name, guint16 class, guint16 type); flxKey *flx_key_ref(flxKey *k); void flx_key_unref(flxKey *k); -gboolean flx_key_equal(const flxKey *a, const flxKey *b); +gboolean flx_key_equal(const flxKey *a, const flxKey *b); /* Treat FLX_DNS_CLASS_ANY like any other type */ +gboolean flx_key_pattern_match(const flxKey *pattern, const flxKey *k); /* If pattern.type is FLX_DNS_CLASS_ANY, k.type is ignored */ + +gboolean flx_key_is_pattern(const flxKey *k); + guint flx_key_hash(const flxKey *k); flxRecord *flx_record_new(flxKey *k, gconstpointer data, guint16 size, guint32 ttl); |