summaryrefslogtreecommitdiffstats
path: root/rr.c
diff options
context:
space:
mode:
Diffstat (limited to 'rr.c')
-rw-r--r--rr.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/rr.c b/rr.c
index 0153b28..5acc09b 100644
--- a/rr.c
+++ b/rr.c
@@ -164,3 +164,13 @@ guint flx_key_hash(const flxKey *k) {
return g_str_hash(k->name) + k->type + k->class;
}
+
+gboolean flx_record_equal(const flxRecord *a, const flxRecord *b) {
+ g_assert(a);
+ g_assert(b);
+
+ return flx_key_equal(a->key, b->key) &&
+ a->ttl == b->ttl &&
+ a->size == b->size &&
+ memcmp(a->data, b->data, a->size) == 0;
+}