From 387078e1cfd787ad36d72a0a6a8be0147a41f7a8 Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Tue, 11 Mar 2025 10:20:46 +0100 Subject: [PATCH] MT#62337 update PARAM definition for our modules Change-Id: I77c7d0200910f25762386720bd195677738e1ef6 --- debian/patches/sipwise/add_lcr_rate_module.patch | 14 +++++++------- debian/patches/sipwise/add_pcem_module.patch | 6 +++--- debian/patches/sipwise/add_tcap_module.patch | 6 +++--- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/debian/patches/sipwise/add_lcr_rate_module.patch b/debian/patches/sipwise/add_lcr_rate_module.patch index 5708c5d2d..13277ac41 100644 --- a/debian/patches/sipwise/add_lcr_rate_module.patch +++ b/debian/patches/sipwise/add_lcr_rate_module.patch @@ -97,7 +97,7 @@ index 0000000..9a3cee1 +include ../../Makefile.modules diff --git a/src/modules/lcr_rate/lcr_rate_mod.c b/src/modules/lcr_rate/lcr_rate_mod.c new file mode 100644 -index 0000000..5670871 +index 0000000..7d1462f --- /dev/null +++ b/src/modules/lcr_rate/lcr_rate_mod.c @@ -0,0 +1,517 @@ @@ -184,12 +184,12 @@ index 0000000..5670871 +}; + +static param_export_t params[] = { -+ {"gw_uri_avp", STR_PARAM, &gw_uri_avp_param}, -+ {"db_host", STR_PARAM, &db_host}, -+ {"db_port", INT_PARAM, &db_port}, -+ {"db_user", STR_PARAM, &db_user}, -+ {"db_pass", STR_PARAM, &db_pass}, -+ {"db_db", STR_PARAM, &db_db}, ++ {"gw_uri_avp", PARAM_STR, &gw_uri_avp_param}, ++ {"db_host", PARAM_STR, &db_host}, ++ {"db_port", PARAM_INT, &db_port}, ++ {"db_user", PARAM_STR, &db_user}, ++ {"db_pass", PARAM_STR, &db_pass}, ++ {"db_db", PARAM_STR, &db_db}, + {0,}, +}; + diff --git a/debian/patches/sipwise/add_pcem_module.patch b/debian/patches/sipwise/add_pcem_module.patch index 258159df6..edbc8d6de 100644 --- a/debian/patches/sipwise/add_pcem_module.patch +++ b/debian/patches/sipwise/add_pcem_module.patch @@ -226,7 +226,7 @@ index 0000000..b93b181 +#endif diff --git a/src/modules/pcem/pcem_mod.c b/src/modules/pcem/pcem_mod.c new file mode 100644 -index 0000000..2710b60 +index 0000000..7064015 --- /dev/null +++ b/src/modules/pcem/pcem_mod.c @@ -0,0 +1,149 @@ @@ -304,8 +304,8 @@ index 0000000..2710b60 + +static param_export_t params[] = { + /*{"test_str", INT_PARAM, &test_str.s },*/ -+ {"qos_flag", INT_PARAM, &pcem_qos_flag }, -+ {"all_flag", INT_PARAM, &pcem_all_flag }, ++ {"qos_flag", PARAM_INT, &pcem_qos_flag }, ++ {"all_flag", PARAM_INT, &pcem_all_flag }, + {0,0,0} +}; + diff --git a/debian/patches/sipwise/add_tcap_module.patch b/debian/patches/sipwise/add_tcap_module.patch index 866e3b702..2a07fe31d 100644 --- a/debian/patches/sipwise/add_tcap_module.patch +++ b/debian/patches/sipwise/add_tcap_module.patch @@ -51,7 +51,7 @@ index 0000000..d1e7b4d +include ../../Makefile.modules diff --git a/src/modules/tcap/tcap_mod.c b/src/modules/tcap/tcap_mod.c new file mode 100644 -index 0000000..79e736d +index 0000000..26beebb --- /dev/null +++ b/src/modules/tcap/tcap_mod.c @@ -0,0 +1,392 @@ @@ -104,8 +104,8 @@ index 0000000..79e736d + + +static param_export_t params[] = { -+ { "content_type", STR_PARAM, &content_type.s }, -+ { "strip_trailing_crlf", INT_PARAM, &strip_trailing_crlf }, ++ { "content_type", PARAM_STR, &content_type.s }, ++ { "strip_trailing_crlf", PARAM_INT, &strip_trailing_crlf }, + { 0, } +}; +