summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/include/ldb_private.h
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-03-05 16:05:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:52:14 -0500
commit5d0aa16dfcf3047a52d3dd7e12ffb704a9725e83 (patch)
tree8a9ae36a29652dec9dbb5138ba3c0dee86b8e32d /source4/lib/ldb/include/ldb_private.h
parent8edf29e8ef4d886321a6e8ec3902065641d34f40 (diff)
downloadsamba-5d0aa16dfcf3047a52d3dd7e12ffb704a9725e83.tar.gz
samba-5d0aa16dfcf3047a52d3dd7e12ffb704a9725e83.tar.bz2
samba-5d0aa16dfcf3047a52d3dd7e12ffb704a9725e83.zip
r13839: Use registration mechanism for backends as well (in the same sense
my previous patch added it for modules). This is the next step towards LDB backends and modules as run-time loadable .so files. (This used to be commit fb2f70de4f6c4a9b13ad590cb4d3a9c858cede49)
Diffstat (limited to 'source4/lib/ldb/include/ldb_private.h')
-rw-r--r--source4/lib/ldb/include/ldb_private.h21
1 files changed, 6 insertions, 15 deletions
diff --git a/source4/lib/ldb/include/ldb_private.h b/source4/lib/ldb/include/ldb_private.h
index ba6823559f..52ea0f833d 100644
--- a/source4/lib/ldb/include/ldb_private.h
+++ b/source4/lib/ldb/include/ldb_private.h
@@ -64,6 +64,7 @@ struct ldb_module_ops {
int (*async_wait)(struct ldb_module *, struct ldb_async_handle *, enum ldb_async_wait_type);
};
+typedef int (*ldb_connect_fn) (struct ldb_context *ldb, const char *url, unsigned int flags, const char *options[]);
/*
schema related information needed for matching rules
@@ -133,6 +134,7 @@ void ldb_set_errstring(struct ldb_context *ldb, char *err_string);
void ldb_reset_err_string(struct ldb_context *ldb);
int ldb_register_module(const struct ldb_module_ops *);
+int ldb_register_backend(const char *url_prefix, ldb_connect_fn);
/* The following definitions come from lib/ldb/common/ldb_debug.c */
void ldb_debug(struct ldb_context *ldb, enum ldb_debug_level level, const char *fmt, ...) PRINTF_ATTRIBUTE(3, 4);
@@ -142,27 +144,16 @@ void ldb_debug_set(struct ldb_context *ldb, enum ldb_debug_level level,
/* The following definitions come from lib/ldb/common/ldb_ldif.c */
int ldb_should_b64_encode(const struct ldb_val *val);
-int ltdb_connect(struct ldb_context *ldb, const char *url,
- unsigned int flags,
- const char *options[]);
-int lldb_connect(struct ldb_context *ldb, const char *url,
- unsigned int flags,
- const char *options[]);
-int ildb_connect(struct ldb_context *ldb,
- const char *url,
- unsigned int flags,
- const char *options[]);
-int lsqlite3_connect(struct ldb_context *ldb,
- const char *url,
- unsigned int flags,
- const char *options[]);
-
int ldb_objectclass_init(void);
int ldb_operational_init(void);
int ldb_paged_results_init(void);
int ldb_rdn_name_init(void);
int ldb_schema_init(void);
int ldb_sort_init(void);
+int ldb_ldap_init(void);
+int ldb_ildap_init(void);
+int ldb_tdb_init(void);
+int ldb_sqlite3_init(void);
int ldb_match_msg(struct ldb_context *ldb,
struct ldb_message *msg,