Logo Search packages:      
Sourcecode: avahi version File versions  Download package

int avahi_key_equal ( const AvahiKey a,
const AvahiKey b 
)

Check whether two AvahiKey object contain the same data. AVAHI_DNS_CLASS_ANY/AVAHI_DNS_TYPE_ANY are treated like any other class/type.

Definition at line 323 of file rr.c.

References AvahiKey::clazz, AvahiKey::name, and AvahiKey::type.

                                                          {
    assert(a);
    assert(b);

    if (a == b)
        return 1;

    return avahi_domain_equal(a->name, b->name) &&
        a->type == b->type &&
        a->clazz == b->clazz;
}


Generated by  Doxygen 1.6.0   Back to index