Browse code

Support for mixed content type.

This patch extendes the content type parser and adds support for
content type mixed.

Signed-off-by: Jan Janak <jan@iptel.org>

Ovidiu Sas authored on 24/03/2009 14:14:53
Showing 2 changed files
... ...
@@ -193,7 +193,7 @@ static type_node_t subtype_tree[] = {
193 193
 												{'i',SUBTYPE_UNKNOWN,1,-1}, 
194 194
 													{'d',SUBTYPE_UNKNOWN,1,-1},
195 195
 														{'f',SUBTYPE_XML_MSRTC_PIDF,0,-1},
196
-	{'e',SUBTYPE_UNKNOWN,1,-1}, /* 94 */
196
+	{'e',SUBTYPE_UNKNOWN,1,107}, /* 94 */
197 197
 		{'x',SUBTYPE_UNKNOWN,1,-1},
198 198
 			{'t',SUBTYPE_UNKNOWN,1,-1},
199 199
 				{'e',SUBTYPE_UNKNOWN,1,-1},
... ...
@@ -206,8 +206,12 @@ static type_node_t subtype_tree[] = {
206 206
 											{'o',SUBTYPE_UNKNOWN,1,-1},
207 207
 												{'d',SUBTYPE_UNKNOWN,1,-1},
208 208
 													{'y',SUBTYPE_EXTERNAL_BODY,0,-1},
209
-
210
-	};
209
+	{'m',SUBTYPE_UNKNOWN,1,-1}, /* 107 */
210
+		{'i',SUBTYPE_UNKNOWN,1,-1},
211
+			{'x',SUBTYPE_UNKNOWN,1,-1},
212
+				{'e',SUBTYPE_UNKNOWN,1,-1},
213
+					{'d',SUBTYPE_MIXED,0,-1},
214
+};
211 215
 
212 216
 
213 217
 
... ...
@@ -62,6 +62,7 @@ struct mime_type {
62 62
 #define SUBTYPE_EXTERNAL_BODY      11
63 63
 #define SUBTYPE_XML_MSRTC_PIDF     12
64 64
 #define SUBTYPE_CPIM_PIDFXML       13
65
+#define SUBTYPE_MIXED              14
65 66
 #define SUBTYPE_ALL          0xfe
66 67
 #define SUBTYPE_UNKNOWN      0xff
67 68