diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-10-08 18:20:49 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2004-10-08 18:20:49 +0000 |
commit | c930a4479cb2c64fb6478a71eccd1254c0850bc2 (patch) | |
tree | 35f55cb3606cae448a84ff414d3ab41247842e0c /loader.c | |
parent | 4c7b19fa13c970f77183e26a3df10bc6046ac9c2 (diff) |
Minor config updates, add module counts (bug #2593)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3953 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'loader.c')
-rwxr-xr-x | loader.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -464,16 +464,18 @@ int ast_update_module_list(int (*modentry)(char *module, char *description, int { struct module *m; int unlock = -1; + int total_mod_loaded = 0; if (ast_mutex_trylock(&modlock)) unlock = 0; m = module_list; while(m) { modentry(m->resource, m->description(), m->usecount()); m = m->next; + total_mod_loaded++; } if (unlock) ast_mutex_unlock(&modlock); - return 0; + return total_mod_loaded; } int ast_loader_register(int (*v)(void)) |