Module: kamailio Branch: master Commit: 57711e24c83afa8e46d9c17730c610d0c17dd141 URL: https://github.com/kamailio/kamailio/commit/57711e24c83afa8e46d9c17730c610d0c17dd141
Author: Victor Seva <linuxman...@torreviejawireless.org> Committer: Victor Seva <linuxman...@torreviejawireless.org> Date: 2024-12-12T14:50:41+01:00 nosip: reformat exported structures --- Modified: src/modules/nosip/nosip_mod.c --- Diff: https://github.com/kamailio/kamailio/commit/57711e24c83afa8e46d9c17730c610d0c17dd141.diff Patch: https://github.com/kamailio/kamailio/commit/57711e24c83afa8e46d9c17730c610d0c17dd141.patch --- diff --git a/src/modules/nosip/nosip_mod.c b/src/modules/nosip/nosip_mod.c index e3e2232c440..78417e29100 100644 --- a/src/modules/nosip/nosip_mod.c +++ b/src/modules/nosip/nosip_mod.c @@ -53,30 +53,36 @@ static regex_t nosip_msg_match_regexp; static char *nosip_msg_skip = NULL; static regex_t nosip_msg_skip_regexp; +/* clang-format off */ +static cmd_export_t cmds[] = { + {0, 0, 0, 0, 0} +}; -static cmd_export_t cmds[] = {{0, 0, 0, 0, 0}}; - -static pv_export_t mod_pvs[] = {{{"nosip", (sizeof("nosip") - 1)}, /* */ - PVT_OTHER, pv_get_nosip, 0, 0, 0, 0, 0}, - - {{0, 0}, 0, 0, 0, 0, 0, 0, 0}}; +static pv_export_t mod_pvs[] = { + {{"nosip", (sizeof("nosip") - 1)}, + PVT_OTHER, pv_get_nosip, 0, 0, 0, 0, 0}, + {{0, 0}, 0, 0, 0, 0, 0, 0, 0}}; -static param_export_t params[] = {{"msg_match", PARAM_STRING, &nosip_msg_match}, - {"msg_skip", PARAM_STRING, &nosip_msg_skip}, {0, 0, 0}}; +static param_export_t params[] = { + {"msg_match", PARAM_STRING, &nosip_msg_match}, + {"msg_skip", PARAM_STRING, &nosip_msg_skip}, + {0, 0, 0} +}; /** module exports */ struct module_exports exports = { - "nosip", /* module name */ - DEFAULT_DLFLAGS, /* dlopen flags */ - cmds, /* cmd (cfg function) exports */ - params, /* param exports */ - 0, /* RPC method exports */ - mod_pvs, /* pseudo-variables exports */ - 0, /* response handling function */ - mod_init, /* module init function */ - 0, /* per-child init function */ - 0 /* module destroy function */ + "nosip", /* module name */ + DEFAULT_DLFLAGS, /* dlopen flags */ + cmds, /* exported functions */ + params, /* exported parameters */ + 0, /* RPC method exports */ + mod_pvs, /* exported pseudo-variables */ + 0, /* response handling function */ + mod_init, /* module initialization function */ + 0, /* per-child init function */ + 0 /* module destroy function */ }; +/* clang-format on */ /** * _______________________________________________ Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org To unsubscribe send an email to sr-dev-le...@lists.kamailio.org Important: keep the mailing list in the recipients, do not reply only to the sender!