Browse code

core: defines to return parsed uri in From and To

Daniel-Constantin Mierla authored on 05/01/2011 17:55:54
Showing 2 changed files
... ...
@@ -39,6 +39,8 @@
39 39
 
40 40
 #define free_from(_to_body_)  free_to(_to_body_)
41 41
 
42
+#define GET_FROM_PURI(p_msg) \
43
+	(&((struct to_body*)(p_msg)->from->parsed)->parsed_uri)
42 44
 
43 45
 /*
44 46
  * From header field parser
... ...
@@ -57,8 +57,10 @@ struct to_body{
57 57
 
58 58
 
59 59
 /* casting macro for accessing To body */
60
-#define get_to( p_msg)      ((struct to_body*)(p_msg)->to->parsed)
60
+#define get_to(p_msg)      ((struct to_body*)(p_msg)->to->parsed)
61 61
 
62
+#define GET_TO_PURI(p_msg) \
63
+	(&((struct to_body*)(p_msg)->to->parsed)->parsed_uri)
62 64
 
63 65
 /*! \brief
64 66
  * To header field parser