Browse code

- Accept parsing macros.

Jan Janak authored on 02/05/2003 08:37:05
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,47 @@
0
+/* 
1
+ * $Id$ 
2
+ *
3
+ * Accept Header Field Name Parsing Macros
4
+ *
5
+ * Copyright (C) 2001-2003 Fhg Fokus
6
+ *
7
+ * This file is part of ser, a free SIP server.
8
+ *
9
+ * ser is free software; you can redistribute it and/or modify
10
+ * it under the terms of the GNU General Public License as published by
11
+ * the Free Software Foundation; either version 2 of the License, or
12
+ * (at your option) any later version
13
+ *
14
+ * For a license to use the ser software under conditions
15
+ * other than those described here, or to purchase support for this
16
+ * software, please contact iptel.org by e-mail at the following addresses:
17
+ *    info@iptel.org
18
+ *
19
+ * ser is distributed in the hope that it will be useful,
20
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
21
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22
+ * GNU General Public License for more details.
23
+ *
24
+ * You should have received a copy of the GNU General Public License 
25
+ * along with this program; if not, write to the Free Software 
26
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
27
+ */
28
+
29
+#ifndef CASE_ACCE_H
30
+#define CASE_ACCE_H
31
+
32
+
33
+#define acce_CASE                           \
34
+    p += 4;                                 \
35
+    if (LOWER_BYTE(*p) == 'p') {            \
36
+            p++;                            \
37
+            if (LOWER_BYTE(*p) == 't') {    \
38
+                    hdr->type = HDR_ACCEPT; \
39
+                    p++;                    \
40
+                    goto dc_end;            \
41
+            }                               \
42
+    }                                       \
43
+    goto other;
44
+
45
+
46
+#endif /* CASE_ACCE_H */