Module: kamailio
Branch: master
Commit: 96ac7b469bda367e63824d441d784916181075f6
URL: 
https://github.com/kamailio/kamailio/commit/96ac7b469bda367e63824d441d784916181075f6

Author: Victor Seva <linuxman...@torreviejawireless.org>
Committer: Victor Seva <linuxman...@torreviejawireless.org>
Date: 2024-11-20T11:45:36+01:00

xhttp_pi: reformat exported structures

---

Modified: src/modules/xhttp_pi/xhttp_pi.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/96ac7b469bda367e63824d441d784916181075f6.diff
Patch: 
https://github.com/kamailio/kamailio/commit/96ac7b469bda367e63824d441d784916181075f6.patch

---

diff --git a/src/modules/xhttp_pi/xhttp_pi.c b/src/modules/xhttp_pi/xhttp_pi.c
index af55bf70153..a8eaec8cabd 100644
--- a/src/modules/xhttp_pi/xhttp_pi.c
+++ b/src/modules/xhttp_pi/xhttp_pi.c
@@ -87,31 +87,34 @@ str filename = STR_NULL;
 int buf_size = 0;
 char error_buf[ERROR_REASON_BUF_LEN];
 
+/* clang-format off */
 static cmd_export_t cmds[] = {
-               {"dispatch_xhttp_pi", (cmd_function)xhttp_pi_dispatch, 0, 0, 0,
-                               REQUEST_ROUTE | EVENT_ROUTE},
-               {0, 0, 0, 0, 0, 0}};
+       {"dispatch_xhttp_pi", (cmd_function)xhttp_pi_dispatch, 0, 0, 0, 
REQUEST_ROUTE | EVENT_ROUTE},
+       {0, 0, 0, 0, 0, 0}
+};
 
-static param_export_t params[] = {{"xhttp_pi_root", PARAM_STR, &xhttp_pi_root},
-               {"xhttp_pi_buf_size", PARAM_INT, &buf_size},
-               {"framework", PARAM_STR, &filename}, {0, 0, 0}};
+static param_export_t params[] = {
+       {"xhttp_pi_root", PARAM_STR, &xhttp_pi_root},
+       {"xhttp_pi_buf_size", PARAM_INT, &buf_size},
+       {"framework", PARAM_STR, &filename}, {0, 0, 0}
+};
 
 static rpc_export_t rpc_methods[];
 
 /** module exports */
 struct module_exports exports = {
-               "xhttp_pi",              /* module name */
-               DEFAULT_DLFLAGS, /* dlopen flags */
-               cmds,                    /* cmd (cfg function) exports */
-               params,                  /* param exports */
-               0,                               /* RPC method exports */
-               0,                               /* pv exports */
-               0,                               /* response handling function 
*/
-               mod_init,                /* module init function */
-               0,                               /* per-child init function */
-               destroy                  /* module destroy function */
+       "xhttp_pi",      /* module name */
+       DEFAULT_DLFLAGS, /* dlopen flags */
+       cmds,            /* cmd (cfg function) exports */
+       params,          /* param exports */
+       0,               /* RPC method exports */
+       0,               /* pv exports */
+       0,               /* response handling function */
+       mod_init,        /* module init function */
+       0,               /* per-child init function */
+       destroy      /* module destroy function */
 };
-
+/* clang-format on */
 
 /** Implementation of pi_fault function required by the management API.
  *

_______________________________________________
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