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

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

xcap_client: reformat exported structures

---

Modified: src/modules/xcap_client/xcap_client.c

---

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

---

diff --git a/src/modules/xcap_client/xcap_client.c 
b/src/modules/xcap_client/xcap_client.c
index 577f3473fce..e282d0f48ed 100644
--- a/src/modules/xcap_client/xcap_client.c
+++ b/src/modules/xcap_client/xcap_client.c
@@ -81,28 +81,34 @@ db_func_t xcap_dbf;
 
 void query_xcap_update(unsigned int ticks, void *param);
 
-static param_export_t params[] = {{"db_url", PARAM_STR, &xcap_db_url},
-               {"xcap_table", PARAM_STR, &xcap_db_table},
-               {"periodical_query", PARAM_INT, &periodical_query},
-               {"query_period", PARAM_INT, &query_period}, {0, 0, 0}};
-
+/* clang-format off */
+static param_export_t params[] = {
+       {"db_url", PARAM_STR, &xcap_db_url},
+       {"xcap_table", PARAM_STR, &xcap_db_table},
+       {"periodical_query", PARAM_INT, &periodical_query},
+       {"query_period", PARAM_INT, &query_period},
+       {0, 0, 0}
+};
 
 static cmd_export_t cmds[] = {
-               {"bind_xcap", (cmd_function)bind_xcap, 1, 0, 0, 0}, {0, 0, 0, 
0, 0, 0}};
+       {"bind_xcap", (cmd_function)bind_xcap, 1, 0, 0, 0},
+       {0, 0, 0, 0, 0, 0}
+};
 
 /** module exports */
 struct module_exports exports = {
-               "xcap_client",   /* module name */
-               DEFAULT_DLFLAGS, /* dlopen flags */
-               cmds,                    /* exported functions */
-               params,                  /* exported parameters */
-               0,                               /* exported rpc functions */
-               0,                               /* exported pseudo-variables */
-               0,                               /* response handling function 
*/
-               mod_init,                /* module init function */
-               child_init,              /* child init function */
-               destroy                  /* module destroy function */
+       "xcap_client",   /* module name */
+       DEFAULT_DLFLAGS, /* dlopen flags */
+       cmds,            /* exported functions */
+       params,          /* exported parameters */
+       0,               /* exported rpc functions */
+       0,               /* exported pseudo-variables */
+       0,               /* response handling function */
+       mod_init,        /* module init function */
+       child_init,      /* child init function */
+       destroy          /* module destroy function */
 };
+/* clang-format on */
 
 /**
  * init module 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