Browse code

core: remove not needed parser definitions files after rework in commit ded4fa4ff

Henning Westerholt authored on 17/07/2020 10:30:34
Showing 41 changed files
1 1
deleted file mode 100644
... ...
@@ -1,109 +0,0 @@
1
-/*
2
- * Accept, Accept-Language, Accept-Contact, Accept-Disposition Header Field Name Parsing Macros
3
- *
4
- * Copyright (C) 2001-2003 FhG Fokus
5
- *
6
- * This file is part of Kamailio, a free SIP server.
7
- *
8
- * Kamailio is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version
12
- *
13
- * Kamailio is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program; if not, write to the Free Software
20
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
21
- */
22
-
23
-/*! \file 
24
- * \brief Parser :: Accept, Accept-Language, Accept-Contact, Accept-Disposition Header Field Name Parsing Macros
25
- *
26
- * \ingroup parser
27
- */
28
-
29
-#ifndef CASE_ACCE_H
30
-#define CASE_ACCE_H
31
-
32
-
33
-#define age_CASE                                \
34
-        switch(LOWER_DWORD(val)) {              \
35
-        case _age1_:                            \
36
-	        hdr->type = HDR_ACCEPTLANGUAGE_T; \
37
-	        hdr->name.len = 15;             \
38
-	        return (p + 4);                 \
39
-                                                \
40
-        case _age2_:                            \
41
-                hdr->type = HDR_ACCEPTLANGUAGE_T; \
42
-                p += 4;                         \
43
-	        goto dc_end;                    \
44
-        }
45
-
46
-
47
-#define angu_CASE                  \
48
-        switch(LOWER_DWORD(val)) { \
49
-        case _angu_:               \
50
-		p += 4;            \
51
-		val = READ(p);     \
52
-		age_CASE;          \
53
-		goto other;        \
54
-	}
55
-
56
-
57
-#define accept_contact_ct_CASE                             \
58
-        if (LOWER_BYTE(*p) == 'c') {                       \
59
-                p++;                                       \
60
-                if (LOWER_BYTE(*p) == 't') {               \
61
-                        hdr->type = HDR_ACCEPTCONTACT_T;   \
62
-                        p++;                               \
63
-                        goto dc_end;                       \
64
-                }                                          \
65
-        }
66
-
67
-#define accept_c_onta_CASE         \
68
-        switch(LOWER_DWORD(val)) { \
69
-        case _onta_:               \
70
-                p += 4;            \
71
-                val = READ(p);     \
72
-                accept_contact_ct_CASE;  \
73
-                goto other;        \
74
-        }
75
-
76
-
77
-#define ptldc_CASE                 \
78
-        switch(LOWER_DWORD(val)) { \
79
-        case _pt_l_:               \
80
-		p += 4;            \
81
-		val = READ(p);     \
82
-		angu_CASE;         \
83
-		goto other;        \
84
-                                   \
85
-        case _pt_c_:               \
86
-                p += 4;            \
87
-                val = READ(p);     \
88
-                accept_c_onta_CASE;\
89
-                goto other;        \
90
-	}
91
-
92
-
93
-#define acce_CASE                           \
94
-    p += 4;                                 \
95
-    val = READ(p);                          \
96
-    ptldc_CASE;                             \
97
-                                            \
98
-    if (LOWER_BYTE(*p) == 'p') {            \
99
-            p++;                            \
100
-            if (LOWER_BYTE(*p) == 't') {    \
101
-                    hdr->type = HDR_ACCEPT_T; \
102
-                    p++;                    \
103
-                    goto dc_end;            \
104
-            }                               \
105
-    }                                       \
106
-    goto other;
107
-
108
-
109
-#endif /* CASE_ACCE_H */
110 0
deleted file mode 100644
... ...
@@ -1,64 +0,0 @@
1
-/*
2
- * Allow, Allow-Events Header Field Name Parsing Macros
3
- *
4
- * Copyright (C) 2001-2003 FhG Fokus
5
- *
6
- * This file is part of Kamailio, a free SIP server.
7
- *
8
- * Kamailio is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version
12
- *
13
- * Kamailio is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program; if not, write to the Free Software
20
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
21
- */
22
-
23
-/*! \file 
24
- * \brief Parser :: Allow, Allow-Events Header Field Name Parsing Macros
25
- *
26
- * \ingroup parser
27
- */
28
-
29
-#ifndef CASE_ALLO_H
30
-#define CASE_ALLO_H
31
-
32
-#define allow_ev_ents_CASE         \
33
-	switch(LOWER_DWORD(val)) { \
34
-	case _ents_:               \
35
-		p += 4;            \
36
-		hdr->type = HDR_ALLOWEVENTS_T; \
37
-		goto dc_end;       \
38
-	}
39
-
40
-
41
-
42
-#define allo_w_ev_CASE             \
43
-        switch(LOWER_DWORD(val)) { \
44
-        case _w_ev_:               \
45
-                p += 4;            \
46
-                val = READ(p);     \
47
-                allow_ev_ents_CASE;\
48
-                goto other;        \
49
-        }
50
-
51
-
52
-#define allo_CASE                  \
53
-    p += 4;                        \
54
-    val = READ(p);                 \
55
-    allo_w_ev_CASE;                \
56
-    if (LOWER_BYTE(*p) == 'w') {   \
57
-            hdr->type = HDR_ALLOW_T; \
58
-            p++;                   \
59
-            goto dc_end;           \
60
-    }                              \
61
-    goto other;
62
-
63
-
64
-#endif /* CASE_ALLO_H */
65 0
deleted file mode 100644
... ...
@@ -1,62 +0,0 @@
1
-/* 
2
- * Authorization Header Field Name Parsing Macros
3
- *
4
- * Copyright (C) 2001-2003 FhG Fokus
5
- *
6
- * This file is part of Kamailio, a free SIP server.
7
- *
8
- * Kamailio is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version
12
- *
13
- * Kamailio is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License 
19
- * along with this program; if not, write to the Free Software 
20
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
21
- */
22
-/*! \file 
23
- * \brief Parser :: Authorization Header Field Name Parsing Macros
24
- *
25
- * \ingroup parser
26
- */
27
-
28
-#ifndef CASE_AUTH_H
29
-#define CASE_AUTH_H
30
-
31
-
32
-#define AUTH_ATIO_CASE                                 \
33
-        if (LOWER_DWORD(val) == _atio_) {              \
34
-	        p += 4;                                \
35
-		switch(LOWER_BYTE(*p)) {               \
36
-		case 'n':                              \
37
-		        hdr->type = HDR_AUTHORIZATION_T; \
38
-			p++;                           \
39
-			goto dc_end;                   \
40
-                                                       \
41
-		default: goto other;                   \
42
-		}                                      \
43
-	}
44
-	             
45
-
46
-#define AUTH_ORIZ_CASE                     \
47
-        if (LOWER_DWORD(val) == _oriz_) {  \
48
-                p += 4;                    \
49
-	        val = READ(p);             \
50
-	        AUTH_ATIO_CASE;            \
51
-                goto other;                \
52
-        }
53
-
54
-
55
-#define auth_CASE      \
56
-     p += 4;           \
57
-     val = READ(p);    \
58
-     AUTH_ORIZ_CASE;   \
59
-     goto other;
60
-
61
-
62
-#endif /* CASE_AUTH_H */
63 0
deleted file mode 100644
... ...
@@ -1,37 +0,0 @@
1
-/*
2
- * Copyright (C) 2017 Victor Seva (sipwise.com)
3
- *
4
- * This file is part of Kamailio, a free SIP server.
5
- *
6
- * Permission to use, copy, modify, and distribute this software for any
7
- * purpose with or without fee is hereby granted, provided that the above
8
- * copyright notice and this permission notice appear in all copies.
9
- *
10
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17
- */
18
-
19
-/** Parser :: Call-Info Header Name Parsing Macros.
20
- * @file
21
- *
22
- * @ingroup parser
23
- */
24
-#ifndef __case_c_inf_h
25
-#define __case_c_inf_h
26
-
27
-#define C_INFO_CASE	\
28
-	case __inf_:	\
29
-		hdr->type = HDR_CALLINFO_T;	\
30
-		p += 4;	\
31
-		if (LOWER_BYTE(*p) != 'o') goto other;	\
32
-		p++;	\
33
-		goto dc_end;
34
-
35
-#endif /*__case_c_inf_h*/
36
-
37
-/* vi: set ts=4 sw=4 tw=79:ai:cindent: */
38 0
deleted file mode 100644
... ...
@@ -1,58 +0,0 @@
1
-/* 
2
- * Call-ID Header Name Parsing Macros
3
- *
4
- * Copyright (C) 2001-2003 FhG Fokus
5
- *
6
- * This file is part of Kamailio, a free SIP server.
7
- *
8
- * Kamailio is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version
12
- *
13
- * Kamailio is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License 
19
- * along with this program; if not, write to the Free Software 
20
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
21
- *
22
- */
23
-
24
-/*! \file 
25
- * \brief Parser :: Call-ID Header Name Parsing Macros
26
- *
27
- * \ingroup parser
28
- *
29
- */
30
-
31
-#ifndef CASE_CALL_H
32
-#define CASE_CALL_H
33
-
34
-#include "case_c_inf.h"
35
-
36
-#define ID_CASE                      \
37
-     switch(LOWER_DWORD(val)) {      \
38
-     case __id1_:                    \
39
-	     hdr->type = HDR_CALLID_T; \
40
-	     hdr->name.len = 7;      \
41
-	     return (p + 4);         \
42
-	                             \
43
-     case __id2_:                    \
44
-	     hdr->type = HDR_CALLID_T; \
45
-	     p += 4;                 \
46
-	     goto dc_end;            \
47
-     C_INFO_CASE;                  \
48
-     }
49
-
50
-
51
-#define call_CASE      \
52
-     p += 4;           \
53
-     val = READ(p);    \
54
-     ID_CASE;          \
55
-     goto other;
56
-
57
-
58
-#endif /* CASE_CALL_H */
59 0
deleted file mode 100644
... ...
@@ -1,141 +0,0 @@
1
-/*
2
- * Contact, Content-Type, Content-Length, Content-Disposition, Content-Encoding
3
- * Header Field Name Parsing Macros
4
- *
5
- * Copyright (C) 2001-2003 FhG Fokus
6
- *
7
- * This file is part of Kamailio, a free SIP server.
8
- *
9
- * Kamailio 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
- * Kamailio is distributed in the hope that it will be useful,
15
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
- * GNU General Public License for more details.
18
- *
19
- * You should have received a copy of the GNU General Public License
20
- * along with this program; if not, write to the Free Software
21
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
22
- *
23
- */
24
-
25
-/*! \file 
26
- * \brief Parser :: Contact, Content-Type, Content-Length, Content-Disposition, Content-Encoding
27
- * Header Field Name Parsing Macros
28
- *
29
- * \ingroup parser
30
- */
31
-
32
-
33
-
34
-#ifndef CASE_CONT_H
35
-#define CASE_CONT_H
36
-
37
-#include "../comp_defs.h"
38
-
39
-#define TH_CASE                                        \
40
-        switch(LOWER_DWORD(val)) {                     \
41
-        case _th12_:                                   \
42
-                hdr->type = HDR_CONTENTLENGTH_T;       \
43
-                hdr->name.len = 14;                    \
44
-                return (p + 4);                        \
45
-        }                                              \
46
-                                                       \
47
-        if (LOWER_BYTE(*p) == 't') {                   \
48
-                p++;                                   \
49
-                if (LOWER_BYTE(*p) == 'h') {           \
50
-                        hdr->type = HDR_CONTENTLENGTH_T;\
51
-                        p++;                           \
52
-                        goto dc_end;                   \
53
-                }                                      \
54
-        }
55
-
56
-
57
-#define ion_CASE                                    \
58
-        switch(LOWER_DWORD(val)) {                  \
59
-        case _ion1_:                                \
60
-	        hdr->type = HDR_CONTENTDISPOSITION_T; \
61
-	        hdr->name.len = 19;                 \
62
-	        return (p + 4);                     \
63
-                                                    \
64
-        case _ion2_:                                \
65
-                hdr->type = HDR_CONTENTDISPOSITION_T; \
66
-                p += 4;                             \
67
-	        goto dc_end;                        \
68
-        }
69
-
70
-
71
-#define DISPOSITION_CASE           \
72
-        switch(LOWER_DWORD(val)) { \
73
-        case _osit_:               \
74
-		p += 4;            \
75
-		val = READ(p);     \
76
-		ion_CASE;          \
77
-		goto other;        \
78
-	}
79
-
80
-
81
-#define ENCODING_CASE              \
82
-	switch(LOWER_DWORD(val)) { \
83
-	case _ding_:               \
84
-		p += 4;            \
85
-		hdr->type = HDR_CONTENTENCODING_T; \
86
-		goto dc_end;       \
87
-	}
88
-
89
-#define CONTENT_CASE                         \
90
-        switch(LOWER_DWORD(val)) {           \
91
-        case _leng_:                         \
92
-                p += 4;                      \
93
-                val = READ(p);               \
94
-                TH_CASE;                     \
95
-                goto other;                  \
96
-                                             \
97
-        case _type_:                         \
98
-                hdr->type = HDR_CONTENTTYPE_T; \
99
-                p += 4;                      \
100
-                goto dc_end;                 \
101
-                                             \
102
-        case _disp_:                         \
103
-                p += 4;                      \
104
-		val = READ(p);               \
105
-		DISPOSITION_CASE;            \
106
-                goto other;                  \
107
-        case _enco_:                         \
108
-                p += 4;                      \
109
-		val = READ(p);               \
110
-		ENCODING_CASE;               \
111
-                goto other;                  \
112
-        }
113
-
114
-
115
-#define ACT_ENT_CASE                     \
116
-        switch(LOWER_DWORD(val)) {       \
117
-        case _act1_:                     \
118
-	        hdr->type = HDR_CONTACT_T; \
119
-	        hdr->name.len = 7;       \
120
-	        return (p + 4);          \
121
-	                                 \
122
-        case _act2_:                     \
123
-	        hdr->type = HDR_CONTACT_T; \
124
-	        p += 4;                  \
125
-	        goto dc_end;             \
126
-                                         \
127
-        case _ent__:                     \
128
-                p += 4;                  \
129
-                val = READ(p);           \
130
-                CONTENT_CASE;            \
131
-                goto other;              \
132
-        }
133
-
134
-#define cont_CASE      \
135
-     p += 4;           \
136
-     val = READ(p);    \
137
-     ACT_ENT_CASE;     \
138
-     goto other;
139
-
140
-
141
-#endif /* CASE_CONT_H */
142 0
deleted file mode 100644
... ...
@@ -1,42 +0,0 @@
1
-/* 
2
- * CSeq Header Field Name Parsing Macros
3
- *
4
- * Copyright (C) 2001-2003 FhG Fokus
5
- *
6
- * This file is part of Kamailio, a free SIP server.
7
- *
8
- * Kamailio is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version
12
- *
13
- * Kamailio is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License 
19
- * along with this program; if not, write to the Free Software 
20
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
21
- */
22
-
23
-/*! \file 
24
- * \brief Parser :: CSeq Header Field Name Parsing Macros
25
- *
26
- * \ingroup parser
27
- */
28
-
29
-
30
-
31
-
32
-#ifndef CASE_CSEQ_H
33
-#define CASE_CSEQ_H
34
-
35
-
36
-#define cseq_CASE          \
37
-     hdr->type = HDR_CSEQ_T; \
38
-     p += 4;               \
39
-     goto dc_end
40
-
41
-
42
-#endif /* CASE_CSEQ_H */
43 0
deleted file mode 100644
... ...
@@ -1,41 +0,0 @@
1
-/* 
2
- * Date Header Field Name Parsing Macros
3
- *
4
- * Copyright (c) 2007 iptelorg GmbH
5
- *
6
- * This file is part of Kamailio, a free SIP server.
7
- *
8
- * Kamailio is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version
12
- *
13
- * Kamailio is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License 
19
- * along with this program; if not, write to the Free Software 
20
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
21
- */
22
-
23
-/*! \file 
24
- * \brief Parser :: Date Header Field Name Parsing Macros
25
- *
26
- * \ingroup parser
27
- */
28
-
29
-
30
-
31
-#ifndef CASE_DATE_H
32
-#define CASE_DATE_H
33
-
34
-
35
-#define date_CASE          \
36
-     hdr->type = HDR_DATE_T; \
37
-     p += 4;               \
38
-     goto dc_end
39
-
40
-
41
-#endif /* CASE_DATE_H */
42 0
deleted file mode 100644
... ...
@@ -1,55 +0,0 @@
1
-/* 
2
- * Diversion Header Field Parsing Macros
3
- *
4
- * Copyright (C) 2001-2003 FhG Fokus
5
- *
6
- * This file is part of Kamailio, a free SIP server.
7
- *
8
- * Kamailio is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version
12
- *
13
- * Kamailio is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License 
19
- * along with this program; if not, write to the Free Software 
20
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
21
- */
22
-
23
-/*! \file 
24
- * \brief Parser :: Diversion Header Field Parsing Macros
25
- *
26
- * \ingroup parser
27
- */
28
-
29
-
30
-
31
-#ifndef CASE_DIVE_H
32
-#define CASE_DIVE_H
33
-
34
-
35
-#define RSIO_CASE                                  \
36
-        switch(LOWER_DWORD(val)) {                 \
37
-        case _rsio_:                               \
38
-	        p += 4;                            \
39
-	        if (LOWER_BYTE(*p) == 'n') {       \
40
-		        hdr->type = HDR_DIVERSION_T; \
41
-                        p++;                       \
42
-                        goto dc_end;               \
43
-                }                                  \
44
-                goto other;                        \
45
-        }
46
-
47
-
48
-#define dive_CASE         \
49
-        p += 4;           \
50
-        val = READ(p);    \
51
-        RSIO_CASE;        \
52
-        goto other;
53
-
54
-
55
-#endif /* CASE_DIVE_H */
56 0
deleted file mode 100644
... ...
@@ -1,45 +0,0 @@
1
-/* 
2
- * Event Header Field Name Parsing Macros
3
- *
4
- * Copyright (C) 2001-2003 FhG Fokus
5
- *
6
- * This file is part of Kamailio, a free SIP server.
7
- *
8
- * Kamailio is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version
12
- *
13
- * Kamailio is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License 
19
- * along with this program; if not, write to the Free Software 
20
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
21
- */
22
-
23
-/*! \file 
24
- * \brief Parser ::  Event Header Field Name Parsing Macros
25
- *
26
- * \ingroup parser
27
- */
28
-
29
-
30
-
31
-#ifndef CASE_EVEN_H
32
-#define CASE_EVEN_H
33
-
34
-
35
-#define even_CASE                     \
36
-    p += 4;                           \
37
-    if (LOWER_BYTE(*p) == 't') {      \
38
-            hdr->type = HDR_EVENT_T;    \
39
-            p++;                      \
40
-	    goto dc_end;              \
41
-    }                                 \
42
-    goto other;
43
-
44
-
45
-#endif /* CASE_EVEN_H */
46 0
deleted file mode 100644
... ...
@@ -1,58 +0,0 @@
1
-/* 
2
- * Expires Header Field Name Parsing Macros
3
- *
4
- * Copyright (C) 2001-2003 FhG Fokus
5
- *
6
- * This file is part of Kamailio, a free SIP server.
7
- *
8
- * Kamailio is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version
12
- *
13
- * Kamailio is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License 
19
- * along with this program; if not, write to the Free Software 
20
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
21
- *
22
- */
23
-
24
-/*! \file 
25
- * \brief Parser ::  Expires Header Field Name Parsing Macros 
26
- *
27
- * \ingroup parser
28
- */
29
-
30
-
31
-
32
-#ifndef CASE_EXPI_H
33
-#define CASE_EXPI_H
34
-
35
-#include "../comp_defs.h"
36
-
37
-#define EXPI_RES_CASE                    \
38
-        switch(LOWER_DWORD(val)) {       \
39
-        case _res1_:                     \
40
-		hdr->type = HDR_EXPIRES_T; \
41
-		hdr->name.len = 7;       \
42
-		return (p + 4);          \
43
-                                         \
44
-        case _res2_:                     \
45
-		hdr->type = HDR_EXPIRES_T; \
46
-		p += 4;                  \
47
-		goto dc_end;             \
48
-        }
49
-
50
-
51
-#define expi_CASE         \
52
-        p += 4;           \
53
-        val = READ(p);    \
54
-        EXPI_RES_CASE;    \
55
-        goto other;
56
-
57
-
58
-#endif /* CASE_EXPI_H */
59 0
deleted file mode 100644
... ...
@@ -1,41 +0,0 @@
1
-/* 
2
- * From Header Field Name Parsing Macros
3
- *
4
- * Copyright (C) 2001-2003 FhG Fokus
5
- *
6
- * This file is part of Kamailio, a free SIP server.
7
- *
8
- * Kamailio is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version
12
- *
13
- * Kamailio is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License 
19
- * along with this program; if not, write to the Free Software 
20
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
21
- */
22
-
23
-/*! \file 
24
- * \brief Parser :: From Header Field Name Parsing Macros
25
- *
26
- * \ingroup parser
27
- */
28
-
29
-
30
-
31
-#ifndef CASE_FROM_H
32
-#define CASE_FROM_H
33
-
34
-
35
-#define from_CASE             \
36
-        hdr->type = HDR_FROM_T; \
37
-        p += 4;               \
38
-        goto dc_end
39
-
40
-
41
-#endif /* CASE_FROM_H */
42 0
deleted file mode 100644
... ...
@@ -1,71 +0,0 @@
1
-/* 
2
- * Identity, Identity-info Header Field Name Parsing Macros
3
- *
4
- * Copyright (c) 2007 iptelorg GmbH
5
- *
6
- * This file is part of Kamailio, a free SIP server.
7
- *
8
- * Kamailio is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version
12
- *
13
- * Kamailio is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License 
19
- * along with this program; if not, write to the Free Software 
20
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
21
- *
22
- */
23
-
24
-/*! \file 
25
- * \brief Parser :: Identity, Identity-info Header Field Name Parsing Macros
26
- *
27
- * \ingroup parser
28
- */
29
-
30
-
31
-#ifndef CASE_IDEN_H
32
-#define CASE_IDEN_H
33
-
34
-#include "../comp_defs.h"
35
-	      
36
-
37
-#define INFO_CASE                                     \
38
-        switch(LOWER_DWORD(val)) {                    \
39
-        case _info_:                                  \
40
-                hdr->type = HDR_IDENTITY_INFO_T;       \
41
-                p += 4;                               \
42
-	        goto dc_end;                          \
43
-        }
44
-
45
-
46
-#define TITY_CASE                                     \
47
-        switch(LOWER_DWORD(val)) {                    \
48
-        case _tity_:                                  \
49
-                p += 4;                               \
50
-                switch(LOWER_BYTE(*p)) {              \
51
-                case ':':                             \
52
-                case ' ':                             \
53
-                        hdr->type = HDR_IDENTITY_T;   \
54
-                        goto dc_end;                  \
55
-		case '-':                             \
56
-	                p++;                          \
57
-    			val = READ(p);                \
58
-		        INFO_CASE;                    \
59
-		}                                     \
60
-                goto other;                           \
61
-        }
62
-
63
-
64
-#define iden_CASE         \
65
-        p += 4;           \
66
-        val = READ(p);    \
67
-        TITY_CASE;        \
68
-        goto other;
69
-
70
-
71
-#endif /* CASE_PROX_H */
72 0
deleted file mode 100644
... ...
@@ -1,59 +0,0 @@
1
-/* 
2
- * Max-Forwards Header Field Name Parsing Macros
3
- *
4
- * Copyright (C) 2001-2003 FhG Fokus
5
- *
6
- * This file is part of Kamailio, a free SIP server.
7
- *
8
- * Kamailio is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version
12
- *
13
- * Kamailio is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License 
19
- * along with this program; if not, write to the Free Software 
20
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
21
- */
22
-
23
-/*! \file 
24
- * \brief Parser :: Max-Forwards Header Field Name Parsing Macros
25
- *
26
- * \ingroup parser
27
- */
28
-
29
-
30
-#ifndef CASE_MAX_H
31
-#define CASE_MAX_H
32
-
33
-
34
-#define ARDS_CASE                            \
35
-        if (LOWER_DWORD(val) == _ards_) {    \
36
-	        hdr->type = HDR_MAXFORWARDS_T; \
37
-	        p += 4;                      \
38
-		goto dc_end;                 \
39
-	}
40
-
41
-
42
-#define FORW_CASE                  \
43
-        switch(LOWER_DWORD(val)) { \
44
-        case _forw_:               \
45
-	        p += 4;            \
46
-	        val = READ(p);     \
47
-                ARDS_CASE;         \
48
-	        goto other;        \
49
-        }                                             
50
-
51
-
52
-#define max_CASE       \
53
-     p += 4;           \
54
-     val = READ(p);    \
55
-     FORW_CASE;        \
56
-     goto other;       \
57
-
58
-
59
-#endif /* CASE_MAX_H */
60 0
deleted file mode 100644
... ...
@@ -1,67 +0,0 @@
1
-/*
2
- * Min-SE Header Field Name Parsing Macros
3
- *
4
- * Copyright (C) 2001-2003 FhG Fokus
5
- *
6
- * This file is part of Kamailio, a free SIP server.
7
- *
8
- * Kamailio is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version
12
- *
13
- * Kamailio is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License
19
- * along with this program; if not, write to the Free Software
20
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
21
- */
22
-
23
-/*! \file 
24
- * \brief Parser :: Min-SE Header Field Name Parsing Macros
25
- *
26
- * \ingroup parser
27
- */
28
-
29
-
30
-#ifndef CASE_MIN_H
31
-#define CASE_MIN_H
32
-
33
-
34
-#define RES_CASE                            \
35
-	switch(LOWER_DWORD(val)) {              \
36
-		case _res1_:    /* "res:" */        \
37
-			hdr->type = HDR_MIN_EXPIRES_T;  \
38
-			hdr->name.len = 11;             \
39
-			return (p + 4);                 \
40
-		case _res2_:    /* "res " */        \
41
-			hdr->type = HDR_MIN_EXPIRES_T;  \
42
-			p+=4;                           \
43
-			goto dc_end;                    \
44
-	}
45
-
46
-#define MIN2_CASE                           \
47
-	if (LOWER_BYTE(*p) == 's') {            \
48
-		p++;                                \
49
-		if (LOWER_BYTE(*p) == 'e') {        \
50
-			hdr->type = HDR_MIN_SE_T;       \
51
-			p++;                            \
52
-			goto dc_end;                    \
53
-		}                                   \
54
-	} else if (LOWER_DWORD(val) == _expi_) { \
55
-		p += 4;                             \
56
-		val = READ(p);                      \
57
-		RES_CASE;                           \
58
-	}
59
-
60
-#define min_CASE                            \
61
-	p += 4;                                 \
62
-	val = READ(p);                          \
63
-	MIN2_CASE;                              \
64
-	goto other;
65
-
66
-
67
-#endif /* CASE_MIN_H */
68 0
deleted file mode 100644
... ...
@@ -1,60 +0,0 @@
1
-/* 
2
- * Organization Header Field Name Parsing Macros
3
- *
4
- * Copyright (C) 2001-2003 FhG Fokus
5
- *
6
- * This file is part of Kamailio, a free SIP server.
7
- *
8
- * Kamailio is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version
12
- *
13
- * Kamailio is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License 
19
- * along with this program; if not, write to the Free Software 
20
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
21
- */
22
-
23
-/*! \file 
24
- * \brief Parser :: Organization Header Field Name Parsing Macros
25
- *
26
- * \ingroup parser
27
- */
28
-
29
-
30
-
31
-#ifndef CASE_ORGA_H
32
-#define CASE_ORGA_H
33
-
34
-
35
-#define tion_CASE                             \
36
-        if (LOWER_DWORD(val) == _tion_) {     \
37
-	        hdr->type = HDR_ORGANIZATION_T; \
38
-		p += 4;                       \
39
-		goto dc_end;                  \
40
-	}                                     \
41
-
42
-
43
-#define niza_CASE                  \
44
-        switch(LOWER_DWORD(val)) { \
45
-        case _niza_:               \
46
-	        p += 4;            \
47
-	        val = READ(p);     \
48
-		tion_CASE;         \
49
-	        goto other;        \
50
-        }
51
-
52
-
53
-#define orga_CASE         \
54
-        p += 4;           \
55
-        val = READ(p);    \
56
-        niza_CASE;        \
57
-        goto other;
58
-
59
-
60
-#endif /* CASE_ORGA_H */
61 0
deleted file mode 100644
... ...
@@ -1,77 +0,0 @@
1
-/* 
2
- * Copyright (C) 2010 iptelorg GmbH
3
- *
4
- * Permission to use, copy, modify, and distribute this software for any
5
- * purpose with or without fee is hereby granted, provided that the above
6
- * copyright notice and this permission notice appear in all copies.
7
- *
8
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15
- */
16
-
17
-/** Parser :: Reason Header Name Parsing Macros.
18
- * @file 
19
- *
20
- * @ingroup parser
21
- */
22
-
23
-#ifndef __case_p_as_h
24
-#define __case_p_as_h
25
-
26
-
27
-#define SERT_CASE						\
28
-	switch(LOWER_DWORD(val)) {			\
29
-		case _sert_:					\
30
-			p += 4;						\
31
-			val = READ(p);				\
32
-			ED_I_CASE;					\
33
-	}									
34
-
35
-
36
-#define ED_I_CASE						\
37
-	switch(LOWER_DWORD(val)) {			\
38
-		case _ed_i_:					\
39
-			p += 4;						\
40
-			val = READ(p);				\
41
-			DENT_CASE;					\
42
-	}									
43
-
44
-
45
-#define DENT_CASE						\
46
-	switch(LOWER_DWORD(val)) {			\
47
-		case _dent_:					\
48
-			p += 4;						\
49
-			val = READ(p);				\
50
-			ITY_CASE;					\
51
-	}									
52
-
53
-#define ITY_CASE						\
54
-	switch(LOWER_DWORD(val)) {			\
55
-		case _ity1_:					\
56
-			hdr->type = HDR_PAI_T;		\
57
-			hdr->name.len = 19;			\
58
-			return (p + 4);				\
59
-		case _ity2_:					\
60
-			hdr->type = HDR_PAI_T;		\
61
-			p+=4;						\
62
-			goto dc_end;				\
63
-	}									
64
-
65
-
66
-
67
-#define p_as_CASE		\
68
-	p += 4;				\
69
-	val = READ(p);		\
70
-	SERT_CASE;			\
71
-	goto other;
72
-
73
-
74
-
75
-#endif /*__case_p_as_h*/
76
-
77
-/* vi: set ts=4 sw=4 tw=79:ai:cindent: */
78 0
deleted file mode 100644
... ...
@@ -1,73 +0,0 @@
1
-/* 
2
- * Copyright (C) 2010 iptelorg GmbH
3
- *
4
- * Permission to use, copy, modify, and distribute this software for any
5
- * purpose with or without fee is hereby granted, provided that the above
6
- * copyright notice and this permission notice appear in all copies.
7
- *
8
- * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
9
- * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
10
- * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
11
- * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
12
- * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
13
- * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
14
- * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
15
- */
16
-
17
-/** Parser :: Reason Header Name Parsing Macros.
18
- * @file 
19
- *
20
- * @ingroup parser
21
- */
22
-
23
-#ifndef __case_p_pr_h
24
-#define __case_p_pr_h
25
-
26
-
27
-#define EFER_CASE						\
28
-	switch(LOWER_DWORD(val)) {			\
29
-		case _efer_:					\
30
-			p += 4;						\
31
-			val = READ(p);				\
32
-			RED__CASE;					\
33
-	}									
34
-
35
-
36
-#define RED__CASE						\
37
-	switch(LOWER_DWORD(val)) {			\
38
-		case _red__:					\
39
-			p += 4;						\
40
-			val = READ(p);				\
41
-			IDEN_CASE;					\
42
-	}									
43
-
44
-
45
-#define IDEN_CASE						\
46
-	switch(LOWER_DWORD(val)) {			\
47
-		case _iden_:					\
48
-			p += 4;						\
49
-			val = READ(p);				\
50
-			TITY_p_pr_CASE;				\
51
-	}									
52
-
53
-#define TITY_p_pr_CASE					\
54
-	switch(LOWER_DWORD(val)) {			\
55
-		case _tity_:					\
56
-			hdr->type = HDR_PPI_T;		\
57
-			p+=4;						\
58
-			goto dc_end;				\
59
-	}									
60
-
61
-
62
-
63
-#define p_pr_CASE		\
64
-	p += 4;				\
65
-	val = READ(p);		\
66
-	EFER_CASE;			\
67
-	goto other;
68
-
69
-
70
-
71
-#endif /*__case_p_pr_h*/
72
-
73
-/* vi: set ts=4 sw=4 tw=79:ai:cindent: */
74 0
deleted file mode 100644
... ...
@@ -1,41 +0,0 @@
1
-/* 
2
- * Path Header Field Name Parsing Macros
3
- *
4
- * Copyright (C) 2009 iptelorg GmbH
5
- *
6
- * This file is part of Kamailio, a free SIP server.
7
- *
8
- * Kamailio is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version
12
- *
13
- * Kamailio is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License 
19
- * along with this program; if not, write to the Free Software 
20
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
21
- */
22
-
23
-/*! \file 
24
- * \brief Parser :: Path Header Field Name Parsing Macros
25
- *
26
- * \ingroup parser
27
- */
28
-
29
-
30
-
31
-#ifndef CASE_PATH_H
32
-#define CASE_PATH_H
33
-
34
-
35
-#define path_CASE				\
36
-	hdr->type = HDR_PATH_T;		\
37
-	p += 4;						\
38
-	goto dc_end
39
-
40
-
41
-#endif /* CASE_PATH_H */
42 0
deleted file mode 100644
... ...
@@ -1,50 +0,0 @@
1
-/* 
2
- * Priority Header Field Name Parsing Macros
3
- *
4
- * Copyright (C) 2001-2003 FhG Fokus
5
- *
6
- * This file is part of Kamailio, a free SIP server.
7
- *
8
- * Kamailio is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version
12
- *
13
- * Kamailio is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License 
19
- * along with this program; if not, write to the Free Software 
20
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
21
- */
22
-
23
-/*! \file 
24
- * \brief Parser :: Priority Header Field Name Parsing Macros
25
- *
26
- * \ingroup parser
27
- */
28
-
29
-
30
-
31
-#ifndef CASE_PRIO_H
32
-#define CASE_PRIO_H
33
-
34
-
35
-#define rity_CASE                             \
36
-        if (LOWER_DWORD(val) == _rity_) {     \
37
-	        hdr->type = HDR_PRIORITY_T;     \
38
-		p += 4;                       \
39
-		goto dc_end;                  \
40
-	}                                     \
41
-
42
-
43
-#define prio_CASE         \
44
-        p += 4;           \
45
-        val = READ(p);    \
46
-        rity_CASE;        \
47
-        goto other;
48
-
49
-
50
-#endif /* CASE_PRIO_H */
51 0
deleted file mode 100644
... ...
@@ -1,56 +0,0 @@
1
-/* 
2
- * Call-ID Header Name Parsing Macros
3
- *
4
- * Copyright (C) 2001-2003 FhG FOKUS
5
- *
6
- * This file is part of Kamailio, a free SIP server.
7
- *
8
- * Kamailio is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version
12
- *
13
- * Kamailio is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License 
19
- * along with this program; if not, write to the Free Software 
20
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
21
- */
22
-
23
-/*! \file 
24
- * \brief Parser :: Call-ID Header Name Parsing Macros
25
- *
26
- * \ingroup parser
27
- */
28
-
29
-
30
-#ifndef _CASE_PRIV_H
31
-#define _CASE_PRIV_H
32
-
33
-
34
-#define ACY_CASE					  \
35
-	switch(LOWER_DWORD(val)) {		  \
36
-	case _acy1_:					  \
37
-		hdr->type = HDR_PRIVACY_T;	  \
38
-		hdr->name.len = 7;			  \
39
-		return (p + 4);				  \
40
-									  \
41
-	case _acy2_:					  \
42
-		hdr->type = HDR_PRIVACY_T;	  \
43
-		p += 4;						  \
44
-		goto dc_end;				  \
45
-	}
46
-
47
-
48
-#define priv_CASE	   \
49
-	p += 4;			   \
50
-	val = READ(p);	   \
51
-	ACY_CASE;		   \
52
-	goto other;
53
-
54
-
55
-
56
-#endif /* _CASE_PRIV_H */
57 0
deleted file mode 100644
... ...
@@ -1,135 +0,0 @@
1
-/* 
2
- * Proxy-Require, Proxy-Authorization Header Field Name Parsing Macros
3
- *
4
- * Copyright (C) 2001-2003 FhG Fokus
5
- *
6
- * This file is part of Kamailio, a free SIP server.
7
- *
8
- * Kamailio is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License as published by
10
- * the Free Software Foundation; either version 2 of the License, or
11
- * (at your option) any later version
12
- *
13
- * Kamailio is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU General Public License 
19
- * along with this program; if not, write to the Free Software 
20
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
21
- *
22
- */
23
-
24
-/*! \file 
25
- * \brief Parser :: Proxy-Require, Proxy-Authorization Header Field Name Parsing Macros
26
- *
27
- * \ingroup parser
28
- */
29
-
30
-
31
-#ifndef CASE_PROX_H
32
-#define CASE_PROX_H
33
-
34
-#include "../comp_defs.h"
35
-
36
-#define ION_CASE                           \
37
-        switch(LOWER_DWORD(val)) {         \
38
-        case _ion1_:                       \
39
-	        hdr->type = HDR_PROXYAUTH_T; \
40
-	        hdr->name.len = 19;        \
41
-	        return (p + 4);            \
42
-                                           \
43
-        case _ion2_:                       \
44
-                hdr->type = HDR_PROXYAUTH_T; \
45
-                p += 4;                    \
46
-	        goto dc_end;               \
47
-        }
48
-
49
-
50
-#define IZAT_CASE                  \
51
-        switch(LOWER_DWORD(val)) { \
52
-        case _izat_:               \
53
-                p += 4;            \
54
-                val = READ(p);     \
55
-                ION_CASE;          \
56
-                goto other;        \
57