summaryrefslogtreecommitdiff
path: root/source4/lib/ldb/common
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2009-01-30 10:18:52 -0500
committerSimo Sorce <idra@samba.org>2009-01-30 10:18:52 -0500
commit1f2b5ea97c7957f4f49fdea67960e7c08888e505 (patch)
tree71f71084344d64cb6dbcb6635f1d922f2889783c /source4/lib/ldb/common
parentd93634b7dd753109a5a3621ea7ab610acba8cb65 (diff)
downloadsamba-1f2b5ea97c7957f4f49fdea67960e7c08888e505.tar.gz
samba-1f2b5ea97c7957f4f49fdea67960e7c08888e505.tar.bz2
samba-1f2b5ea97c7957f4f49fdea67960e7c08888e505.zip
Add helper function to get a module name, may be useful for debugging.
Diffstat (limited to 'source4/lib/ldb/common')
-rw-r--r--source4/lib/ldb/common/ldb_modules.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source4/lib/ldb/common/ldb_modules.c b/source4/lib/ldb/common/ldb_modules.c
index 03d1e6ebe2..99a47767e1 100644
--- a/source4/lib/ldb/common/ldb_modules.c
+++ b/source4/lib/ldb/common/ldb_modules.c
@@ -506,6 +506,11 @@ struct ldb_module *ldb_module_new(TALLOC_CTX *memctx,
return module;
}
+const char * ldb_module_get_name(struct ldb_module *module)
+{
+ return module->ops->name;
+}
+
struct ldb_context *ldb_module_get_ctx(struct ldb_module *module)
{
return module->ldb;