Module: sip-router Branch: andrei/mod_f_params Commit: 2873d3842c3bf2585200f381473a5b3f171ab8b0 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=2873d384...
Author: Andrei Pelinescu-Onciul andrei@iptel.org Committer: Andrei Pelinescu-Onciul andrei@iptel.org Date: Tue Nov 18 00:48:59 2008 +0100
dual module interface support: ser and kamailio
Added support for both ser and kamailio module interfaces: a module just needs to define its module interface prior to including sr_module.h (e.g. by adding EXTRA_DEFS+=-DSER_MOD_INTERFACE for a ser module or EXTRA_DEFS+=-DKAMAILIO_MOD_INTERFACE to the module Makefile). This way ser and kamailio modules can be mixed at will with only one Makefile change. Under the hood, now each module declares its interface version (by exporting a global symbol named module_interface_ver) and the internal module loader and module export finder were updated to take the interface version into account. Internally the core works now with a generic module_export_u union.
---
action.c | 13 ++- cfg.y | 8 +- core_cmd.c | 6 +- modparam.c | 12 +- route.c | 8 +- sr_module.c | 393 ++++++++++++++++++++++++++++++++++++++++++++--------------- sr_module.h | 172 ++++++++++++++++++++++++-- 7 files changed, 482 insertions(+), 130 deletions(-)
Diff: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=2873...