diff options
author | Andrew Tridgell <tridge@samba.org> | 2012-04-17 14:01:08 +1000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2012-04-18 07:48:05 +0200 |
commit | 9deb650fa2b93338ca91ccc96a940d670d29cbee (patch) | |
tree | b71a5b514e489f5484390c02a1ea39a38222503f /lib/ldb/include | |
parent | 010f2b89e20e13f4687700fd731fedfafb7c62eb (diff) | |
download | samba-9deb650fa2b93338ca91ccc96a940d670d29cbee.tar.gz samba-9deb650fa2b93338ca91ccc96a940d670d29cbee.tar.bz2 samba-9deb650fa2b93338ca91ccc96a940d670d29cbee.zip |
ldb: added ldb_msg_element_equal_ordered()
this gives us a order sensitive msg element comparison. We need this
to allow dbcheck to fix the order of objectClass attributes.
Diffstat (limited to 'lib/ldb/include')
-rw-r--r-- | lib/ldb/include/ldb_module.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/ldb/include/ldb_module.h b/lib/ldb/include/ldb_module.h index 4ecddc4ab1..389e8cef71 100644 --- a/lib/ldb/include/ldb_module.h +++ b/lib/ldb/include/ldb_module.h @@ -359,4 +359,9 @@ int ldb_parse_tree_walk(struct ldb_parse_tree *tree, int (*callback)(struct ldb_parse_tree *tree, void *), void *private_context); +/* compare two message elements with ordering - used by modify */ +bool ldb_msg_element_equal_ordered(const struct ldb_message_element *el1, + const struct ldb_message_element *el2); + + #endif |