summaryrefslogtreecommitdiff
path: root/include/asterisk/module.h
diff options
context:
space:
mode:
authorMatthew Nicholson <mnicholson@digium.com>2011-10-10 14:16:27 +0000
committerMatthew Nicholson <mnicholson@digium.com>2011-10-10 14:16:27 +0000
commitbb07ca66a174bdf92bbdfcc4f58c9065c90b3af3 (patch)
tree51dd35a6ca2c2285c9414e4bcec538b835fc0ddc /include/asterisk/module.h
parent7cb2ac866495b44b5525fc34650478114f40182e (diff)
Merged revisions 340109 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/10 ................ r340109 | mnicholson | 2011-10-10 09:15:41 -0500 (Mon, 10 Oct 2011) | 18 lines Merged revisions 340108 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.8 ........ r340108 | mnicholson | 2011-10-10 09:14:48 -0500 (Mon, 10 Oct 2011) | 11 lines Load the proper XML documentation when multiple modules document the same application. This patch adds an optional "module" attribute to the XML documentation spec that allows the documentation processor to match apps with identical names from different modules to their documentation. This patch also fixes a number of bugs with the documentation processor and should make it a little more efficient. Support for multiple languages has also been properly implemented. ASTERISK-18130 Review: https://reviewboard.asterisk.org/r/1485/ ........ ................ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@340110 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk/module.h')
-rw-r--r--include/asterisk/module.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asterisk/module.h b/include/asterisk/module.h
index aaa8cbef3..db9c5b465 100644
--- a/include/asterisk/module.h
+++ b/include/asterisk/module.h
@@ -175,6 +175,14 @@ char *ast_module_helper(const char *line, const char *word, int pos, int state,
struct ast_module;
+/*!
+ * \brief Get the name of a module.
+ * \param mod A pointer to the module.
+ * \return the name of the module
+ * \retval NULL if mod or mod->info is NULL
+ */
+const char *ast_module_name(const struct ast_module *mod);
+
/* User count routines keep track of which channels are using a given module
resource. They can help make removing modules safer, particularly if
they're in use at the time they have been requested to be removed */