Module: kamailio Branch: master Commit: 713efe7b382e9e1d83240f3e348cbf46db46f1de URL: https://github.com/kamailio/kamailio/commit/713efe7b382e9e1d83240f3e348cbf46db46f1de
Author: Victor Seva <linuxman...@torreviejawireless.org> Committer: Victor Seva <linuxman...@torreviejawireless.org> Date: 2024-12-11T21:41:17+01:00 prefix_route: reformat exported structures --- Modified: src/modules/prefix_route/prefix_route.c --- Diff: https://github.com/kamailio/kamailio/commit/713efe7b382e9e1d83240f3e348cbf46db46f1de.diff Patch: https://github.com/kamailio/kamailio/commit/713efe7b382e9e1d83240f3e348cbf46db46f1de.patch --- diff --git a/src/modules/prefix_route/prefix_route.c b/src/modules/prefix_route/prefix_route.c index af1e36ccb36..43c27900666 100644 --- a/src/modules/prefix_route/prefix_route.c +++ b/src/modules/prefix_route/prefix_route.c @@ -321,41 +321,36 @@ static int prefix_route(struct sip_msg *msg, char *p1, char *p2) return ki_prefix_route(msg, &user); } -/* - * Exported functions - */ + +/* clang-format off */ static cmd_export_t cmds[] = { - {"prefix_route", prefix_route, 0, 0, 0, - REQUEST_ROUTE | BRANCH_ROUTE | FAILURE_ROUTE}, - {"prefix_route", prefix_route, 1, fixup_spve_null, 0, ANY_ROUTE}, - {0, 0, 0, 0, 0, 0}}; + {"prefix_route", prefix_route, 0, 0, 0, + REQUEST_ROUTE | BRANCH_ROUTE | FAILURE_ROUTE}, + {"prefix_route", prefix_route, 1, fixup_spve_null, 0, ANY_ROUTE}, + {0, 0, 0, 0, 0, 0} +}; -/* - * Exported parameters - */ -static param_export_t params[] = {{"db_url", PARAM_STRING, &db_url}, - {"db_table", PARAM_STRING, &db_table}, - {"exit", PARAM_INT, &prefix_route_exit}, {0, 0, 0}}; +static param_export_t params[] = { + {"db_url", PARAM_STRING, &db_url}, + {"db_table", PARAM_STRING, &db_table}, + {"exit", PARAM_INT, &prefix_route_exit}, + {0, 0, 0} +}; -/* - * Module description - */ struct module_exports exports = { - "prefix_route", /* Module name */ - DEFAULT_DLFLAGS, /* dlopen flags */ - cmds, /* exported functions */ - params, /* exported parameters */ - pr_rpc, /* RPC methods */ - 0, /* pseudo-variables exports */ - 0, /* response function */ - mod_init, /* initialization function */ - 0, /* per-child init function */ - mod_destroy /* module destroy function */ + "prefix_route", /* Module name */ + DEFAULT_DLFLAGS, /* dlopen flags */ + cmds, /* exported functions */ + params, /* exported parameters */ + pr_rpc, /* RPC method exports */ + 0, /* exported pseudo-variables */ + 0, /* response handling function */ + mod_init, /* module initialization function */ + 0, /* per-child init function */ + mod_destroy /* module destroy function */ }; +/* clang-format on */ -/** - * - */ /* clang-format off */ static sr_kemi_t sr_kemi_prefix_route_exports[] = { { str_init("prefix_route"), str_init("prefix_route"), _______________________________________________ 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!