summaryrefslogtreecommitdiff
path: root/include/asterisk
diff options
context:
space:
mode:
authorMatt Jordan <mjordan@digium.com>2015-07-10 21:46:38 -0500
committerGerrit Code Review <gerrit2@gerrit.digium.api>2015-07-10 21:46:38 -0500
commite51d86682a33ab410c3fa0ceb069657614915ef9 (patch)
tree4aa1c12332edd053ed6ee29bdb7d2aac86310ac3 /include/asterisk
parent37e1c479cac3aad5c4e45ec1037a800c157cd010 (diff)
parent47ea312b2402bf31a0f1ccb9d73a6b8b7d814b09 (diff)
Merge "ARI: Added new functionality to get all module information." into 13
Diffstat (limited to 'include/asterisk')
-rw-r--r--include/asterisk/module.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/asterisk/module.h b/include/asterisk/module.h
index 6d5e04dfc..0d1eb4eb6 100644
--- a/include/asterisk/module.h
+++ b/include/asterisk/module.h
@@ -161,6 +161,24 @@ int ast_update_module_list(int (*modentry)(const char *module, const char *descr
const char *like);
/*!
+ * \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
+ *
+ * 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
+ * \since 13.5.0
+ */
+int ast_update_module_list_data(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 *like, void *data);
+
+/*!
* \brief Check if module with the name given is loaded
* \param name Module name, like "chan_sip.so"
* \retval 1 if true