summaryrefslogtreecommitdiffstats
path: root/ldap/servers/slapd/pblock.c
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2010-02-10 09:16:28 -0700
committerRich Megginson <rmeggins@redhat.com>2010-02-17 15:04:02 -0700
commitca6e6538a65bc03f7b8e1c521b5d0ba6d7b82a9e (patch)
treee7ba50d6e183806f9de700d8904b3b9b8742fb1f /ldap/servers/slapd/pblock.c
parent834c706f04e53bb3ca95caa31c6e1166ad79210e (diff)
downloadds-ca6e6538a65bc03f7b8e1c521b5d0ba6d7b82a9e.tar.gz
ds-ca6e6538a65bc03f7b8e1c521b5d0ba6d7b82a9e.tar.xz
ds-ca6e6538a65bc03f7b8e1c521b5d0ba6d7b82a9e.zip
wrap new style matching rule plugins for use in old style indexing code
Create wrappers for the new syntax plugin style matching rule code so that we can use the old matching rule indexing functions. Introduced a new type of indexer for Slapi_Value values. The old style used struct berval * values, but the syntax plugins and a lot of newer code work with Slapi_Value* instead.
Diffstat (limited to 'ldap/servers/slapd/pblock.c')
-rw-r--r--ldap/servers/slapd/pblock.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ldap/servers/slapd/pblock.c b/ldap/servers/slapd/pblock.c
index b5d994ad..7d885745 100644
--- a/ldap/servers/slapd/pblock.c
+++ b/ldap/servers/slapd/pblock.c
@@ -1349,6 +1349,9 @@ slapi_pblock_get( Slapi_PBlock *pblock, int arg, void *value )
case SLAPI_PLUGIN_MR_INDEX_FN:
(*(IFP *)value) = pblock->pb_mr_index_fn;
break;
+ case SLAPI_PLUGIN_MR_INDEX_SV_FN:
+ (*(IFP *)value) = pblock->pb_mr_index_sv_fn;
+ break;
/* matching rule plugin arguments */
case SLAPI_PLUGIN_MR_OID:
@@ -2722,6 +2725,9 @@ slapi_pblock_set( Slapi_PBlock *pblock, int arg, void *value )
case SLAPI_PLUGIN_MR_INDEX_FN:
pblock->pb_mr_index_fn = (IFP) value;
break;
+ case SLAPI_PLUGIN_MR_INDEX_SV_FN:
+ pblock->pb_mr_index_sv_fn = (IFP) value;
+ break;
/* matching rule plugin arguments */
case SLAPI_PLUGIN_MR_OID: