Module: kamailio
Branch: master
Commit: 6d9ff00f2dc0a893162b2aa8aa28b0a835b58a2e
URL:
https://github.com/kamailio/kamailio/commit/6d9ff00f2dc0a893162b2aa8aa28b0a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-06-19T15:48:48+02:00
core: fixup helper for functions with spve, spve and igp params
---
Modified: src/core/mod_fix.c
Modified: src/core/mod_fix.h
---
Diff:
https://github.com/kamailio/kamailio/commit/6d9ff00f2dc0a893162b2aa8aa28b0a…
Patch:
https://github.com/kamailio/kamailio/commit/6d9ff00f2dc0a893162b2aa8aa28b0a…
---
diff --git a/src/core/mod_fix.c b/src/core/mod_fix.c
index df3775f6cd..9c8a9535b5 100644
--- a/src/core/mod_fix.c
+++ b/src/core/mod_fix.c
@@ -641,6 +641,30 @@ int fixup_free_spve_igp(void** param, int param_no)
return E_UNSPEC;
}
+/**
+ *
+ */
+int fixup_spve_spve_igp(void** param, int param_no)
+{
+ if(param_no==1 || param_no==2)
+ return fixup_spve_null(param, 1);
+ if(param_no==3)
+ return fixup_igp_null(param, 1);
+ return E_UNSPEC;
+}
+
+/**
+ *
+ */
+int fixup_free_spve_spve_igp(void** param, int param_no)
+{
+ if(param_no==1 || param_no==2)
+ return fixup_free_spve_null(param, 1);
+ if(param_no==3)
+ return fixup_free_igp_null(param, 1);
+ return E_UNSPEC;
+}
+
/**
*
*/
diff --git a/src/core/mod_fix.h b/src/core/mod_fix.h
index e78b2d2df0..b3ab9b91ae 100644
--- a/src/core/mod_fix.h
+++ b/src/core/mod_fix.h
@@ -146,6 +146,9 @@ int fixup_free_spve_igp(void** param, int param_no);
int fixup_spve_pvar(void** param, int param_no);
int fixup_free_spve_pvar(void** param, int param_no);
+int fixup_spve_spve_igp(void** param, int param_no);
+int fixup_free_spve_spve_igp(void** param, int param_no);
+
int fixup_none_spve(void** param, int param_no);
int fixup_free_none_spve(void** param, int param_no);