2 * $Id: case_acce.h,v 1.4 2004/08/24 09:01:24 janakj Exp $
4 * Accept and Accept-Language Header Field Name Parsing Macros
6 * Copyright (C) 2001-2003 FhG Fokus
8 * This file is part of ser, a free SIP server.
10 * ser is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version
15 * For a license to use the ser software under conditions
16 * other than those described here, or to purchase support for this
17 * software, please contact iptel.org by e-mail at the following addresses:
20 * ser is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
25 * You should have received a copy of the GNU General Public License
26 * along with this program; if not, write to the Free Software
27 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
35 switch(LOWER_DWORD(val)) { \
37 hdr->type = HDR_ACCEPTLANGUAGE; \
42 hdr->type = HDR_ACCEPTLANGUAGE; \
49 switch(LOWER_DWORD(val)) { \
59 if (LOWER_BYTE(*p) == 'o') { \
61 if (LOWER_BYTE(*p) == 'n') { \
62 hdr->type = HDR_ACCEPTDISPOSITION; \
70 switch(LOWER_DWORD(val)) { \
80 switch(LOWER_DWORD(val)) { \
90 switch(LOWER_DWORD(val)) { \
110 if (LOWER_BYTE(*p) == 'p') { \
112 if (LOWER_BYTE(*p) == 't') { \
113 hdr->type = HDR_ACCEPT; \
121 #endif /* CASE_ACCE_H */