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

Author: Victor Seva <linuxman...@torreviejawireless.org>
Committer: Victor Seva <linuxman...@torreviejawireless.org>
Date: 2024-12-11T21:57:47+01:00

peering: reformat exported structures

---

Modified: src/modules/peering/peering.c

---

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

---

diff --git a/src/modules/peering/peering.c b/src/modules/peering/peering.c
index dfd0ace84c7..5cb74d52319 100644
--- a/src/modules/peering/peering.c
+++ b/src/modules/peering/peering.c
@@ -59,44 +59,44 @@ static char *radius_config = DEFAULT_RADIUSCLIENT_CONF;
 int verify_destination_service_type = -1;
 int verify_source_service_type = -1;
 
+/* clang-format off */
 /*
  * Exported functions
  */
 static cmd_export_t cmds[] = {
-               {"verify_destination", (cmd_function)verify_destination, 0, 0, 
0,
-                               REQUEST_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE | 
LOCAL_ROUTE},
-               {"verify_source", (cmd_function)verify_source, 0, 0, 0,
-                               REQUEST_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE | 
LOCAL_ROUTE},
-               {0, 0, 0, 0, 0, 0}};
-
+       {"verify_destination", (cmd_function)verify_destination, 0,
+               0, 0, REQUEST_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE | 
LOCAL_ROUTE},
+       {"verify_source", (cmd_function)verify_source, 0,
+               0, 0, REQUEST_ROUTE | FAILURE_ROUTE | BRANCH_ROUTE | 
LOCAL_ROUTE},
+       {0, 0, 0, 0, 0, 0}
+};
 
 /*
  * Exported parameters
  */
 static param_export_t params[] = {
-               {"radius_config", PARAM_STRING, &radius_config},
-               {"verify_destination_service_type", PARAM_INT,
-                               &verify_destination_service_type},
-               {"verify_source_service_type", PARAM_INT, 
&verify_source_service_type},
-               {0, 0, 0}};
-
+       {"radius_config", PARAM_STRING, &radius_config},
+       {"verify_destination_service_type", PARAM_INT, 
&verify_destination_service_type},
+       {"verify_source_service_type", PARAM_INT, &verify_source_service_type},
+       {0, 0, 0}
+};
 
 /*
  * Module interface
  */
 struct module_exports exports = {
-               "peering",               /* module name */
-               DEFAULT_DLFLAGS, /* dlopen flags */
-               cmds,                    /* cmd (cfg function) exports */
-               params,                  /* param exports */
-               0,                               /* RPC method exports */
-               0,                               /* pseudo-variables exports */
-               0,                               /* response handling function 
*/
-               mod_init,                /* module init function */
-               0,                               /* per-child init function */
-               0                                /* module destroy function */
+       "peering",          /* module name */
+       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 */
+       0                   /* module destroy function */
 };
-
+/* clang-format on */
 
 /*
  * Module initialization function

_______________________________________________
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