[Asterisk-code-review] ARI: Added new functionality to get all module information. (asterisk[13])
Benjamin Keith Ford
asteriskteam at digium.com
Fri Jun 26 14:03:19 CDT 2015
Benjamin Keith Ford has posted comments on this change.
Change subject: ARI: Added new functionality to get all module information.
......................................................................
Patch Set 1:
(2 comments)
https://gerrit.asterisk.org/#/c/732/1/main/loader.c
File main/loader.c:
Line 1433: struct ast_module *cur;
: int unlock = -1;
: int total_mod_loaded = 0;
: AST_LIST_HEAD_NOLOCK(, ast_module) alpha_module_list = AST_LIST_HEAD_NOLOCK_INIT_VALUE;
:
: if (AST_DLLIST_LOCK(&module_list)) {
: unlock = 0;
: }
:
: AST_DLLIST_TRAVERSE(&module_list, cur, entry) {
: AST_LIST_INSERT_SORTALPHA(&alpha_module_list, cur, list_entry, resource);
: }
:
: while ((cur = AST_LIST_REMOVE_HEAD(&alpha_module_list, list_entry))) {
: total_mod_loaded += modentry(cur->resource, cur->info->description, cur->usecount,
: cur->flags.running? "Running" : "Not Running", like, cur->info->support_level, data);
: }
:
: if (unlock) {
: AST_DLLIST_UNLOCK(&module_list);
: }
:
: return total_mod_loaded;
> I have a bit of a problem with this function's implementation. It basically
I agree, although I'm not sure how to approach this issue. I'll have to sit on it for awhile. If you have any suggestions, I'm all ears.
https://gerrit.asterisk.org/#/c/732/1/res/ari/resource_asterisk.c
File res/ari/resource_asterisk.c:
Line 157: static int process_module_list(const char *module, const char *description, int usecnt,
> This function is not being called anywhere.
It gets used as the callback for ast_update_module_list_data on line 183.
--
To view, visit https://gerrit.asterisk.org/732
To unsubscribe, visit https://gerrit.asterisk.org/settings
Gerrit-MessageType: comment
Gerrit-Change-Id: I63cbbf0ec0c3544cc45ed2a588dceabe91c5e0b0
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 13
Gerrit-Owner: Benjamin Keith Ford <bford at digium.com>
Gerrit-Reviewer: Benjamin Keith Ford <bford at digium.com>
Gerrit-Reviewer: Mark Michelson <mmichelson at digium.com>
Gerrit-HasComments: Yes
More information about the asterisk-code-review
mailing list