From 197996c3df81cc82bb12ee87118f112de9921813 Mon Sep 17 00:00:00 2001 From: Amitay Isaacs Date: Fri, 15 Jul 2011 11:23:03 +1000 Subject: ldb: Expose ldb_handler_fold() funcion This allows creation of derived syntax handlers from the base directory string. Signed-off-by: Andrew Tridgell --- lib/ldb/include/ldb_handlers.h | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'lib/ldb') diff --git a/lib/ldb/include/ldb_handlers.h b/lib/ldb/include/ldb_handlers.h index 6e71f1fa01..79d8bb64c2 100644 --- a/lib/ldb/include/ldb_handlers.h +++ b/lib/ldb/include/ldb_handlers.h @@ -30,11 +30,16 @@ * * Author: Simo Sorce */ +#ifndef __LDB_HANDLERS_H__ +#define __LDB_HANDLERS_H__ -int ldb_handler_copy( struct ldb_context *ldb, void *mem_ctx, - const struct ldb_val *in, struct ldb_val *out); -int ldb_comparison_binary( struct ldb_context *ldb, void *mem_ctx, - const struct ldb_val *v1, const struct ldb_val *v2); -int ldb_comparison_fold( struct ldb_context *ldb, void *mem_ctx, - const struct ldb_val *v1, const struct ldb_val *v2); +int ldb_handler_copy(struct ldb_context *ldb, void *mem_ctx, + const struct ldb_val *in, struct ldb_val *out); +int ldb_handler_fold(struct ldb_context *ldb, void *mem_ctx, + const struct ldb_val *in, struct ldb_val *out); +int ldb_comparison_binary(struct ldb_context *ldb, void *mem_ctx, + const struct ldb_val *v1, const struct ldb_val *v2); +int ldb_comparison_fold(struct ldb_context *ldb, void *mem_ctx, + const struct ldb_val *v1, const struct ldb_val *v2); +#endif /* __LDB_HANDLERS_H__ */ -- cgit