Module: kamailio
Branch: 5.8
Commit: 95feca55b38991e045d57ab8cdb9b75bcdb7070e
URL: 
https://github.com/kamailio/kamailio/commit/95feca55b38991e045d57ab8cdb9b75bcdb7070e

Author: Victor Seva <linuxman...@torreviejawireless.org>
Committer: Xenofon Karamanos <22965395+xkara...@users.noreply.github.com>
Date: 2025-01-29T11:48:18Z

outbound: reformat exported structures

(cherry picked from commit 793a494f5b23f2ef5e82664924c3bed3893105bb)

---

Modified: src/modules/outbound/outbound_mod.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/95feca55b38991e045d57ab8cdb9b75bcdb7070e.diff
Patch: 
https://github.com/kamailio/kamailio/commit/95feca55b38991e045d57ab8cdb9b75bcdb7070e.patch

---

diff --git a/src/modules/outbound/outbound_mod.c 
b/src/modules/outbound/outbound_mod.c
index e5ed1712607..687fc5480d7 100644
--- a/src/modules/outbound/outbound_mod.c
+++ b/src/modules/outbound/outbound_mod.c
@@ -59,25 +59,32 @@ static unsigned int ob_force_no_flag = (unsigned int)-1;
 static str ob_key = {0, 0};
 static str flow_token_secret = {0, 0};
 
+/* clang-format off */
 static cmd_export_t cmds[] = {
-               {"bind_ob", (cmd_function)bind_ob, 1, 0, 0, 0}, {0, 0, 0, 0, 0, 
0}};
+       {"bind_ob", (cmd_function)bind_ob, 1, 0, 0, 0},
+       {0, 0, 0, 0, 0, 0}
+};
 
 static param_export_t params[] = {
-               {"force_outbound_flag", PARAM_INT, &ob_force_flag},
-               {"force_no_outbound_flag", PARAM_INT, &ob_force_no_flag},
-               {"flow_token_secret", PARAM_STRING, &flow_token_secret}, {0, 0, 
0}};
+       {"force_outbound_flag", PARAM_INT, &ob_force_flag},
+       {"force_no_outbound_flag", PARAM_INT, &ob_force_no_flag},
+       {"flow_token_secret", PARAM_STRING, &flow_token_secret},
+       {0, 0, 0}
+};
 
 struct module_exports exports = {
-               "outbound", DEFAULT_DLFLAGS, /* dlopen flags */
-               cmds,                                            /* exported 
functions */
-               params,                                          /* exported 
parameters */
-               0,                                                       /* 
exported??RPC??methods */
-               0,                                                       /* 
exported pseudo-variables */
-               0,                                                       /* 
response??function */
-               mod_init,                                        /* module 
initialization function */
-               0,                                                       /* 
per-child initialization function */
-               destroy                                          /* destroy 
function */
+       "outbound",
+       DEFAULT_DLFLAGS,    /* dlopen flags */
+       cmds,               /* exported functions */
+       params,             /* exported parameters */
+       0,                  /* RPC method exports */
+       0,                  /* exported pseudo-variables */
+       0,                  /* response handling function */
+       mod_init,           /* module initialization function */
+       0,                  /* per-child init function */
+       destroy             /* module destroy function */
 };
+/* clang-format on */
 
 static void mod_init_openssl(void)
 {

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to