Module: kamailio
Branch: master
Commit: 2063993c1ae54c07b39ea9deb8f735a47785c0ee
URL:
https://github.com/kamailio/kamailio/commit/2063993c1ae54c07b39ea9deb8f735a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-03-29T11:13:48+01:00
core: added fixup_spve1_pvar() helper
- comments to spveX pvar fixup helpers
---
Modified: src/core/mod_fix.c
Modified: src/core/mod_fix.h
---
Diff:
https://github.com/kamailio/kamailio/commit/2063993c1ae54c07b39ea9deb8f735a…
Patch:
https://github.com/kamailio/kamailio/commit/2063993c1ae54c07b39ea9deb8f735a…
---
diff --git a/src/core/mod_fix.c b/src/core/mod_fix.c
index 0947f788461..bba3a469028 100644
--- a/src/core/mod_fix.c
+++ b/src/core/mod_fix.c
@@ -728,7 +728,9 @@ int fixup_free_spve_spve_igp(void **param, int param_no)
}
/**
- *
+ * - first params are dynamic strings (spve)
+ * - n - how many params are spve; n+1 is name of pv
+ * - if pvmode==1, the last param pv has to be r/w
*/
int fixup_spve_n_pvar(void **param, int n, int param_no, int pvmode)
{
@@ -768,6 +770,15 @@ int fixup_spve_pvar(void **param, int param_no)
return fixup_spve_n_pvar(param, 1, param_no, 0);
}
+/**
+ * - first params are dynamic strings
+ * - last param pv has to be r/w
+ */
+int fixup_spve1_pvar(void **param, int param_no)
+{
+ return fixup_spve_n_pvar(param, 1, param_no, 1);
+}
+
/**
*
*/
@@ -777,7 +788,8 @@ int fixup_free_spve_pvar(void **param, int param_no)
}
/**
- *
+ * - first params are dynamic strings
+ * - last param pv has to be r/w
*/
int fixup_spve2_pvar(void **param, int param_no)
{
@@ -793,7 +805,8 @@ int fixup_free_spve2_pvar(void **param, int param_no)
}
/**
- *
+ * - first params are dynamic strings
+ * - last param pv has to be r/w
*/
int fixup_spve3_pvar(void **param, int param_no)
{
@@ -809,7 +822,8 @@ int fixup_free_spve3_pvar(void **param, int param_no)
}
/**
- *
+ * - first params are dynamic strings
+ * - last param pv has to be r/w
*/
int fixup_spve4_pvar(void **param, int param_no)
{
diff --git a/src/core/mod_fix.h b/src/core/mod_fix.h
index a202c4ade2b..d3f954fb1c2 100644
--- a/src/core/mod_fix.h
+++ b/src/core/mod_fix.h
@@ -147,6 +147,7 @@ int fixup_free_igp_all(void **param, int param_no);
int fixup_spve_igp(void **param, int param_no);
int fixup_free_spve_igp(void **param, int param_no);
int fixup_spve_pvar(void **param, int param_no);
+int fixup_spve1_pvar(void **param, int param_no);
int fixup_free_spve_pvar(void **param, int param_no);
int fixup_spve2_pvar(void **param, int param_no);
int fixup_free_spve2_pvar(void **param, int param_no);