From 1f2b5ea97c7957f4f49fdea67960e7c08888e505 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Fri, 30 Jan 2009 10:18:52 -0500 Subject: Add helper function to get a module name, may be useful for debugging. --- source4/lib/ldb/common/ldb_modules.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'source4/lib/ldb/common') 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; -- cgit