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 15259fa commit 53e0c68
Show file tree
Hide file tree
Showing 160 changed files with 170 additions and 2 deletions.
1 change: 1 addition & 0 deletions modules/aaa_radius/aaa_radius.c
Expand Up @@ -140,6 +140,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 @@ -259,6 +259,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 @@ -109,6 +109,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 @@ -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,
0,
Expand Down
1 change: 1 addition & 0 deletions modules/auth_aaa/authaaa_mod.c
Expand Up @@ -127,6 +127,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 @@ -188,6 +188,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 @@ -248,6 +248,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 @@ -127,6 +127,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 @@ -211,6 +211,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 @@ -188,6 +188,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 @@ -179,7 +179,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
1 change: 1 addition & 0 deletions modules/cachedb_local/cachedb_local.c
Expand Up @@ -113,6 +113,7 @@ struct module_exports exports= {
MOD_TYPE_CACHEDB,/* class of this module */
MODULE_VERSION,
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load functionpen flags */
&deps, /* OpenSIPS module dependencies */
cmds, /* exported functions */
0, /* exported async functions */
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 @@ -79,6 +79,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 @@ -185,6 +185,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 @@ -260,6 +260,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 @@ -275,6 +275,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 @@ -148,6 +148,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 @@ -236,6 +236,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 @@ -181,6 +181,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 @@ -199,6 +199,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 @@ -97,6 +97,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 @@ -115,6 +115,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 @@ -83,6 +83,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 @@ -96,6 +96,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, /* exported async functions */
Expand Down
1 change: 1 addition & 0 deletions modules/db_oracle/db_oracle.c
Expand Up @@ -61,6 +61,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 @@ -72,6 +72,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 @@ -76,6 +76,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 @@ -93,6 +93,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 @@ -61,6 +61,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 @@ -131,6 +131,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 @@ -470,6 +470,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 @@ -152,6 +152,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 @@ -326,6 +326,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 @@ -88,6 +88,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 @@ -148,6 +148,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 @@ -140,6 +140,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 @@ -527,6 +527,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 @@ -128,6 +128,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 53e0c68

Please sign in to comment.