Module: kamailio
Branch: 5.8
Commit: b21a7aaa467f2b76a52308557657c65274e34087
URL:
https://github.com/kamailio/kamailio/commit/b21a7aaa467f2b76a52308557657c65…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-04-01T08:07:55+02:00
smsops: reformat module exports structures
(cherry picked from commit 9848d43cb367d6901a0b8c727759feb8a8fad930)
---
Modified: src/modules/smsops/smsops.c
---
Diff:
https://github.com/kamailio/kamailio/commit/b21a7aaa467f2b76a52308557657c65…
Patch:
https://github.com/kamailio/kamailio/commit/b21a7aaa467f2b76a52308557657c65…
---
diff --git a/src/modules/smsops/smsops.c b/src/modules/smsops/smsops.c
index 3e2cb88bc58..d8354af2319 100644
--- a/src/modules/smsops/smsops.c
+++ b/src/modules/smsops/smsops.c
@@ -30,31 +30,36 @@
MODULE_VERSION
-static pv_export_t mod_pvs[] = {{{"smsack", sizeof("smsack") - 1},
PVT_OTHER,
- pv_sms_ack, 0, 0, 0, 0, 0},
- {{"rpdata", sizeof("rpdata") - 1}, PVT_OTHER, pv_get_sms,
pv_set_sms,
- pv_parse_rpdata_name, 0, 0, 0},
- {{"tpdu", sizeof("tpdu") - 1}, PVT_OTHER, pv_get_sms, pv_set_sms,
+/* clang-format off */
+static pv_export_t mod_pvs[] = {
+ {{"smsack", sizeof("smsack") - 1}, PVT_OTHER, pv_sms_ack, 0, 0, 0,
0, 0},
+ {{"rpdata", sizeof("rpdata") - 1}, PVT_OTHER, pv_get_sms,
pv_set_sms,
+ pv_parse_rpdata_name, 0, 0, 0},
+ {{"tpdu", sizeof("tpdu") - 1}, PVT_OTHER, pv_get_sms, pv_set_sms,
pv_parse_tpdu_name, 0, 0, 0},
- {{"smsbody", sizeof("smsbody") - 1}, PVT_OTHER, pv_sms_body, 0, 0,
0, 0,
- 0},
- {{0, 0}, 0, 0, 0, 0, 0, 0, 0}};
+ {{"smsbody", sizeof("smsbody") - 1}, PVT_OTHER, pv_sms_body, 0, 0,
0, 0, 0},
+
+ {{0, 0}, 0, 0, 0, 0, 0, 0, 0}
+};
static cmd_export_t cmds[] = {
- {"smsdump", (cmd_function)smsdump, 0, 0, 0, REQUEST_ROUTE},
- {"isRPDATA", (cmd_function)isRPDATA, 0, 0, 0, REQUEST_ROUTE},
- {0, 0, 0, 0, 0, 0}};
+ {"smsdump", (cmd_function)smsdump, 0, 0, 0, REQUEST_ROUTE},
+ {"isRPDATA", (cmd_function)isRPDATA, 0, 0, 0, REQUEST_ROUTE},
+
+ {0, 0, 0, 0, 0, 0}
+};
/** module exports */
struct module_exports exports = {
- "smsops", /* module name */
- DEFAULT_DLFLAGS, /* dlopen flags */
- cmds, /* exported functions */
- 0, /* exported parameters */
- 0, /* exported rpc functions */
- mod_pvs, /* exported pseudo-variables */
- 0, /* response handling function*/
- 0, /* module init function */
- 0, /* per-child init function */
- 0 /* module destroy function */
+ "smsops", /* module name */
+ DEFAULT_DLFLAGS, /* dlopen flags */
+ cmds, /* exported functions */
+ 0, /* exported parameters */
+ 0, /* exported rpc functions */
+ mod_pvs, /* exported pseudo-variables */
+ 0, /* response handling function*/
+ 0, /* module init function */
+ 0, /* per-child init function */
+ 0 /* module destroy function */
};
+/* clang-format on */