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

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

uri_db: reformat exported structures

---

Modified: src/modules/uri_db/uri_db.c

---

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

---

diff --git a/src/modules/uri_db/uri_db.c b/src/modules/uri_db/uri_db.c
index ecda1303b73..8c4f3e57d8c 100644
--- a/src/modules/uri_db/uri_db.c
+++ b/src/modules/uri_db/uri_db.c
@@ -66,49 +66,49 @@ static int fixup_exist(void **param, int param_no);
 
 static int w_check_uri1(struct sip_msg *_m, char *_uri, char *_s);
 
+/* clang-format off */
 /*
  * Exported functions
  */
 static cmd_export_t cmds[] = {
-               {"check_to", (cmd_function)check_to, 0, 0, 0, REQUEST_ROUTE},
-               {"check_from", (cmd_function)check_from, 0, 0, 0, 
REQUEST_ROUTE},
-               {"check_uri", (cmd_function)w_check_uri1, 1, fixup_spve_null, 0,
-                               REQUEST_ROUTE},
-               {"check_uri", (cmd_function)check_uri, 3, fixup_spve_all, 0,
-                               REQUEST_ROUTE},
-               {"does_uri_exist", (cmd_function)does_uri_exist, 0, 0, 
fixup_exist,
-                               REQUEST_ROUTE | LOCAL_ROUTE},
-               {0, 0, 0, 0, 0, 0}};
-
+       {"check_to", (cmd_function)check_to, 0, 0, 0, REQUEST_ROUTE},
+       {"check_from", (cmd_function)check_from, 0, 0, 0, REQUEST_ROUTE},
+       {"check_uri", (cmd_function)w_check_uri1, 1, fixup_spve_null, 0, 
REQUEST_ROUTE},
+       {"check_uri", (cmd_function)check_uri, 3, fixup_spve_all, 0, 
REQUEST_ROUTE},
+       {"does_uri_exist", (cmd_function)does_uri_exist, 0, 0, fixup_exist, 
REQUEST_ROUTE | LOCAL_ROUTE},
+       {0, 0, 0, 0, 0, 0}
+};
 
 /*
  * Exported parameters
  */
-static param_export_t params[] = {{"db_url", PARAM_STR, &db_url},
-               {"db_table", PARAM_STR, &db_table},
-               {"user_column", PARAM_STR, &uridb_user_col},
-               {"domain_column", PARAM_STR, &uridb_domain_col},
-               {"uriuser_column", PARAM_STR, &uridb_uriuser_col},
-               {"use_uri_table", PARAM_INT, &use_uri_table},
-               {"use_domain", PARAM_INT, &use_domain}, {0, 0, 0}};
-
+static param_export_t params[] = {
+       {"db_url", PARAM_STR, &db_url},
+       {"db_table", PARAM_STR, &db_table},
+       {"user_column", PARAM_STR, &uridb_user_col},
+       {"domain_column", PARAM_STR, &uridb_domain_col},
+       {"uriuser_column", PARAM_STR, &uridb_uriuser_col},
+       {"use_uri_table", PARAM_INT, &use_uri_table},
+       {"use_domain", PARAM_INT, &use_domain},
+       {0, 0, 0}
+};
 
 /*
  * Module interface
  */
 struct module_exports exports = {
-               "uri_db",                /* 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 */
+       "uri_db",        /* 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 */
 
 /**
  * Module initialization function callee in each child separately

_______________________________________________
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