summaryrefslogtreecommitdiff
path: root/include/asterisk/module.h
diff options
context:
space:
mode:
authorBenjamin Ford <bford@digium.com>2015-07-13 10:54:51 -0500
committerBenjamin Keith Ford <bford@digium.com>2015-07-13 14:29:27 -0500
commit6a764db3700b31847138fcbfc7d811b96f99aca2 (patch)
tree95b8e5a4488fd4b59ab0ffa1d420b8a533196544 /include/asterisk/module.h
parent66b57b10f65bee8600c01a0fc03fb491edb7ad76 (diff)
ARI: Added new functionality to get information on a single module.
An http request can be sent to retrieve information on a single module, including the resource name, description, use count, status, and support level. The command "curl -v -u user:pass -X GET 'http://localhost:8088/ari /asterisk/modules/{moduleName}'" (or something similar, depending on configuration) can be run in the terminal to access this new functionality. For more information, see: https://wiki.asterisk.org/wiki.display/~bford/Asterisk+ARI+Resource * Added new ARI functionality * Information on a single module can now be retrieved ASTERISK-25173 Change-Id: Ibce5a94e70ecdf4e90329cf0ba66c33a62d37463
Diffstat (limited to 'include/asterisk/module.h')
-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 59e6c7ed5..9fbeb5ebc 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