Module: kamailio
Branch: master
Commit: e39557c96d2f419184c826d779f1a3309acc4269
URL:
https://github.com/kamailio/kamailio/commit/e39557c96d2f419184c826d779f1a33…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-03-28T08:31:05+01:00
blst: reformat exported structures
---
Modified: src/modules/blst/blst.c
---
Diff:
https://github.com/kamailio/kamailio/commit/e39557c96d2f419184c826d779f1a33…
Patch:
https://github.com/kamailio/kamailio/commit/e39557c96d2f419184c826d779f1a33…
---
diff --git a/src/modules/blst/blst.c b/src/modules/blst/blst.c
index 6a2c1d625b6..148a9a9d9d0 100644
--- a/src/modules/blst/blst.c
+++ b/src/modules/blst/blst.c
@@ -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 */
/**