summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Michelson <mmichelson@digium.com>2015-07-13 15:15:44 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2015-07-13 15:15:44 -0500
commit585d98fbb68495694bf60a811c711d541aade548 (patch)
tree45b75f021ce9ac017989bf96112597625626e2ab /include
parentca65ddcd199dca4681055b51fc63b906e48f1950 (diff)
parent73e35d20deb57281874939f553fea9fdced2e260 (diff)
Merge "ARI: Added new functionality to get information on a single module." into 13
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/module.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/asterisk/module.h b/include/asterisk/module.h
index 0d1eb4eb6..d201aacc8 100644
--- a/include/asterisk/module.h
+++ b/include/asterisk/module.h
@@ -179,6 +179,25 @@ int ast_update_module_list_data(int (*modentry)(const char *module, const char *
const char *like, void *data);
/*!
+ * \brief Ask for a list of modules, descriptions, use counts and status.
+ * \param modentry A callback to an updater function
+ * \param like
+ * \param data Data passed into the callback for manipulation
+ * \param condition The condition to meet
+ *
+ * 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 conditions met
+ * \since 13.5.0
+ */
+int ast_update_module_list_condition(int (*modentry)(const char *module, const char *description,
+ int usecnt, const char *status, const char *like,
+ enum ast_module_support_level support_level,
+ void *data, const char *condition),
+ const char *like, void *data, const char *condition);
+
+/*!
* \brief Check if module with the name given is loaded
* \param name Module name, like "chan_sip.so"
* \retval 1 if true