summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/include
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2009-11-05 16:56:05 +1100
committerAndrew Bartlett <abartlet@samba.org>2009-11-12 16:34:02 +1100
commit3abc3e7a3a4e3833c8c08cc21deeaae174887f7f (patch)
tree1fdde18bb6612442d697a241aed62f5197a1f525 /source4/lib/ldb/include
parentfd5174e88ca1727a91d6dc9bf9bd898ff9087fe8 (diff)
downloadsamba-3abc3e7a3a4e3833c8c08cc21deeaae174887f7f.tar.gz
samba-3abc3e7a3a4e3833c8c08cc21deeaae174887f7f.tar.bz2
samba-3abc3e7a3a4e3833c8c08cc21deeaae174887f7f.zip
s4:ldb Add a helper function for 'canonicalise' both strings base compares
This will help simplify boilerplate comparison functions where we don't have a shortcut way to compare. Andrew Bartlett
Diffstat (limited to 'source4/lib/ldb/include')
-rw-r--r--source4/lib/ldb/include/ldb_module.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/lib/ldb/include/ldb_module.h b/source4/lib/ldb/include/ldb_module.h
index 977d485ada..7c18683201 100644
--- a/source4/lib/ldb/include/ldb_module.h
+++ b/source4/lib/ldb/include/ldb_module.h
@@ -99,6 +99,12 @@ void ldb_schema_attribute_set_override_handler(struct ldb_context *ldb,
ldb_attribute_handler_override_fn_t override,
void *private_data);
+/* A useful function to build comparison functions with */
+int ldb_any_comparison(struct ldb_context *ldb, void *mem_ctx,
+ ldb_attr_handler_t canonicalise_fn,
+ const struct ldb_val *v1,
+ const struct ldb_val *v2);
+
/* The following definitions come from lib/ldb/common/ldb_controls.c */
struct ldb_control *get_control_from_list(struct ldb_control **controls, const char *oid);
int save_controls(struct ldb_control *exclude, struct ldb_request *req, struct ldb_control ***saver);