summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/include
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2009-09-20 05:41:42 +0200
committerStefan Metzmacher <metze@samba.org>2009-09-20 06:44:16 +0200
commit46dab92a2ddb4af3706de15894acc54b0b2b8d7b (patch)
treeb125c36472117f9bf2cf86f2bbfc4efe437a6946 /source4/lib/ldb/include
parentc14b2eb8ddba17b6e349038671124e70a66e6723 (diff)
downloadsamba-46dab92a2ddb4af3706de15894acc54b0b2b8d7b.tar.gz
samba-46dab92a2ddb4af3706de15894acc54b0b2b8d7b.tar.bz2
samba-46dab92a2ddb4af3706de15894acc54b0b2b8d7b.zip
s4:ldb: add ldb_parse_tree_copy_shallow() and change version to 0.9.7
metze
Diffstat (limited to 'source4/lib/ldb/include')
-rw-r--r--source4/lib/ldb/include/ldb.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/lib/ldb/include/ldb.h b/source4/lib/ldb/include/ldb.h
index 2c89031919..047e66c8b7 100644
--- a/source4/lib/ldb/include/ldb.h
+++ b/source4/lib/ldb/include/ldb.h
@@ -1835,6 +1835,12 @@ void ldb_parse_tree_attr_replace(struct ldb_parse_tree *tree,
const char *attr,
const char *replace);
+/*
+ shallow copy a tree - copying only the elements array so that the caller
+ can safely add new elements without changing the message
+*/
+struct ldb_parse_tree *ldb_parse_tree_copy_shallow(TALLOC_CTX *mem_ctx,
+ const struct ldb_parse_tree *ot);
/**
Convert a time structure to a string