Browse code

parser: typedef'ed To structures

Daniel-Constantin Mierla authored on 10/01/2012 22:07:04
Showing 1 changed files
... ...
@@ -36,15 +36,15 @@ enum {
36 36
 	TAG_PARAM = 400, GENERAL_PARAM
37 37
 };
38 38
 
39
-struct to_param{
39
+typedef struct to_param{
40 40
 	int type;              /*!< Type of parameter */
41 41
 	str name;              /*!< Name of parameter */
42 42
 	str value;             /*!< Parameter value */
43 43
 	struct to_param* next; /*!< Next parameter in the list */
44
-};
44
+} to_param_t;
45 45
 
46 46
 
47
-struct to_body{
47
+typedef struct to_body{
48 48
 	int error;                    /*!< Error code */
49 49
 	str body;                     /*!< The whole header field body */
50 50
 	str uri;                      /*!< URI */
... ...
@@ -53,7 +53,7 @@ struct to_body{
53 53
 	struct sip_uri parsed_uri;
54 54
 	struct to_param *param_lst;   /*!< Linked list of parameters */
55 55
 	struct to_param *last_param;  /*!< Last parameter in the list */
56
-};
56
+} to_body_t;
57 57
 
58 58
 
59 59
 /* casting macro for accessing To body */