diff options
author | Simo Sorce <idra@samba.org> | 2009-01-30 10:18:52 -0500 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2009-01-30 10:18:52 -0500 |
commit | 1f2b5ea97c7957f4f49fdea67960e7c08888e505 (patch) | |
tree | 71f71084344d64cb6dbcb6635f1d922f2889783c /source4/lib/ldb/common/ldb_modules.c | |
parent | d93634b7dd753109a5a3621ea7ab610acba8cb65 (diff) | |
download | samba-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/ldb_modules.c')
-rw-r--r-- | source4/lib/ldb/common/ldb_modules.c | 5 |
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; |