[SR-Dev] git:master: Kamailio compatibility declarations

Jan Janak jan at iptel.org
Sun Mar 8 04:43:57 CET 2009


Module: sip-router
Branch: master
Commit: 812b60d34c0dc600349913a5ccd6bd66450044b5
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=812b60d34c0dc600349913a5ccd6bd66450044b5

Author: Jan Janak <jan at iptel.org>
Committer: Jan Janak <jan at iptel.org>
Date:   Sun Mar  8 04:12:22 2009 +0100

Kamailio compatibility declarations

 * Define WITH_SEP and WITHOUT_SEP for k. compatiblity
 * Extend enum replace_special with REPLACE_SPEC
 * Add pv_spec_t type to the union in replace_with

---

 re.h |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/re.h b/re.h
index 4dec277..06022f2 100644
--- a/re.h
+++ b/re.h
@@ -37,11 +37,16 @@
 #define _re_h
 
 #include "str.h"
+#include "pvar.h"
 #include "parser/msg_parser.h"
 #include <sys/types.h> /* for regex */
 #include <regex.h>
 
-enum replace_special { REPLACE_NMATCH, REPLACE_CHAR, REPLACE_URI };
+#define WITH_SEP	1
+#define WITHOUT_SEP	0
+
+enum replace_special { REPLACE_NMATCH, REPLACE_CHAR, REPLACE_URI, 
+					   REPLACE_SPEC };
 
 struct replace_with{
 	int offset; /* offset in string */
@@ -50,6 +55,7 @@ struct replace_with{
 	union{
 		int nmatch;
 		char c;
+		pv_spec_t spec;
 	}u;
 };
 




More information about the sr-dev mailing list