Module: kamailio
Branch: master
Commit: 3cce2ac7f9f8ef2ab10a9c228b9bbaddde3c7d03
URL:
https://github.com/kamailio/kamailio/commit/3cce2ac7f9f8ef2ab10a9c228b9bbad…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2024-11-22T09:45:05+01:00
sipjson: reformat exported structures
---
Modified: src/modules/sipjson/sipjson_mod.c
Modified: src/modules/siprepo/siprepo_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/3cce2ac7f9f8ef2ab10a9c228b9bbad…
Patch:
https://github.com/kamailio/kamailio/commit/3cce2ac7f9f8ef2ab10a9c228b9bbad…
---
diff --git a/src/modules/sipjson/sipjson_mod.c b/src/modules/sipjson/sipjson_mod.c
index 06e0d2eeb4c..83564225aa0 100644
--- a/src/modules/sipjson/sipjson_mod.c
+++ b/src/modules/sipjson/sipjson_mod.c
@@ -41,26 +41,30 @@ static int sj_serialize_data(sip_msg_t *msg, srjson_doc_t *jdoc, str
*smode);
static int w_sj_serialize(sip_msg_t *msg, char *mode, char *vout);
+/* clang-format off */
static cmd_export_t cmds[] = {
- {"sj_serialize", (cmd_function)w_sj_serialize, 2, fixup_spve_pvar,
- fixup_free_spve_pvar, ANY_ROUTE},
- {0, 0, 0, 0, 0, 0}};
-
-static param_export_t params[] = {{0, 0, 0}};
+ {"sj_serialize", (cmd_function)w_sj_serialize, 2, fixup_spve_pvar,
+ fixup_free_spve_pvar, ANY_ROUTE},
+ {0, 0, 0, 0, 0, 0}
+};
+static param_export_t params[] = {
+ {0, 0, 0}
+};
struct module_exports exports = {
- "sipjson", /* module name */
- DEFAULT_DLFLAGS, /* dlopen flags */
- cmds, /* exported functions */
- params, /* exported parameters */
- 0, /* exported rpc functions */
- 0, /* exported pseudo-variables */
- 0, /* module init function */
- 0, /* response function */
- 0, /* per child init function */
- 0 /* destroy function */
+ "sipjson", /* module name */
+ DEFAULT_DLFLAGS, /* dlopen flags */
+ cmds, /* exported functions */
+ params, /* exported parameters */
+ 0, /* exported rpc functions */
+ 0, /* exported pseudo-variables */
+ 0, /* response handling function */
+ 0, /* module init function */
+ 0, /* per-child init function */
+ 0 /* module destroy function */
};
+/* clang-format on */
/**
*
diff --git a/src/modules/siprepo/siprepo_mod.c b/src/modules/siprepo/siprepo_mod.c
index e8cd28d10d7..0ce005774e2 100644
--- a/src/modules/siprepo/siprepo_mod.c
+++ b/src/modules/siprepo/siprepo_mod.c
@@ -75,7 +75,7 @@ static cmd_export_t cmds[]={
{"sr_msg_pull", (cmd_function)w_sr_msg_pull, 4, fixup_sssi,
fixup_free_sssi, REQUEST_ROUTE|CORE_ONREPLY_ROUTE},
{"sr_msg_async_pull", (cmd_function)w_sr_msg_async_pull, 5,
fixup_sr_msg_async_pull,
- 0, ANY_ROUTE},
+ fixup_free_sr_msg_async_pull, ANY_ROUTE},
{"sr_msg_rm", (cmd_function)w_sr_msg_rm, 2, fixup_spve_spve,
fixup_free_spve_spve, REQUEST_ROUTE|CORE_ONREPLY_ROUTE},
{"sr_msg_check", (cmd_function)w_sr_msg_check, 0, 0,