Module: kamailio
Branch: master
Commit: 2a35ef2966bca64f759c435e248e3b9118a90fc4
URL:
https://github.com/kamailio/kamailio/commit/2a35ef2966bca64f759c435e248e3b9…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2024-11-22T10:09:41+01:00
seas: reformat exported structures
---
Modified: src/modules/seas/seas.c
---
Diff:
https://github.com/kamailio/kamailio/commit/2a35ef2966bca64f759c435e248e3b9…
Patch:
https://github.com/kamailio/kamailio/commit/2a35ef2966bca64f759c435e248e3b9…
---
diff --git a/src/modules/seas/seas.c b/src/modules/seas/seas.c
index 3c8e17c2673..63ad58b0335 100644
--- a/src/modules/seas/seas.c
+++ b/src/modules/seas/seas.c
@@ -85,29 +85,35 @@ int read_pipe = 0;
struct seas_functions seas_f;
-static cmd_export_t cmds[] = {{"as_relay_t", (cmd_function)w_as_relay_t, 1,
- fixup_as_relay, 0, REQUEST_ROUTE},
- {"as_relay_sl", (cmd_function)w_as_relay_sl, 1, fixup_as_relay, 0,
- REQUEST_ROUTE},
- {0, 0, 0, 0, 0, 0}};
+/* clang-format off */
+static cmd_export_t cmds[] = {
+ {"as_relay_t", (cmd_function)w_as_relay_t, 1, fixup_as_relay, 0,
REQUEST_ROUTE},
+ {"as_relay_sl", (cmd_function)w_as_relay_sl, 1, fixup_as_relay, 0,
REQUEST_ROUTE},
+ {0, 0, 0, 0, 0, 0}
+};
static param_export_t params[] = {
- {"listen_sockets", PARAM_STRING, &seas_listen_socket},
- {"stats_socket", PARAM_STRING, &seas_stats_socket},
- {"jain_ping", PARAM_STRING, &jain_ping_config},
- {"servlet_ping", PARAM_STRING, &servlet_ping_config},
- {"clusters", PARAM_STRING, &cluster_cfg}, {0, 0, 0}};
+ {"listen_sockets", PARAM_STRING, &seas_listen_socket},
+ {"stats_socket", PARAM_STRING, &seas_stats_socket},
+ {"jain_ping", PARAM_STRING, &jain_ping_config},
+ {"servlet_ping", PARAM_STRING, &servlet_ping_config},
+ {"clusters", PARAM_STRING, &cluster_cfg},
+ {0, 0, 0}
+};
struct module_exports exports = {
- "seas", DEFAULT_DLFLAGS, cmds, /* exported commands */
- params, /* exported parameters */
- 0, /* exported RPC methods */
- 0, /* exported module-items (pseudo variables) */
- 0, /* response function */
- seas_init, /* module initialization function */
- seas_child_init, /* per-child init function */
- seas_exit /* module exit function */
+ "seas",
+ DEFAULT_DLFLAGS, /* dlopen flags */
+ cmds, /* exported functions */
+ params, /* exported parameters */
+ 0, /* RPC method exports */
+ 0, /* exported pseudo-variables */
+ 0, /* response handling function */
+ seas_init, /* module initialization function */
+ seas_child_init, /* per-child init function */
+ seas_exit /* module destroy function */
};
+/* clang-format on */
static int fixup_as_relay(void **param, int param_no)
{