-ainfo_cmp(
- const void *v_a,
- const void *v_b
-)
-{
- const AttrInfo *a = v_a, *b = v_b;
- return SLAP_PTRCMP(a->ai_desc, b->ai_desc);
-}
-
-#ifdef LDAP_COMP_MATCH
-void
-bdb_attr_comp_ref(
- struct bdb_info *bdb,
- AttributeDescription *desc,
- ComponentReference** cr )
-{
- AttrInfo *a;
-
- a = (AttrInfo *) avl_find( bdb->bi_attrs, desc, ainfo_type_cmp );
-
- *cr = a != NULL ? a->ai_cr : 0 ;
-}
-void
-bdb_attr_mask_cr(
- struct bdb_info *bdb,
- AttributeDescription *desc,
- slap_mask_t *indexmask,
- ComponentReference** cr )