Module: kamailio
Branch: master
Commit: 0ebfddd20b43396d602b4c68a88f7c2bc58ed211
URL:
https://github.com/kamailio/kamailio/commit/0ebfddd20b43396d602b4c68a88f7c2…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-04-24T21:34:28+02:00
regex: reformat exported structures
---
Modified: src/modules/regex/regex_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/0ebfddd20b43396d602b4c68a88f7c2…
Patch:
https://github.com/kamailio/kamailio/commit/0ebfddd20b43396d602b4c68a88f7c2…
---
diff --git a/src/modules/regex/regex_mod.c b/src/modules/regex/regex_mod.c
index 4bb4d7cdcee..292af692136 100644
--- a/src/modules/regex/regex_mod.c
+++ b/src/modules/regex/regex_mod.c
@@ -113,48 +113,54 @@ static int w_pcre_match_group(struct sip_msg *_msg, char *_s1, char
*_s2);
/*
* Exported functions
*/
+/* 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_group", (cmd_function)w_pcre_match_group, 2,
- 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},
- {0, 0, 0, 0, 0, 0}};
+ {"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},
+ {"pcre_match_group", (cmd_function)w_pcre_match_group, 1,
+ fixup_spve_null, 0,
+ REQUEST_ROUTE | FAILURE_ROUTE | ONREPLY_ROUTE | BRANCH_ROUTE
+ | LOCAL_ROUTE},
+ {0, 0, 0, 0, 0, 0}
+};
/*
* Exported parameters
*/
-static param_export_t params[] = {{"file", PARAM_STRING, &file},
- {"max_groups", INT_PARAM, &max_groups},
- {"group_max_size", INT_PARAM, &group_max_size},
- {"pcre_caseless", INT_PARAM, &pcre_caseless},
- {"pcre_multiline", INT_PARAM, &pcre_multiline},
- {"pcre_dotall", INT_PARAM, &pcre_dotall},
- {"pcre_extended", INT_PARAM, &pcre_extended}, {0, 0, 0}};
+static param_export_t params[] = {
+ {"file", PARAM_STRING, &file},
+ {"max_groups", INT_PARAM, &max_groups},
+ {"group_max_size", INT_PARAM, &group_max_size},
+ {"pcre_caseless", INT_PARAM, &pcre_caseless},
+ {"pcre_multiline", INT_PARAM, &pcre_multiline},
+ {"pcre_dotall", INT_PARAM, &pcre_dotall},
+ {"pcre_extended", INT_PARAM, &pcre_extended},
+ {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, /*!< exported RPC functions */
+ 0, /*!< exported pseudo-variables */
+ 0, /*!< response handling function */
+ mod_init, /*!< module initialization function */
+ 0, /*!< per-child init function */
+ destroy /*!< destroy function */
};
+/* clang-format on */
static void *pcre2_malloc(size_t size, void *ext)