Skip to content

Commit

Permalink
blst: reformat exported structures
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Mar 28, 2024
1 parent 9a94930 commit e39557c
Showing 1 changed file with 28 additions and 21 deletions.
49 changes: 28 additions & 21 deletions src/modules/blst/blst.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,37 +49,44 @@ static int blst_rpl_set_ignore_f(struct sip_msg *, char *, char *);
static int blst_rpl_clear_ignore_f(struct sip_msg *, char *, char *);


static cmd_export_t cmds[] = {{"blst_add", blst_add0_f, 0, 0, 0, ANY_ROUTE},
{"blst_add", blst_add1_f, 1, fixup_var_int_1, 0, ANY_ROUTE},
{"blst_add_retry_after", blst_add_retry_after_f, 2, fixup_var_int_12, 0,
/* clang-format off */
static cmd_export_t cmds[] = {
{"blst_add", blst_add0_f, 0, 0, 0, ANY_ROUTE},
{"blst_add", blst_add1_f, 1, fixup_var_int_1, 0, ANY_ROUTE},
{"blst_add_retry_after", blst_add_retry_after_f, 2, fixup_var_int_12, 0,
ANY_ROUTE},
{"blst_del", blst_del_f, 0, 0, 0, ANY_ROUTE},
{"blst_is_blocklisted", blst_is_blocklisted_f, 0, 0, 0, ANY_ROUTE},
{"blst_set_ignore", blst_set_ignore_f, 0, 0, 0, ANY_ROUTE},
{"blst_set_ignore", blst_set_ignore_f, 1, fixup_var_int_1, 0,
{"blst_del", blst_del_f, 0, 0, 0, ANY_ROUTE},
{"blst_is_blocklisted", blst_is_blocklisted_f, 0, 0, 0, ANY_ROUTE},
{"blst_set_ignore", blst_set_ignore_f, 0, 0, 0, ANY_ROUTE},
{"blst_set_ignore", blst_set_ignore_f, 1, fixup_var_int_1, 0,
ANY_ROUTE},
{"blst_clear_ignore", blst_clear_ignore_f, 0, 0, 0, ANY_ROUTE},
{"blst_clear_ignore", blst_clear_ignore_f, 1, fixup_var_int_1, 0,
{"blst_clear_ignore", blst_clear_ignore_f, 0, 0, 0, ANY_ROUTE},
{"blst_clear_ignore", blst_clear_ignore_f, 1, fixup_var_int_1, 0,
ANY_ROUTE},
{"blst_rpl_set_ignore", blst_rpl_set_ignore_f, 0, 0, 0, ANY_ROUTE},
{"blst_rpl_set_ignore", blst_rpl_set_ignore_f, 1, fixup_var_int_1, 0,
{"blst_rpl_set_ignore", blst_rpl_set_ignore_f, 0, 0, 0, ANY_ROUTE},
{"blst_rpl_set_ignore", blst_rpl_set_ignore_f, 1, fixup_var_int_1, 0,
ANY_ROUTE},
{"blst_rpl_clear_ignore", blst_rpl_clear_ignore_f, 0, 0, 0, ANY_ROUTE},
{"blst_rpl_clear_ignore", blst_rpl_clear_ignore_f, 1, fixup_var_int_1,
{"blst_rpl_clear_ignore", blst_rpl_clear_ignore_f, 0, 0, 0, ANY_ROUTE},
{"blst_rpl_clear_ignore", blst_rpl_clear_ignore_f, 1, fixup_var_int_1,
0, ANY_ROUTE},
{0, 0, 0, 0, 0, 0}};
{0, 0, 0, 0, 0, 0}
};

static param_export_t params[] = {{0, 0, 0}}; /* no params */

struct module_exports exports = {
"blst", DEFAULT_DLFLAGS, /* dlopen flags */
cmds, params, 0, /* RPC methods */
0, /* pseudo-variables exports */
0, /* response function */
0, /* module initialization function */
0, /* per-child init function */
0 /* destroy function */
"blst",
DEFAULT_DLFLAGS, /* dlopen flags */
cmds,
params,
0, /* RPC methods */
0, /* pseudo-variables exports */
0, /* response function */
0, /* module initialization function */
0, /* per-child init function */
0 /* destroy function */
};
/* clang-format on */


/**
Expand Down

0 comments on commit e39557c

Please sign in to comment.