Module: kamailio Branch: master Commit: c34bce14a7dfba19bec7e46705eda3cf5f4298dd URL: https://github.com/kamailio/kamailio/commit/c34bce14a7dfba19bec7e46705eda3cf5f4298dd
Author: Victor Seva <linuxman...@torreviejawireless.org> Committer: Victor Seva <linuxman...@torreviejawireless.org> Date: 2024-11-20T10:23:17+01:00 xmpp: reformat exported structures --- Modified: src/modules/xmpp/xmpp.c --- Diff: https://github.com/kamailio/kamailio/commit/c34bce14a7dfba19bec7e46705eda3cf5f4298dd.diff Patch: https://github.com/kamailio/kamailio/commit/c34bce14a7dfba19bec7e46705eda3cf5f4298dd.patch --- diff --git a/src/modules/xmpp/xmpp.c b/src/modules/xmpp/xmpp.c index 3d292e9ea39..92a2ef9c673 100644 --- a/src/modules/xmpp/xmpp.c +++ b/src/modules/xmpp/xmpp.c @@ -160,43 +160,48 @@ param_t *_xmpp_gwmap_list = NULL; #define DEFAULT_COMPONENT_PORT 5347 #define DEFAULT_SERVER_PORT 5269 +/* clang-format off */ /* * Exported functions */ static cmd_export_t cmds[] = { - {"xmpp_send_message", (cmd_function)cmd_send_message, 0, 0, 0, - REQUEST_ROUTE}, - {"bind_xmpp", (cmd_function)bind_xmpp, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0}}; + {"xmpp_send_message", (cmd_function)cmd_send_message, 0, 0, 0, REQUEST_ROUTE}, + {"bind_xmpp", (cmd_function)bind_xmpp, 0, 0, 0, 0}, + {0, 0, 0, 0, 0, 0} +}; /* * Exported parameters */ -static param_export_t params[] = {{"backend", PARAM_STRING, &backend}, - {"domain_separator", PARAM_STRING, &domain_sep_str}, - {"gateway_domain", PARAM_STRING, &gateway_domain}, - {"xmpp_domain", PARAM_STRING, &xmpp_domain}, - {"xmpp_host", PARAM_STRING, &xmpp_host}, - {"xmpp_port", PARAM_INT, &xmpp_port}, - {"xmpp_password", PARAM_STRING, &xmpp_password}, - {"outbound_proxy", PARAM_STR, &outbound_proxy}, - {"gwmap", PARAM_STRING | PARAM_USE_FUNC, (void *)xmpp_gwmap_param}, - {0, 0, 0}}; +static param_export_t params[] = { + {"backend", PARAM_STRING, &backend}, + {"domain_separator", PARAM_STRING, &domain_sep_str}, + {"gateway_domain", PARAM_STRING, &gateway_domain}, + {"xmpp_domain", PARAM_STRING, &xmpp_domain}, + {"xmpp_host", PARAM_STRING, &xmpp_host}, + {"xmpp_port", PARAM_INT, &xmpp_port}, + {"xmpp_password", PARAM_STRING, &xmpp_password}, + {"outbound_proxy", PARAM_STR, &outbound_proxy}, + {"gwmap", PARAM_STRING | PARAM_USE_FUNC, (void *)xmpp_gwmap_param}, + {0, 0, 0} +}; /* * Module description */ struct module_exports exports = { - "xmpp", /* module name */ - DEFAULT_DLFLAGS, /* dlopen flags */ - cmds, /* exported functions */ - params, /* exported parameters */ - 0, /* exported rpc functions */ - 0, /* exported pseudo-variables */ - 0, /* response handling function */ - mod_init, /* module init function */ - child_init, /* child init function */ - 0 /* module destroy function */ + "xmpp", /* module name */ + DEFAULT_DLFLAGS, /* dlopen flags */ + cmds, /* exported functions */ + params, /* exported parameters */ + 0, /* exported rpc functions */ + 0, /* exported pseudo-variables */ + 0, /* response handling function */ + mod_init, /* module init function */ + child_init, /* child init function */ + 0 /* module destroy function */ }; +/* clang-format on */ /* * initialize module _______________________________________________ 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!