Skip to content

Commit

Permalink
smsops: clang-format for coherent indentation and coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxmaniac committed May 18, 2023
1 parent 976486d commit 8776676
Show file tree
Hide file tree
Showing 2 changed files with 748 additions and 561 deletions.
53 changes: 25 additions & 28 deletions src/modules/smsops/smsops.c
Expand Up @@ -30,34 +30,31 @@

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,
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 }
};

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}
};
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}};

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}};

/** 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 */
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 */
};


0 comments on commit 8776676

Please sign in to comment.