summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/include/ldb_module.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-04-09 14:40:19 +1000
committerAndrew Tridgell <tridge@samba.org>2009-04-09 14:40:19 +1000
commit65ad2ced6049f2901080cff61489fee7f4929c74 (patch)
tree2421edc608db8a094113fd6ba876598329a5c060 /source4/lib/ldb/include/ldb_module.h
parente5702da72c752e913ff869bce341ca9799d10974 (diff)
parent9d50c6b60364462daa68887fd64b59dd761a5133 (diff)
downloadsamba-65ad2ced6049f2901080cff61489fee7f4929c74.tar.gz
samba-65ad2ced6049f2901080cff61489fee7f4929c74.tar.bz2
samba-65ad2ced6049f2901080cff61489fee7f4929c74.zip
Merge branch 'wspp-schema'
Diffstat (limited to 'source4/lib/ldb/include/ldb_module.h')
-rw-r--r--source4/lib/ldb/include/ldb_module.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/lib/ldb/include/ldb_module.h b/source4/lib/ldb/include/ldb_module.h
index e07fd43e27..d9950d6649 100644
--- a/source4/lib/ldb/include/ldb_module.h
+++ b/source4/lib/ldb/include/ldb_module.h
@@ -89,6 +89,13 @@ int ldb_schema_attribute_add(struct ldb_context *ldb,
const char *syntax);
void ldb_schema_attribute_remove(struct ldb_context *ldb, const char *name);
+/* we allow external code to override the name -> schema_attribute function */
+typedef const struct ldb_schema_attribute *(*ldb_attribute_handler_override_fn_t)(struct ldb_context *, void *, const char *);
+
+void ldb_schema_attribute_set_override_handler(struct ldb_context *ldb,
+ ldb_attribute_handler_override_fn_t override,
+ void *private_data);
+
/* 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);