Bring in the new loader code as described in mantis #4377

and updated to today's version.

The core of the patch is only two files, loader.c
and include/asterisk/module.h, with the other files
touched only to adapt non-standard usages of the
reference counts and localuser lists.



git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@15784 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Luigi Rizzo
2006-03-28 21:15:10 +00:00
parent f7debd1823
commit 2326d0d499
13 changed files with 662 additions and 140 deletions

View File

@@ -740,12 +740,6 @@ int unload_module(void)
ASTOBJ_CONTAINER_DESTROYALL(&smdi_ifaces, ast_smdi_interface_destroy);
ASTOBJ_CONTAINER_DESTROY(&smdi_ifaces);
/*
* localusers = NULL; is just to silence the compiler warning
* about an unused variable. It will be removed soon, when the
* LOCALUSER-related functions are rewritten.
*/
localusers = NULL;
return 0;
}