Browse code

Make the parser work with the sr core

List of changes:
* Fix header paths
* Include defines that are missing from keys.h
* Replace hf->sibling with next_sibling_hdr

Jan Janak authored on 29/03/2009 20:01:50
Showing 2 changed files
... ...
@@ -26,10 +26,13 @@
26 26
  * \ingroup parser
27 27
  */
28 28
 
29
-#include "../mem/mem.h"
30
-#include "keys.h"
29
+#include "../../mem/mem.h"
30
+#include "../../parser/keys.h"
31 31
 #include "parse_supported.h"
32 32
 
33
+#define _100r_ 0x72303031   /* "100r" for "100rel" */
34
+#define _time_ 0x656d6974   /*!< "time" */
35
+
33 36
 #define IS_DELIM(c) (*(c) == ' ' || *(c) == '\t' || *(c) == '\r' || *(c) == '\n' || *(c) == ',')
34 37
 
35 38
 /* from parser/parse_hname2.c: */
... ...
@@ -119,7 +122,7 @@ int parse_supported( struct sip_msg *msg)
119 119
 
120 120
 	/* bad luck! :-( - we have to parse them */
121 121
 	supported = 0;
122
-	for( hdr=msg->supported ; hdr ; hdr=hdr->sibling) {
122
+	for( hdr=msg->supported ; hdr ; hdr=next_sibling_hdr(hdr)) {
123 123
 		if (hdr->parsed) {
124 124
 			supported |= ((struct supported_body*)hdr->parsed)->supported;
125 125
 			continue;
... ...
@@ -35,8 +35,8 @@
35 35
 #ifndef PARSE_SUPPORTED_H
36 36
 #define PARSE_SUPPORTED_H
37 37
 
38
-#include "msg_parser.h"
39
-#include "../mem/mem.h"
38
+#include "../../parser/msg_parser.h"
39
+#include "../../mem/mem.h"
40 40
 
41 41
 
42 42
 #define F_SUPPORTED_PATH	(1 << 0)