Module: kamailio Branch: master Commit: 436e79216a448b0a270a53f867d89b84269557d9 URL: https://github.com/kamailio/kamailio/commit/436e79216a448b0a270a53f867d89b84269557d9
Author: Federico Cabiddu <federico.cabi...@gmail.com> Committer: Federico Cabiddu <federico.cabi...@gmail.com> Date: 2024-11-22T12:31:36+01:00 jsonrpcc: reformat exported structures --- Modified: src/modules/jsonrpcc/jsonrpcc_mod.c --- Diff: https://github.com/kamailio/kamailio/commit/436e79216a448b0a270a53f867d89b84269557d9.diff Patch: https://github.com/kamailio/kamailio/commit/436e79216a448b0a270a53f867d89b84269557d9.patch --- diff --git a/src/modules/jsonrpcc/jsonrpcc_mod.c b/src/modules/jsonrpcc/jsonrpcc_mod.c index f374cf4f8c8..308c0f6432e 100644 --- a/src/modules/jsonrpcc/jsonrpcc_mod.c +++ b/src/modules/jsonrpcc/jsonrpcc_mod.c @@ -55,15 +55,16 @@ extern int _jsonrpcc_max_conn_retry; /* max retries to connect */ struct tm_binds tmb; +/* clang-format off */ /* * Exported Functions */ static cmd_export_t cmds[] = { - {"jsonrpc_request", (cmd_function)jsonrpc_request, 5, fixup_request, - fixup_request_free, ANY_ROUTE}, - {"jsonrpc_notification", (cmd_function)jsonrpc_notification, 2, - fixup_notification, 0, ANY_ROUTE}, - {0, 0, 0, 0, 0, 0}}; + {"jsonrpc_request", (cmd_function)jsonrpc_request, 5, fixup_request, + fixup_request_free, ANY_ROUTE}, + {"jsonrpc_notification", (cmd_function)jsonrpc_notification, 2, fixup_notification, + fixup_free_spve_null, ANY_ROUTE}, + {0, 0, 0, 0, 0, 0}}; /* @@ -77,17 +78,18 @@ static param_export_t mod_params[] = {{"servers", PARAM_STRING, &servers_param}, * Exports */ struct module_exports exports = { - "jsonrpcc", /* module name */ - DEFAULT_DLFLAGS, /* dlopen flags */ - cmds, /* cmd (cfg function) exports */ - mod_params, /* param exports */ - 0, /* RPC method exports */ - 0, /* pseudo-variables exports */ - 0, /* response handling function */ - mod_init, /* module init function */ - child_init, /* per-child init function */ - 0 /* module destroy function */ + "jsonrpcc", /* module name */ + DEFAULT_DLFLAGS, /* dlopen flags */ + cmds, /* cmd (cfg function) exports */ + mod_params, /* param exports */ + 0, /* RPC method exports */ + 0, /* pseudo-variables exports */ + 0, /* response handling function */ + mod_init, /* module init function */ + child_init, /* per-child init function */ + 0 /* module destroy function */ }; +/* clang-format off */ 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!