From 6f40a3fc6ae06df6c4d860e42ed66b916964f94d Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Thu, 30 Jan 2003 12:24:32 +0000 Subject: [PATCH] Added slapi_filter_apply() API from Sun ONE DS 5.x --- include/slapi-plugin.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/slapi-plugin.h b/include/slapi-plugin.h index 3da6ea2771..556dcc8614 100644 --- a/include/slapi-plugin.h +++ b/include/slapi-plugin.h @@ -196,6 +196,13 @@ Slapi_Filter *slapi_filter_join( int ftype, Slapi_Filter *f1, Slapi_Filter *f2); int slapi_filter_test( Slapi_PBlock *pb, Slapi_Entry *e, Slapi_Filter *f, int verify_access ); int slapi_filter_test_simple( Slapi_Entry *e, Slapi_Filter *f ); +typedef int (*FILTER_APPLY_FN)( Slapi_Filter *f, void *arg ); +int slapi_filter_apply( Slapi_Filter *f, FILTER_APPLY_FN fn, void *arg, int *error_code ); +#define SLAPI_FILTER_SCAN_STOP -1 +#define SLAPI_FILTER_SCAN_ERROR -2 +#define SLAPI_FILTER_SCAN_NOMORE 0 +#define SLAPI_FILTER_SCAN_CONTINUE 1 +#define SLAPI_FILTER_UNKNOWN_FILTER_TYPE 2 /* set by slapi_filter_apply() */ /* internal add/delete/search/modify routines */ Slapi_PBlock *slapi_search_internal( char *base, int scope, char *filter, -- 2.39.5