diff options
author | Michael L. Young <elgueromexicano@gmail.com> | 2013-02-19 17:17:10 +0000 |
---|---|---|
committer | Michael L. Young <elgueromexicano@gmail.com> | 2013-02-19 17:17:10 +0000 |
commit | d1f8e338b0713975e5b42654f9e771acffb713d4 (patch) | |
tree | 5c966886ed4b57e1ba31837388e49dc9a6ec24bb /include/asterisk | |
parent | f2774606707582097e24054659f0d77c162eded7 (diff) |
Add The Status Of A Module To The Output Of "CLI> module show"
When a module's configuration is not loadable, we still load the module but it
is not in a running state. When trying to troubleshoot, let's say, why
chan_motif is ignoring inbound XMPP traffic, there is no way to indicate that a
loaded module is not currently running.
(closes issue ASTERISK-21108)
Reported by: Rusty Newton
Tested by: Michael L. Young
Patches:
asterisk-21108_add_status-v2.diff Michael L. Young (license 5026)
Review: https://reviewboard.asterisk.org/r/2331/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@381749 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'include/asterisk')
-rw-r--r-- | include/asterisk/module.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/asterisk/module.h b/include/asterisk/module.h index 46628586f..a78160749 100644 --- a/include/asterisk/module.h +++ b/include/asterisk/module.h @@ -110,17 +110,17 @@ int ast_unload_resource(const char *resource_name, enum ast_module_unload_mode); */ void ast_update_use_count(void); -/*! - * \brief Ask for a list of modules, descriptions, and use counts. +/*! + * \brief Ask for a list of modules, descriptions, use counts and status. * \param modentry A callback to an updater function. * \param like * * For each of the modules loaded, modentry will be executed with the resource, * description, and usecount values of each particular module. - * + * * \return the number of modules loaded */ -int ast_update_module_list(int (*modentry)(const char *module, const char *description, int usecnt, const char *like), +int ast_update_module_list(int (*modentry)(const char *module, const char *description, int usecnt, const char *status, const char *like), const char *like); /*! |