Module: kamailio Branch: master Commit: 6b603c58be614fdf3798f29bff8dd8b5ebd4653e URL: https://github.com/kamailio/kamailio/commit/6b603c58be614fdf3798f29bff8dd8b5ebd4653e
Author: Victor Seva <linuxman...@torreviejawireless.org> Committer: Victor Seva <linuxman...@torreviejawireless.org> Date: 2024-12-12T17:13:29+01:00 matrix: reformat exported structures --- Modified: src/modules/matrix/matrix.c --- Diff: https://github.com/kamailio/kamailio/commit/6b603c58be614fdf3798f29bff8dd8b5ebd4653e.diff Patch: https://github.com/kamailio/kamailio/commit/6b603c58be614fdf3798f29bff8dd8b5ebd4653e.patch --- diff --git a/src/modules/matrix/matrix.c b/src/modules/matrix/matrix.c index d23369b7e12..271ab482c05 100644 --- a/src/modules/matrix/matrix.c +++ b/src/modules/matrix/matrix.c @@ -85,29 +85,33 @@ static int mod_init(void); static int child_init(int rank); static void mod_destroy(void); - +/* clang-format off */ static cmd_export_t cmds[] = { - {"matrix", (cmd_function)lookup_matrix, 3, matrix_fixup, 0, - REQUEST_ROUTE | FAILURE_ROUTE}, - {0, 0, 0, 0, 0, 0}}; - + {"matrix", (cmd_function)lookup_matrix, 3, + matrix_fixup, 0, REQUEST_ROUTE | FAILURE_ROUTE}, + {0, 0, 0, 0, 0, 0} + }; static param_export_t params[] = { - matrix_DB_URL matrix_DB_TABLE matrix_DB_COLS{0, 0, 0}}; - + matrix_DB_URL + matrix_DB_TABLE + matrix_DB_COLS + {0, 0, 0} +}; struct module_exports exports = { - "matrix", /* module name */ - DEFAULT_DLFLAGS, /* dlopen flags */ - cmds, /* cmd (cfg function) exports */ - 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 */ - mod_destroy /* module destroy function */ + "matrix", /* 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 */ + child_init, /* per-child init function */ + mod_destroy /* module destroy function */ }; +/* clang-format on */ struct first_t _______________________________________________ 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!