summaryrefslogtreecommitdiff
path: root/lib/ldb/include
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-04-10 17:29:11 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-04-10 17:37:31 +1000
commit501d6d3dd4e3045e069bb2f7a52cf842dd1dfa67 (patch)
tree4ef9d3f63930a1f228e0e3eb98dcb5736e4c2dd8 /lib/ldb/include
parentc484f259c66ffcf0649dd5ab0d7c86e5c70d31af (diff)
downloadsamba-501d6d3dd4e3045e069bb2f7a52cf842dd1dfa67.tar.gz
samba-501d6d3dd4e3045e069bb2f7a52cf842dd1dfa67.tar.bz2
samba-501d6d3dd4e3045e069bb2f7a52cf842dd1dfa67.zip
ldb: Allow access to the line number while reading ldif from a file
Diffstat (limited to 'lib/ldb/include')
-rw-r--r--lib/ldb/include/ldb_private.h8
1 files changed, 8 insertions, 0 deletions
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