Skip to content

Commit

Permalink
add function that is ran after loading a module
Browse files Browse the repository at this point in the history
(cherry picked from commit c6fb6c9)
  • Loading branch information
razvancrainea committed May 27, 2019
1 parent 5dbd97e commit 42b33c4
Show file tree
Hide file tree
Showing 157 changed files with 196 additions and 31 deletions.
1 change: 1 addition & 0 deletions modules/aaa_radius/aaa_radius.c
Expand Up @@ -138,6 +138,7 @@ struct module_exports exports= {
MOD_TYPE_AAA, /* class of this module */
MODULE_VERSION, /* module version */
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
NULL, /* OpenSIPS module dependencies */
cmds, /* exported functions */
acmds, /* exported async functions */
Expand Down
1 change: 1 addition & 0 deletions modules/acc/acc_mod.c
Expand Up @@ -284,6 +284,7 @@ struct module_exports exports= {
MOD_TYPE_DEFAULT,/* class of this module */
MODULE_VERSION, /* module version */
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
&deps, /* OpenSIPS module dependencies */
cmds, /* exported functions */
0, /* exported async functions */
Expand Down
1 change: 1 addition & 0 deletions modules/alias_db/alias_db.c
Expand Up @@ -110,6 +110,7 @@ struct module_exports exports = {
MOD_TYPE_DEFAULT,/* class of this module */
MODULE_VERSION, /* module version */
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
&deps, /* OpenSIPS module dependencies */
cmds, /* Exported functions */
0, /* Exported async functions */
Expand Down
1 change: 1 addition & 0 deletions modules/auth/auth_mod.c
Expand Up @@ -176,6 +176,7 @@ struct module_exports exports = {
MOD_TYPE_DEFAULT,/* class of this module */
MODULE_VERSION, /* module version */
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
&deps, /* OpenSIPS module dependencies */
cmds,
0,
Expand Down
1 change: 1 addition & 0 deletions modules/auth_aaa/authaaa_mod.c
Expand Up @@ -106,6 +106,7 @@ struct module_exports exports = {
MOD_TYPE_DEFAULT,/* class of this module */
MODULE_VERSION, /* module version */
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
&deps, /* OpenSIPS module dependencies */
cmds, /* Exported functions */
0, /* Exported async functions */
Expand Down
1 change: 1 addition & 0 deletions modules/auth_db/authdb_mod.c
Expand Up @@ -153,6 +153,7 @@ struct module_exports exports = {
MOD_TYPE_DEFAULT,/* class of this module */
MODULE_VERSION,
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
&deps, /* OpenSIPS module dependencies */
cmds, /* Exported functions */
0, /* Exported async functions */
Expand Down
1 change: 1 addition & 0 deletions modules/avpops/avpops.c
Expand Up @@ -220,6 +220,7 @@ struct module_exports exports = {
MOD_TYPE_DEFAULT,/* class of this module */
MODULE_VERSION, /* module version */
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
&deps, /* OpenSIPS module dependencies */
cmds, /* Exported functions */
acmds, /* Exported async functions */
Expand Down
1 change: 1 addition & 0 deletions modules/b2b_entities/b2b_entities.c
Expand Up @@ -125,6 +125,7 @@ struct module_exports exports= {
MOD_TYPE_DEFAULT, /* class of this module */
MODULE_VERSION, /* module version */
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
&deps, /* OpenSIPS module dependencies */
cmds, /* exported functions */
NULL, /* exported async functions */
Expand Down
1 change: 1 addition & 0 deletions modules/b2b_logic/b2b_logic.c
Expand Up @@ -185,6 +185,7 @@ struct module_exports exports= {
MOD_TYPE_DEFAULT, /* class of this module */
MODULE_VERSION, /* module version */
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
&deps, /* OpenSIPS module dependencies */
cmds, /* exported functions */
0, /* exported async functions */
Expand Down
1 change: 1 addition & 0 deletions modules/b2b_sca/b2b_sca.c
Expand Up @@ -180,6 +180,7 @@ struct module_exports exports= {
MOD_TYPE_DEFAULT, /* class of this module */
MODULE_VERSION, /* module version */
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
&deps, /* OpenSIPS module dependencies */
cmds, /* exported functions */
0, /* exported async functions */
Expand Down
3 changes: 2 additions & 1 deletion modules/benchmark/benchmark.c
Expand Up @@ -157,7 +157,8 @@ struct module_exports exports = {
MOD_TYPE_DEFAULT,/* class of this module */
MODULE_VERSION,
DEFAULT_DLFLAGS,
NULL, /* OpenSIPS module dependencies */
0, /* load function */
NULL, /* OpenSIPS module dependencies */
cmds, /* Exported functions */
0, /* Exported async functions */
params, /* Exported parameters */
Expand Down
1 change: 1 addition & 0 deletions modules/cachedb_cassandra/cachedb_cassandra.c
Expand Up @@ -71,6 +71,7 @@ struct module_exports exports= {
MOD_TYPE_CACHEDB,/* class of this module */
MODULE_VERSION,
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
NULL, /* OpenSIPS module dependencies */
NULL, /* exported functions */
0, /* exported async functions */
Expand Down
1 change: 1 addition & 0 deletions modules/cachedb_couchbase/cachedb_couchbase.c
Expand Up @@ -71,6 +71,7 @@ struct module_exports exports= {
MOD_TYPE_CACHEDB,/* class of this module */
MODULE_VERSION,
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
NULL, /* OpenSIPS module dependencies */
0, /* exported functions */
0, /* exported async functions */
Expand Down
3 changes: 2 additions & 1 deletion modules/cachedb_local/cachedb_local.c
Expand Up @@ -93,7 +93,8 @@ struct module_exports exports= {
MOD_TYPE_CACHEDB,/* class of this module */
MODULE_VERSION,
DEFAULT_DLFLAGS, /* dlopen flags */
NULL, /* OpenSIPS module dependencies */
0, /* load functionpen flags */
NULL, /* OpenSIPS module dependencies */
cmds, /* exported functions */
0, /* exported async functions */
params, /* exported parameters */
Expand Down
1 change: 1 addition & 0 deletions modules/cachedb_memcached/cachedb_memcached.c
Expand Up @@ -85,6 +85,7 @@ struct module_exports exports= {
MOD_TYPE_CACHEDB,/* class of this module */
MODULE_VERSION,
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
NULL, /* OpenSIPS module dependencies */
0, /* exported functions */
0, /* exported async functions */
Expand Down
1 change: 1 addition & 0 deletions modules/cachedb_mongodb/cachedb_mongodb.c
Expand Up @@ -80,6 +80,7 @@ struct module_exports exports= {
MOD_TYPE_CACHEDB,/* class of this module */
MODULE_VERSION,
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
&deps, /* OpenSIPS module dependencies */
0, /* exported functions */
0, /* exported async functions */
Expand Down
1 change: 1 addition & 0 deletions modules/cachedb_redis/cachedb_redis.c
Expand Up @@ -67,6 +67,7 @@ struct module_exports exports= {
MOD_TYPE_CACHEDB,/* class of this module */
MODULE_VERSION,
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
NULL, /* OpenSIPS module dependencies */
0, /* exported functions */
0, /* exported async functions */
Expand Down
1 change: 1 addition & 0 deletions modules/cachedb_sql/cachedb_sql.c
Expand Up @@ -98,6 +98,7 @@ struct module_exports exports = {
MOD_TYPE_CACHEDB,/* class of this module */
MODULE_VERSION,
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
NULL, /* OpenSIPS module dependencies */
0, /* exported functions */
0, /* exported async functions */
Expand Down
1 change: 1 addition & 0 deletions modules/call_center/call_center.c
Expand Up @@ -149,6 +149,7 @@ struct module_exports exports= {
MOD_TYPE_DEFAULT,/* class of this module */
MODULE_VERSION,
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
&deps, /* OpenSIPS module dependencies */
cmds, /* exported functions */
0, /* exported async functions */
Expand Down
1 change: 1 addition & 0 deletions modules/call_control/call_control.c
Expand Up @@ -194,6 +194,7 @@ struct module_exports exports = {
MOD_TYPE_DEFAULT,// class of this module
MODULE_VERSION, // module version
DEFAULT_DLFLAGS, // dlopen flags
0, // load function
&deps, // OpenSIPS module dependencies
commands, // exported functions
0, // exported async functions
Expand Down
1 change: 1 addition & 0 deletions modules/carrierroute/carrierroute.c
Expand Up @@ -219,6 +219,7 @@ struct module_exports exports = {
MOD_TYPE_DEFAULT,/* class of this module */
MODULE_VERSION, /* module version*/
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
&deps, /* OpenSIPS module dependencies */
cmds, /* Exported functions */
0, /* Exported async functions */
Expand Down
1 change: 1 addition & 0 deletions modules/cfgutils/cfgutils.c
Expand Up @@ -236,6 +236,7 @@ struct module_exports exports = {
MOD_TYPE_DEFAULT,/* class of this module */
MODULE_VERSION, /* module version */
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
NULL, /* OpenSIPS module dependencies */
cmds, /* exported functions */
acmds, /* exported async functions */
Expand Down
1 change: 1 addition & 0 deletions modules/cgrates/cgrates.c
Expand Up @@ -157,6 +157,7 @@ struct module_exports exports = {
MOD_TYPE_DEFAULT,/* class of this module */
MODULE_VERSION,
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
&deps, /* OpenSIPS module dependencies */
cmds,
acmds,
Expand Down
1 change: 1 addition & 0 deletions modules/clusterer/clusterer_mod.c
Expand Up @@ -194,6 +194,7 @@ struct module_exports exports = {
MOD_TYPE_DEFAULT, /* class of this module */
MODULE_VERSION,
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
&deps, /* OpenSIPS module dependencies */
cmds, /* exported functions */
0, /* exported async functions */
Expand Down
1 change: 1 addition & 0 deletions modules/compression/compression.c
Expand Up @@ -178,6 +178,7 @@ struct module_exports exports= {
MOD_TYPE_DEFAULT, /* class of this module */
MODULE_VERSION,
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
NULL, /* module dependencies */
cmds, /* exported functions */
0, /* exported async functions */
Expand Down
1 change: 1 addition & 0 deletions modules/cpl_c/cpl.c
Expand Up @@ -187,6 +187,7 @@ struct module_exports exports = {
MOD_TYPE_DEFAULT,/* class of this module */
MODULE_VERSION, /* module version */
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
&deps, /* OpenSIPS module dependencies */
cmds, /* Exported functions */
0, /* Exported async functions */
Expand Down
1 change: 1 addition & 0 deletions modules/db_berkeley/db_berkeley.c
Expand Up @@ -95,6 +95,7 @@ struct module_exports exports = {
MOD_TYPE_SQLDB,/* class of this module */
MODULE_VERSION,
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
NULL, /* OpenSIPS module dependencies */
cmds, /* Exported functions */
0, /* Exported async functions */
Expand Down
1 change: 1 addition & 0 deletions modules/db_cachedb/db_cachedb.c
Expand Up @@ -75,6 +75,7 @@ struct module_exports exports = {
MOD_TYPE_SQLDB, /* class of this module */
MODULE_VERSION,
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
&deps, /* OpenSIPS module dependencies */
cmds,
NULL,
Expand Down
1 change: 1 addition & 0 deletions modules/db_flatstore/flatstore_mod.c
Expand Up @@ -116,6 +116,7 @@ struct module_exports exports = {
MOD_TYPE_SQLDB,/* class of this module */
MODULE_VERSION,
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
NULL, /* OpenSIPS module dependencies */
cmds,
0,
Expand Down
1 change: 1 addition & 0 deletions modules/db_http/db_http.c
Expand Up @@ -82,6 +82,7 @@ struct module_exports exports = {
MOD_TYPE_SQLDB, /* class of this module */
MODULE_VERSION,
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
NULL, /* OpenSIPS module dependencies */
cmds,
0,
Expand Down
1 change: 1 addition & 0 deletions modules/db_mysql/db_mysql.c
Expand Up @@ -80,6 +80,7 @@ struct module_exports exports = {
MOD_TYPE_SQLDB, /* class of this module */
MODULE_VERSION,
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
NULL, /* OpenSIPS module dependencies */
cmds,
0, /* exported async functions */
Expand Down
1 change: 1 addition & 0 deletions modules/db_oracle/db_oracle.c
Expand Up @@ -62,6 +62,7 @@ struct module_exports exports = {
MOD_TYPE_SQLDB, /* class of this module */
MODULE_VERSION,
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
NULL, /* OpenSIPS module dependencies */
cmds,
0,
Expand Down
1 change: 1 addition & 0 deletions modules/db_perlvdb/perlvdb.c
Expand Up @@ -73,6 +73,7 @@ struct module_exports exports = {
MOD_TYPE_SQLDB,/* class of this module */
MODULE_VERSION,
RTLD_NOW | RTLD_GLOBAL, /* dlopen flags */
0, /* load function */
&deps, /* OpenSIPS module dependencies */
cmds,
0,
Expand Down
1 change: 1 addition & 0 deletions modules/db_postgres/db_postgres.c
Expand Up @@ -77,6 +77,7 @@ struct module_exports exports = {
MOD_TYPE_SQLDB, /* class of this module */
MODULE_VERSION,
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
&deps, /* OpenSIPS module dependencies */
cmds, /* module functions */
0, /* module async functions */
Expand Down
1 change: 1 addition & 0 deletions modules/db_sqlite/db_sqlite.c
Expand Up @@ -69,6 +69,7 @@ struct module_exports exports = {
MOD_TYPE_SQLDB, /* class of this module */
MODULE_VERSION,
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
NULL, /* OpenSIPS module dependencies */
cmds,
0, /* exported async functions */
Expand Down
1 change: 1 addition & 0 deletions modules/db_text/dbtext.c
Expand Up @@ -81,6 +81,7 @@ struct module_exports exports = {
MOD_TYPE_SQLDB,/* class of this module */
MODULE_VERSION,
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
NULL, /* OpenSIPS module dependencies */
cmds, /* Exported functions */
NULL, /* Exported async functions */
Expand Down
1 change: 1 addition & 0 deletions modules/db_unixodbc/db_unixodbc.c
Expand Up @@ -62,6 +62,7 @@ struct module_exports exports = {
MOD_TYPE_SQLDB,/* class of this module */
MODULE_VERSION,
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
NULL, /* OpenSIPS module dependencies */
cmds,
0,
Expand Down
1 change: 1 addition & 0 deletions modules/db_virtual/db_virtual.c
Expand Up @@ -120,6 +120,7 @@ struct module_exports exports = {
MOD_TYPE_SQLDB, /* class of this module */
MODULE_VERSION,
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
&deps, /* OpenSIPS module dependencies */
cmds,
0,
Expand Down
1 change: 1 addition & 0 deletions modules/dialog/dialog.c
Expand Up @@ -380,6 +380,7 @@ struct module_exports exports= {
MOD_TYPE_DEFAULT,/* class of this module */
MODULE_VERSION,
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
&deps, /* OpenSIPS module dependencies */
cmds, /* exported functions */
0, /* exported async functions */
Expand Down
1 change: 1 addition & 0 deletions modules/dialplan/dialplan.c
Expand Up @@ -131,6 +131,7 @@ struct module_exports exports= {
MOD_TYPE_DEFAULT,/* class of this module */
MODULE_VERSION,
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
&deps, /* OpenSIPS module dependencies */
cmds, /* exported functions */
0, /* exported async functions */
Expand Down
1 change: 1 addition & 0 deletions modules/dispatcher/dispatcher.c
Expand Up @@ -319,6 +319,7 @@ struct module_exports exports= {
MOD_TYPE_DEFAULT,/* class of this module */
MODULE_VERSION,
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
&deps, /* OpenSIPS module dependencies */
cmds,
0,
Expand Down
1 change: 1 addition & 0 deletions modules/diversion/diversion.c
Expand Up @@ -91,6 +91,7 @@ struct module_exports exports = {
MOD_TYPE_DEFAULT,/* class of this module */
MODULE_VERSION,
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
NULL, /* OpenSIPS module dependencies */
cmds, /* Exported functions */
0, /* Exported async functions */
Expand Down
1 change: 1 addition & 0 deletions modules/dns_cache/dns_cache.c
Expand Up @@ -76,6 +76,7 @@ struct module_exports exports= {
MOD_TYPE_DEFAULT,/* class of this module */
MODULE_VERSION,
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
&deps, /* OpenSIPS module dependencies */
0, /* exported functions */
0, /* exported async functions */
Expand Down
1 change: 1 addition & 0 deletions modules/domain/domain_mod.c
Expand Up @@ -150,6 +150,7 @@ struct module_exports exports = {
MOD_TYPE_DEFAULT,/* class of this module */
MODULE_VERSION,
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
NULL, /* OpenSIPS module dependencies */
cmds, /* Exported functions */
0, /* Exported async functions */
Expand Down
1 change: 1 addition & 0 deletions modules/domainpolicy/domainpolicy_mod.c
Expand Up @@ -139,6 +139,7 @@ struct module_exports exports = {
MOD_TYPE_DEFAULT,/* class of this module */
MODULE_VERSION,
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
&deps, /* OpenSIPS module dependencies */
cmds, /* exported functions */
0, /* exported async functions */
Expand Down
1 change: 1 addition & 0 deletions modules/drouting/drouting.c
Expand Up @@ -474,6 +474,7 @@ struct module_exports exports = {
MOD_TYPE_DEFAULT,/* class of this module */
MODULE_VERSION,
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
&deps, /* OpenSIPS module dependencies */
cmds, /* Exported functions */
0, /* Exported async functions */
Expand Down
1 change: 1 addition & 0 deletions modules/emergency/emergency_methods.c
Expand Up @@ -107,6 +107,7 @@ struct module_exports exports = {
MOD_TYPE_DEFAULT,/* class of this module */
MODULE_VERSION, /* module version */
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
&deps, /* OpenSIPS module dependencies */
cmds, /* Exported functions */
NULL, /* Exported async functions */
Expand Down
1 change: 1 addition & 0 deletions modules/enum/enum_mod.c
Expand Up @@ -127,6 +127,7 @@ struct module_exports exports = {
MOD_TYPE_DEFAULT,/* class of this module */
MODULE_VERSION,
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
NULL, /* OpenSIPS module dependencies */
cmds, /* Exported functions */
0, /* Exported async functions */
Expand Down
1 change: 1 addition & 0 deletions modules/event_datagram/event_datagram.c
Expand Up @@ -72,6 +72,7 @@ struct module_exports exports= {
MOD_TYPE_DEFAULT,/* class of this module */
MODULE_VERSION,
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
NULL, /* OpenSIPS module dependencies */
0, /* exported functions */
0, /* exported asyn functions */
Expand Down

0 comments on commit 42b33c4

Please sign in to comment.