[OpenSIPS-Devel] [OpenSIPS/opensips] c46979: Module deps: Re-order mod_destroy(); Add reverse d...
Liviu Chircu
noreply at github.com
Tue Apr 27 15:36:40 EST 2021
Branch: refs/heads/master
Home: https://github.com/OpenSIPS/opensips
Commit: c46979bc014c7d4053e60dc0803a9c69962d781c
https://github.com/OpenSIPS/opensips/commit/c46979bc014c7d4053e60dc0803a9c69962d781c
Author: Liviu Chircu <liviu at opensips.org>
Date: 2021-04-27 (Tue, 27 Apr 2021)
Changed paths:
M sr_module.c
M sr_module.h
M sr_module_deps.c
M sr_module_deps.h
Log Message:
-----------
Module deps: Re-order mod_destroy(); Add reverse dep support
Expanding on 5deded37fb9, this commit adds two new features:
* the mod_destroy() callbacks are now also ordered using the module
dependencies. By default, modules are destroyed in the
reverse-order of their dependencies (e.g. approximately opposite
to mod_init() callback sequencing)
* using the new DEP_REVERSE_INIT and DEP_REVERSE_DESTROY flags, any
module dependency may be manipulated to behave in the opposite
way, during either startup or shutdown
Related to #2487
More information about the Devel
mailing list