Skip to content

Commit

Permalink
qrouting/drouting: Update module dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
liviuchircu authored and razvancrainea committed Feb 11, 2020
1 parent 38c1509 commit 6482451
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
1 change: 0 additions & 1 deletion modules/drouting/drouting.c
Expand Up @@ -552,7 +552,6 @@ static module_dependency_t *get_deps_probing_interval(param_export_t *param)
static dep_export_t deps = {
{ /* OpenSIPS module dependencies */
{ MOD_TYPE_SQLDB, NULL, DEP_ABORT },
{ MOD_TYPE_DEFAULT, "qrouting", DEP_SILENT },
{ MOD_TYPE_NULL, NULL, 0 },
},
{ /* modparam dependencies */
Expand Down
15 changes: 14 additions & 1 deletion modules/qrouting/qrouting.c
Expand Up @@ -93,13 +93,26 @@ static mi_export_t mi_cmds[] = {
{EMPTY_MI_EXPORT}
};

static dep_export_t deps = {
{ /* OpenSIPS module dependencies */
{ MOD_TYPE_SQLDB, NULL, DEP_ABORT },
{ MOD_TYPE_DEFAULT, "drouting", DEP_ABORT },
{ MOD_TYPE_DEFAULT, "tm", DEP_ABORT },
{ MOD_TYPE_DEFAULT, "dialog", DEP_ABORT },
{ MOD_TYPE_NULL, NULL, 0 },
},
{ /* modparam dependencies */
{ NULL, NULL },
},
};

struct module_exports exports = {
"qrouting",
MOD_TYPE_DEFAULT,/* class of this module */
MODULE_VERSION,
DEFAULT_DLFLAGS, /* dlopen flags */
0, /* load function */
0, /* OpenSIPS module dependencies */
&deps, /* OpenSIPS module dependencies */
cmds, /* Exported functions */
0, /* Exported async functions */
params, /* Exported parameters */
Expand Down

0 comments on commit 6482451

Please sign in to comment.