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

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2024-06-04T16:29:50+02:00

dmq_usrloc: reformat exported structures

---

Modified: src/modules/dmq_usrloc/dmq_usrloc.c

---

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

---

diff --git a/src/modules/dmq_usrloc/dmq_usrloc.c 
b/src/modules/dmq_usrloc/dmq_usrloc.c
index d7715ff10e4..61b6286a392 100644
--- a/src/modules/dmq_usrloc/dmq_usrloc.c
+++ b/src/modules/dmq_usrloc/dmq_usrloc.c
@@ -48,29 +48,33 @@ usrloc_api_t dmq_ul;
 
 MODULE_VERSION
 
-static param_export_t params[] = {{"enable", INT_PARAM, &dmq_usrloc_enable},
-               {"sync", INT_PARAM, &_dmq_usrloc_sync},
-               {"replicate_socket_info", INT_PARAM,
-                               &_dmq_usrloc_replicate_socket_info},
-               {"batch_msg_contacts", INT_PARAM, 
&_dmq_usrloc_batch_msg_contacts},
-               {"batch_msg_size", INT_PARAM, &_dmq_usrloc_batch_msg_size},
-               {"batch_size", INT_PARAM, &_dmq_usrloc_batch_size},
-               {"batch_usleep", INT_PARAM, &_dmq_usrloc_batch_usleep},
-               {"usrloc_domain", PARAM_STR, &_dmq_usrloc_domain},
-               {"usrloc_delete", INT_PARAM, &_dmq_usrloc_delete}, {0, 0, 0}};
+/* clang-format off */
+static param_export_t params[] = {
+       {"enable", INT_PARAM, &dmq_usrloc_enable},
+       {"sync", INT_PARAM, &_dmq_usrloc_sync},
+       {"replicate_socket_info", INT_PARAM, 
&_dmq_usrloc_replicate_socket_info},
+       {"batch_msg_contacts", INT_PARAM, &_dmq_usrloc_batch_msg_contacts},
+       {"batch_msg_size", INT_PARAM, &_dmq_usrloc_batch_msg_size},
+       {"batch_size", INT_PARAM, &_dmq_usrloc_batch_size},
+       {"batch_usleep", INT_PARAM, &_dmq_usrloc_batch_usleep},
+       {"usrloc_domain", PARAM_STR, &_dmq_usrloc_domain},
+       {"usrloc_delete", INT_PARAM, &_dmq_usrloc_delete},
+       {0, 0, 0}
+};
 
 struct module_exports exports = {
-               "dmq_usrloc",    /* module name */
-               DEFAULT_DLFLAGS, /* dlopen flags */
-               0,                               /* exported functions */
-               params,                  /* exported parameters */
-               0,                               /* RPC method exports */
-               0,                               /* exported pseudo-variables */
-               0,                               /* response handling function 
*/
-               mod_init,                /* module initialization function */
-               child_init,              /* per-child init function */
-               0                                /* module destroy function */
+       "dmq_usrloc",    /* module name */
+       DEFAULT_DLFLAGS, /* dlopen flags */
+       0,                               /* exported functions */
+       params,                  /* exported parameters */
+       0,                               /* RPC method exports */
+       0,                               /* exported pseudo-variables */
+       0,                               /* response handling function */
+       mod_init,                /* module initialization function */
+       child_init,              /* per-child init function */
+       0                                /* module destroy function */
 };
+/* clang-format on */
 
 
 static int mod_init(void)

_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org

Reply via email to