Module: kamailio Branch: master Commit: ca415a35092ffbefbfdde714e7c7759470342907 URL: https://github.com/kamailio/kamailio/commit/ca415a35092ffbefbfdde714e7c7759470342907
Author: Victor Seva <linuxman...@torreviejawireless.org> Committer: Victor Seva <linuxman...@torreviejawireless.org> Date: 2024-12-11T22:03:20+01:00 path: reformat exported structures --- Modified: src/modules/path/path_mod.c --- Diff: https://github.com/kamailio/kamailio/commit/ca415a35092ffbefbfdde714e7c7759470342907.diff Patch: https://github.com/kamailio/kamailio/commit/ca415a35092ffbefbfdde714e7c7759470342907.patch --- diff --git a/src/modules/path/path_mod.c b/src/modules/path/path_mod.c index a30ff41cbcd..ef34b8902cb 100644 --- a/src/modules/path/path_mod.c +++ b/src/modules/path/path_mod.c @@ -83,51 +83,53 @@ struct rr_binds path_rrb; */ ob_api_t path_obb; +/* clang-format off */ /*! \brief * Exported functions */ static cmd_export_t cmds[] = { - {"add_path", (cmd_function)add_path, 0, 0, 0, REQUEST_ROUTE}, - {"add_path", (cmd_function)add_path_usr, 1, fixup_spve_null, 0, - REQUEST_ROUTE}, - {"add_path", (cmd_function)add_path_usr, 2, fixup_spve_spve, 0, - REQUEST_ROUTE}, - {"add_path_received", (cmd_function)add_path_received, 0, 0, 0, - REQUEST_ROUTE}, - {"add_path_received", (cmd_function)add_path_received_usr, 1, - fixup_spve_null, 0, REQUEST_ROUTE}, - {"add_path_received", (cmd_function)add_path_received_usr, 2, - fixup_spve_spve, 0, REQUEST_ROUTE}, - {0, 0, 0, 0, 0, 0}}; - + {"add_path", (cmd_function)add_path, 0, 0, 0, REQUEST_ROUTE}, + {"add_path", (cmd_function)add_path_usr, 1, fixup_spve_null, 0, + REQUEST_ROUTE}, + {"add_path", (cmd_function)add_path_usr, 2, fixup_spve_spve, 0, + REQUEST_ROUTE}, + {"add_path_received", (cmd_function)add_path_received, 0, 0, 0, + REQUEST_ROUTE}, + {"add_path_received", (cmd_function)add_path_received_usr, 1, + fixup_spve_null, 0, REQUEST_ROUTE}, + {"add_path_received", (cmd_function)add_path_received_usr, 2, + fixup_spve_spve, 0, REQUEST_ROUTE}, + {0, 0, 0, 0, 0, 0} +}; /*! \brief * Exported parameters */ static param_export_t params[] = { - {"use_received", PARAM_INT, &path_use_received}, - {"received_format", PARAM_INT, &path_received_format}, - {"enable_r2", PARAM_INT, &path_enable_r2}, - {"sockname_mode", PARAM_INT, &path_sockname_mode}, - {"received_name", PARAM_STR, &path_received_name}, {0, 0, 0}}; - + {"use_received", PARAM_INT, &path_use_received}, + {"received_format", PARAM_INT, &path_received_format}, + {"enable_r2", PARAM_INT, &path_enable_r2}, + {"sockname_mode", PARAM_INT, &path_sockname_mode}, + {"received_name", PARAM_STR, &path_received_name}, + {0, 0, 0} +}; /*! \brief * Module interface */ struct module_exports exports = { - "path", /* module name */ - DEFAULT_DLFLAGS, /* dlopen flags */ - cmds, /* Exported functions */ - params, /* Exported parameters */ - 0, /* RPC method exports */ - 0, /* exported pseudo-variables */ - 0, /* response function */ - mod_init, /* module initialization function */ - 0, /* child initialization function */ - 0 /* destroy function */ + "path", /* module name */ + DEFAULT_DLFLAGS, /* dlopen flags */ + cmds, /* exported functions */ + params, /* exported parameters */ + 0, /* RPC method exports */ + 0, /* exported pseudo-variables */ + 0, /* response handling function */ + mod_init, /* module initialization function */ + 0, /* per-child init function */ + 0 /* module destroy function */ }; - +/* clang-format on */ static int mod_init(void) { _______________________________________________ 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!