]> git.ipfire.org Git - thirdparty/asterisk.git/commit
loader: Flag module as declined in all cases where it fails to load.
authorCorey Farrell <git@cfware.com>
Thu, 4 Oct 2018 23:33:25 +0000 (19:33 -0400)
committerCorey Farrell <git@cfware.com>
Thu, 4 Oct 2018 23:45:26 +0000 (18:45 -0500)
commitc6ee3cf639d255ac01f050b837ab04f16aa1e55d
tree0876e0f30254ecd3e98f1ad7b71d487d64826f2f
parent6fd21a6af6ae68bcff04abf31b6f7fc548f77519
loader: Flag module as declined in all cases where it fails to load.

This has no effect on startup since AST_MODULE_LOAD_FAILURE aborts
startup, but it's possible for this code to be returned on manual load
of a module after startup.

It is an error for a module to not have a load callback but this is not
a fatal system error.  In this case flag the module as declined, return
AST_MODULE_LOAD_FAILURE only if a required module is broken.

Expand doxygen documentation for AST_MODULE_LOAD_*.

Change-Id: I3c030bb917f6e5a0dfd9d91491a4661b348cabf8
include/asterisk/module.h
main/loader.c