Skip to content

Commit

Permalink
smsops: reformat module exports structures
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Mar 26, 2024
1 parent 14dc277 commit 9848d43
Showing 1 changed file with 26 additions and 21 deletions.
47 changes: 26 additions & 21 deletions src/modules/smsops/smsops.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit 9848d43

Please sign in to comment.