Module: sip-router
Branch: master
Commit: 21fe4ed3496de3094d12f941310df605e492a713
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=21fe4ed…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Thu Jul 19 10:23:20 2012 +0200
core: fixup helper function for spve - igp parameters
---
mod_fix.c | 24 ++++++++++++++++++++++++
mod_fix.h | 3 +++
2 files changed, 27 insertions(+), 0 deletions(-)
diff --git a/mod_fix.c b/mod_fix.c
index 3f07f59..0f66437 100644
--- a/mod_fix.c
+++ b/mod_fix.c
@@ -557,3 +557,27 @@ int fixup_igp_all(void** param, int param_no)
{
return fixup_igp_null(param, 1);
}
+
+/**
+ *
+ */
+int fixup_spve_igp(void** param, int param_no)
+{
+ if(param_no==1)
+ return fixup_spve_null(param, 1);
+ if(param_no==2)
+ return fixup_igp_null(param, 1);
+ return E_UNSPEC;
+}
+
+/**
+ *
+ */
+int fixup_free_spve_igp(void** param, int param_no)
+{
+ if(param_no==1)
+ return fixup_free_spve_null(param, 1);
+ if(param_no==2)
+ return fixup_free_igp_null(param, 1);
+ return E_UNSPEC;
+}
diff --git a/mod_fix.h b/mod_fix.h
index 0e4206f..9c5863e 100644
--- a/mod_fix.h
+++ b/mod_fix.h
@@ -131,6 +131,9 @@ int fixup_free_spve_str(void** param, int param_no);
int fixup_spve_all(void** param, int param_no);
int fixup_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);
+
/** get the corresp. free fixup function.*/
free_fixup_function mod_fix_get_fixup_free(fixup_function f);