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

Author: Victor Seva <linuxman...@torreviejawireless.org>
Committer: Victor Seva <linuxman...@torreviejawireless.org>
Date: 2024-11-22T15:28:11+01:00

regex: reformat exported structures

---

Modified: src/modules/regex/regex_mod.c

---

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

---

diff --git a/src/modules/regex/regex_mod.c b/src/modules/regex/regex_mod.c
index 904342ff7fc..11c055c1d10 100644
--- a/src/modules/regex/regex_mod.c
+++ b/src/modules/regex/regex_mod.c
@@ -115,21 +115,18 @@ static int w_pcre_match_group(struct sip_msg *_msg, char 
*_s1, char *_s2);
  */
 /* clang-format off */
 static cmd_export_t cmds[] = {
-       {"pcre_match", (cmd_function)w_pcre_match, 2, fixup_spve_spve, 0,
-                       REQUEST_ROUTE | FAILURE_ROUTE | ONREPLY_ROUTE | 
BRANCH_ROUTE
-                                       | LOCAL_ROUTE},
+       {"pcre_match", (cmd_function)w_pcre_match, 2,
+               fixup_spve_spve, 0,
+               REQUEST_ROUTE | FAILURE_ROUTE | ONREPLY_ROUTE | BRANCH_ROUTE | 
LOCAL_ROUTE},
        {"pcre_match_group", (cmd_function)w_pcre_match_group, 2,
-                       fixup_spve_spve, 0,
-                       REQUEST_ROUTE | FAILURE_ROUTE | ONREPLY_ROUTE | 
BRANCH_ROUTE
-                                       | LOCAL_ROUTE},
+               fixup_spve_spve, 0,
+               REQUEST_ROUTE | FAILURE_ROUTE | ONREPLY_ROUTE | BRANCH_ROUTE | 
LOCAL_ROUTE},
        {"pcre_match_group", (cmd_function)w_pcre_match_group, 1,
-                       fixup_spve_null, 0,
-                       REQUEST_ROUTE | FAILURE_ROUTE | ONREPLY_ROUTE | 
BRANCH_ROUTE
-                                       | LOCAL_ROUTE},
+               fixup_spve_null, 0,
+               REQUEST_ROUTE | FAILURE_ROUTE | ONREPLY_ROUTE | BRANCH_ROUTE | 
LOCAL_ROUTE},
        {0, 0, 0, 0, 0, 0}
 };
 
-
 /*
  * Exported parameters
  */
@@ -144,21 +141,20 @@ static param_export_t params[] = {
        {0, 0, 0}
 };
 
-
 /*
  * Module interface
  */
 struct module_exports exports = {
-       "regex",                 /*!< 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 initialization function */
-       0,                               /*!< per-child init function */
-       destroy                  /*!< destroy function */
+       "regex",         /*!< 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 */
+       destroy          /* module destroy function */
 };
 /* clang-format on */
 

_______________________________________________
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