Module: kamailio
Branch: master
Commit: e3af304a0284302d68fd4b3206a93c8e00999b4b
URL:
https://github.com/kamailio/kamailio/commit/e3af304a0284302d68fd4b3206a93c8…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2024-11-21T19:09:07+01:00
statsc: reformat exported structures
---
Modified: src/modules/statsc/statsc_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/e3af304a0284302d68fd4b3206a93c8…
Patch:
https://github.com/kamailio/kamailio/commit/e3af304a0284302d68fd4b3206a93c8…
---
diff --git a/src/modules/statsc/statsc_mod.c b/src/modules/statsc/statsc_mod.c
index 8800018487f..bd16bfe23f2 100644
--- a/src/modules/statsc/statsc_mod.c
+++ b/src/modules/statsc/statsc_mod.c
@@ -52,29 +52,32 @@ static int child_init(int);
static void mod_destroy(void);
static int w_statsc_reset(sip_msg_t *msg, char *p1, char *p2);
-
+/* clang-format off */
static cmd_export_t cmds[] = {
- {"statsc_reset", (cmd_function)w_statsc_reset, 0, 0, 0, ANY_ROUTE},
- {0, 0, 0, 0, 0, 0}};
+ {"statsc_reset", (cmd_function)w_statsc_reset, 0, 0, 0, ANY_ROUTE},
+ {0, 0, 0, 0, 0, 0}
+};
static param_export_t params[] = {
- {"track", PARAM_STRING | PARAM_USE_FUNC, (void *)statsc_track_param},
- {"interval", PARAM_INT, &statsc_interval},
- {"items", PARAM_INT, &statsc_items}, {0, 0, 0}};
+ {"track", PARAM_STRING | PARAM_USE_FUNC, (void *)statsc_track_param},
+ {"interval", PARAM_INT, &statsc_interval},
+ {"items", PARAM_INT, &statsc_items},
+ {0, 0, 0}
+};
struct module_exports exports = {
- "statsc", /* module name */
- DEFAULT_DLFLAGS, /* dlopen flags */
- cmds, /* cmd exports */
- params, /* param exports */
- 0, /* exported RPC methods */
- 0, /* exported pseudo-variables */
- 0, /* response function */
- mod_init, /* module initialization function */
- child_init, /* per child init function */
- mod_destroy /* destroy function */
+ "statsc", /* 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, /* per-child init function */
+ mod_destroy /* module destroy function */
};
-
+/* clang-format on */
typedef struct statsc_nmap
{