From 501d6d3dd4e3045e069bb2f7a52cf842dd1dfa67 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 10 Apr 2012 17:29:11 +1000 Subject: ldb: Allow access to the line number while reading ldif from a file --- lib/ldb/include/ldb_private.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/ldb/include/ldb_private.h') diff --git a/lib/ldb/include/ldb_private.h b/lib/ldb/include/ldb_private.h index cafc020e29..f07bbc956e 100644 --- a/lib/ldb/include/ldb_private.h +++ b/lib/ldb/include/ldb_private.h @@ -181,4 +181,12 @@ struct ldb_val ldb_binary_decode(TALLOC_CTX *mem_ctx, const char *str); const char *ldb_options_find(struct ldb_context *ldb, const char *options[], const char *option_name); +struct ldif_read_file_state { + FILE *f; + size_t line_no; +}; + +struct ldb_ldif *ldb_ldif_read_file_state(struct ldb_context *ldb, + struct ldif_read_file_state *state); + #endif -- cgit