2 * $Id: case_cont.h,v 1.9 2004/08/24 09:01:24 janakj Exp $
4 * Contact, Content-Type, Content-Length, Content-Disposition
5 * Header Field Name Parsing Macros
7 * Copyright (C) 2001-2003 FhG Fokus
9 * This file is part of ser, a free SIP server.
11 * ser is free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version
16 * For a license to use the ser software under conditions
17 * other than those described here, or to purchase support for this
18 * software, please contact iptel.org by e-mail at the following addresses:
21 * ser is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
26 * You should have received a copy of the GNU General Public License
27 * along with this program; if not, write to the Free Software
28 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
32 * 2003-02-28 scratchpad compatibility abandoned (jiri)
33 * 2003-01-27 next baby-step to removing ZT - PRESERVE_ZT (jiri)
40 #include "../comp_defs.h"
43 switch(LOWER_DWORD(val)) { \
45 hdr->type = HDR_CONTENTLENGTH; \
50 if (LOWER_BYTE(*p) == 't') { \
52 if (LOWER_BYTE(*p) == 'h') { \
53 hdr->type = HDR_CONTENTLENGTH; \
61 switch(LOWER_DWORD(val)) { \
63 hdr->type = HDR_CONTENTDISPOSITION; \
68 hdr->type = HDR_CONTENTDISPOSITION; \
74 #define DISPOSITION_CASE \
75 switch(LOWER_DWORD(val)) { \
84 #define CONTENT_CASE \
85 switch(LOWER_DWORD(val)) { \
93 hdr->type = HDR_CONTENTTYPE; \
105 #define ACT_ENT_CASE \
106 switch(LOWER_DWORD(val)) { \
108 hdr->type = HDR_CONTACT; \
113 hdr->type = HDR_CONTACT; \
131 #endif /* CASE_CONT_H */