aboutsummaryrefslogtreecommitdiffstats
path: root/loader.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-10-14 04:38:29 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2004-10-14 04:38:29 +0000
commit850b151d70bb9a1dc28edd3c0d737b57b1ab43cc (patch)
treedc7852a42c6ac4b2dcd0347227e5e32c35724d4b /loader.c
parentfadccdf07b004e12dfe0d8d394527cf4d8c7e060 (diff)
Add option for "show modules like" (bug #2643)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3996 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'loader.c')
-rwxr-xr-xloader.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/loader.c b/loader.c
index 09d406541..b042301bf 100755
--- a/loader.c
+++ b/loader.c
@@ -314,16 +314,16 @@ int ast_load_resource(char *resource_name)
ast_verbose(VERBOSE_PREFIX_1 "Loaded %s => (%s)\n", fn, m->description());
}
- // add module 'm' to end of module_list chain
- // so reload commands will be issued in same order modules were loaded
+ /* add module 'm' to end of module_list chain
+ so reload commands will be issued in same order modules were loaded */
m->next = NULL;
if (module_list == NULL) {
- // empty list so far, add at front
+ /* empty list so far, add at front */
module_list = m;
}
else {
struct module *i;
- // find end of chain, and add there
+ /* find end of chain, and add there */
for (i = module_list; i->next; i = i->next)
;
i->next = m;
@@ -460,7 +460,7 @@ void ast_update_use_count(void)
}
-int ast_update_module_list(int (*modentry)(char *module, char *description, int usecnt))
+int ast_update_module_list(int (*modentry)(char *module, char *description, int usecnt, char *like), char *like)
{
struct module *m;
int unlock = -1;
@@ -469,9 +469,8 @@ int ast_update_module_list(int (*modentry)(char *module, char *description, int
unlock = 0;
m = module_list;
while(m) {
- modentry(m->resource, m->description(), m->usecount());
+ total_mod_loaded += modentry(m->resource, m->description(), m->usecount(), like);
m = m->next;
- total_mod_loaded++;
}
if (unlock)
ast_mutex_unlock(&modlock);