Browse code

- sip_msg_t and hdr_field_t types defined

Jan Janak authored on 13/08/2007 12:57:40
Showing 2 changed files
... ...
@@ -183,14 +183,14 @@ typedef enum _hdr_types_t hdr_types_t;
183 183
 /*
184 184
  * Format: name':' body
185 185
  */
186
-struct hdr_field {
186
+typedef struct hdr_field {
187 187
 	hdr_types_t type;       /* Header field type */
188 188
 	str name;               /* Header field name */
189 189
 	str body;               /* Header field body (may not include CRLF) */
190 190
 	int len;		/* length from hdr start until EoHF (incl.CRLF) */
191 191
 	void* parsed;           /* Parsed data structures */
192 192
 	struct hdr_field* next; /* Next header field in the list */
193
-};
193
+} hdr_field_t;
194 194
 
195 195
 
196 196
 
... ...
@@ -192,7 +192,7 @@ struct sip_uri {
192 192
 };
193 193
 
194 194
 
195
-struct sip_msg {
195
+typedef struct sip_msg {
196 196
 	unsigned int id;               /* message id, unique/process*/
197 197
 	struct msg_start first_line;   /* Message first line */
198 198
 	struct via_body* via1;         /* The first via */
... ...
@@ -293,7 +293,7 @@ struct sip_msg {
293 293
 	str set_global_port;
294 294
 	struct socket_info* force_send_socket; /* force sending on this socket,
295 295
 											  if ser */
296
-};
296
+} sip_msg_t;
297 297
 
298 298
 /* pointer to a fakes message which was never received ;
299 299
    (when this message is "relayed", it is generated out