[sr-dev] git:master: parser: typedef'ed To structures

Daniel-Constantin Mierla miconda at gmail.com
Tue Jan 10 23:33:40 CET 2012


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

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date:   Tue Jan 10 23:07:04 2012 +0100

parser: typedef'ed To structures

---

 parser/parse_to.h |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/parser/parse_to.h b/parser/parse_to.h
index d71c4d2..cbeb35a 100644
--- a/parser/parse_to.h
+++ b/parser/parse_to.h
@@ -36,15 +36,15 @@ enum {
 	TAG_PARAM = 400, GENERAL_PARAM
 };
 
-struct to_param{
+typedef struct to_param{
 	int type;              /*!< Type of parameter */
 	str name;              /*!< Name of parameter */
 	str value;             /*!< Parameter value */
 	struct to_param* next; /*!< Next parameter in the list */
-};
+} to_param_t;
 
 
-struct to_body{
+typedef struct to_body{
 	int error;                    /*!< Error code */
 	str body;                     /*!< The whole header field body */
 	str uri;                      /*!< URI */
@@ -53,7 +53,7 @@ struct to_body{
 	struct sip_uri parsed_uri;
 	struct to_param *param_lst;   /*!< Linked list of parameters */
 	struct to_param *last_param;  /*!< Last parameter in the list */
-};
+} to_body_t;
 
 
 /* casting macro for accessing To body */




More information about the sr-dev mailing list