diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-12-31 03:51:42 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:07:48 -0500 |
commit | 09c1b9cbe5175636bcf4b606edfd0022bd9cfd6b (patch) | |
tree | daa546fe5df745feb36663f93dafdb0339aee495 /source4/lib/ldb/include/ldb.h | |
parent | 72ffef24060a36071ce26ff0c39dcf44d74c6551 (diff) | |
download | samba-09c1b9cbe5175636bcf4b606edfd0022bd9cfd6b.tar.gz samba-09c1b9cbe5175636bcf4b606edfd0022bd9cfd6b.tar.bz2 samba-09c1b9cbe5175636bcf4b606edfd0022bd9cfd6b.zip |
r4427: - added ldb_msg_*() functions for sorting, comparing and copying messages
- added a ldb_msg_canonicalize() function that fixes a record to not have any duplicate
elements
- changed ldbedit to use ldb_msg_canonicalize(). This fixes a bug when you rename multiple
elements in a record in one edit
(This used to be commit f006e724400843419c8b6155cbeae1876983855e)
Diffstat (limited to 'source4/lib/ldb/include/ldb.h')
-rw-r--r-- | source4/lib/ldb/include/ldb.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source4/lib/ldb/include/ldb.h b/source4/lib/ldb/include/ldb.h index 03d0cc7a3b..9dff510417 100644 --- a/source4/lib/ldb/include/ldb.h +++ b/source4/lib/ldb/include/ldb.h @@ -293,6 +293,18 @@ double ldb_msg_find_double(const struct ldb_message *msg, const char *ldb_msg_find_string(const struct ldb_message *msg, const char *attr_name, const char *default_value); + +void ldb_msg_sort_elements(struct ldb_message *msg); + +void ldb_msg_free(struct ldb_context *ldb, struct ldb_message *msg); + +struct ldb_message *ldb_msg_copy(struct ldb_context *ldb, + const struct ldb_message *msg); + +struct ldb_message *ldb_msg_canonicalize(struct ldb_context *ldb, + const struct ldb_message *msg); + + struct ldb_val ldb_val_dup(struct ldb_context *ldb, const struct ldb_val *v); |