]> git.sur5r.net Git - openldap/commitdiff
Added slapi_filter_apply() API from Sun ONE DS 5.x
authorLuke Howard <lukeh@openldap.org>
Thu, 30 Jan 2003 12:24:32 +0000 (12:24 +0000)
committerLuke Howard <lukeh@openldap.org>
Thu, 30 Jan 2003 12:24:32 +0000 (12:24 +0000)
include/slapi-plugin.h

index 3da6ea27719db23b2ef2df9d4c7b4fa33b928b45..556dcc8614a13a1eae17d5de61f6c7f6aa01888f 100644 (file)
@@ -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,