Module: kamailio Branch: master Commit: 64fe1638c08ac6c7e44daf663d24f088344a511a URL: https://github.com/kamailio/kamailio/commit/64fe1638c08ac6c7e44daf663d24f088...
Author: Victor Seva linuxmaniac@torreviejawireless.org Committer: Victor Seva linuxmaniac@torreviejawireless.org Date: 2024-12-11T19:20:49+01:00
pua: reformat exported structures
---
Modified: src/modules/pua/pua.c
---
Diff: https://github.com/kamailio/kamailio/commit/64fe1638c08ac6c7e44daf663d24f088... Patch: https://github.com/kamailio/kamailio/commit/64fe1638c08ac6c7e44daf663d24f088...
---
diff --git a/src/modules/pua/pua.c b/src/modules/pua/pua.c index 515abe0dc4c..638446eb39d 100644 --- a/src/modules/pua/pua.c +++ b/src/modules/pua/pua.c @@ -113,38 +113,44 @@ static void hashT_clean(unsigned int ticks, void *param);
static int pua_rpc_init(void);
+/* clang-format off */ static cmd_export_t cmds[] = { - {"pua_update_contact", (cmd_function)w_pua_update_contact, 0, 0, 0, - REQUEST_ROUTE}, - {"bind_libxml_api", (cmd_function)bind_libxml_api, 1, 0, 0, 0}, - {"bind_pua", (cmd_function)bind_pua, 1, 0, 0, 0}, {0, 0, 0, 0, 0, 0}}; - -static param_export_t params[] = {{"hash_size", PARAM_INT, &HASH_SIZE}, - {"db_url", PARAM_STR, &db_url}, {"db_table", PARAM_STR, &db_table}, - {"min_expires", PARAM_INT, &min_expires}, - {"default_expires", PARAM_INT, &pua_default_expires}, - {"update_period", PARAM_INT, &update_period}, - {"outbound_proxy", PARAM_STR, &outbound_proxy}, - {"dlginfo_increase_version", PARAM_INT, &dlginfo_increase_version}, - {"reginfo_increase_version", PARAM_INT, ®info_increase_version}, - {"check_remote_contact", PARAM_INT, &check_remote_contact}, - {"db_mode", PARAM_INT, &dbmode}, - {"fetch_rows", PARAM_INT, &pua_fetch_rows}, - {"db_table_lock_write", PARAM_INT, &db_table_lock_write}, {0, 0, 0}}; + {"pua_update_contact", (cmd_function)w_pua_update_contact, 0, 0, 0, REQUEST_ROUTE}, + {"bind_libxml_api", (cmd_function)bind_libxml_api, 1, 0, 0, 0}, + {"bind_pua", (cmd_function)bind_pua, 1, 0, 0, 0}, + {0, 0, 0, 0, 0, 0} +}; + +static param_export_t params[] = { + {"hash_size", PARAM_INT, &HASH_SIZE}, + {"db_url", PARAM_STR, &db_url}, {"db_table", PARAM_STR, &db_table}, + {"min_expires", PARAM_INT, &min_expires}, + {"default_expires", PARAM_INT, &pua_default_expires}, + {"update_period", PARAM_INT, &update_period}, + {"outbound_proxy", PARAM_STR, &outbound_proxy}, + {"dlginfo_increase_version", PARAM_INT, &dlginfo_increase_version}, + {"reginfo_increase_version", PARAM_INT, ®info_increase_version}, + {"check_remote_contact", PARAM_INT, &check_remote_contact}, + {"db_mode", PARAM_INT, &dbmode}, + {"fetch_rows", PARAM_INT, &pua_fetch_rows}, + {"db_table_lock_write", PARAM_INT, &db_table_lock_write}, + {0, 0, 0} +};
/** module exports */ struct module_exports exports = { "pua", /* 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 */ - destroy /* module destroy function */ + 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 */ + destroy /* module destroy function */ }; +/* clang-format on */
/** * init module function