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

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2025-12-08T17:25:49+01:00

json: reformatted exported structures

---

Modified: src/modules/json/json_mod.c

---

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

---

diff --git a/src/modules/json/json_mod.c b/src/modules/json/json_mod.c
index d267e5029c7..46d5851db1e 100644
--- a/src/modules/json/json_mod.c
+++ b/src/modules/json/json_mod.c
@@ -41,7 +41,9 @@ char tr_json_escape_char = '%';
 /* clang-format off */
 /* Exported functions */
 static tr_export_t mod_trans[] = {
-       {{"json", sizeof("json") - 1}, json_tr_parse}, {{0, 0}, 0}};
+       {{"json", sizeof("json") - 1}, json_tr_parse},
+       {{0, 0}, 0}
+};
 
 static cmd_export_t cmds[] = {
        {"json_get_field", (cmd_function)json_get_field, 3, fixup_get_field,
@@ -49,10 +51,13 @@ static cmd_export_t cmds[] = {
        {"json_get_string", (cmd_function)json_get_string, 3, fixup_get_field,
                        fixup_get_field_free, ANY_ROUTE},
        {"bind_json", (cmd_function)bind_json, 0, 0, 0, ANY_ROUTE},
-       {0, 0, 0, 0, 0, 0}};
+       {0, 0, 0, 0, 0, 0}
+};
 
 static param_export_t params[] = {
-               {"json_escape_char", PARAM_STR, &tr_json_escape_str}, {0, 0, 
0}};
+       {"json_escape_char", PARAM_STR, &tr_json_escape_str},
+       {0, 0, 0}
+};
 
 struct module_exports exports = {
        "json",                  /* module name */

_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to