http_parser_table.c.in 1.52 KB
Newer Older
1 2 3 4 5 6 7 8
/** -*- C -*-
 * @IFILE http_parser_table.c.in
 *
 * Template for <http_parser_table.c>.
 *
 * @date Created: Tue Oct  1 20:37:52 2002 ppessi
 */

Pekka Pessi's avatar
Pekka Pessi committed
9 10 11 12 13 14 15
/*
 * This file is part of the Sofia-SIP package
 *
 * Copyright (C) 2005 Nokia Corporation.
 *
 * Contact: Pekka Pessi <pekka.pessi@nokia.com>
 *
16
 * This library is free software; you can redistribute it and/or
Pekka Pessi's avatar
Pekka Pessi committed
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
 * modify it under the terms of the GNU Lesser General Public License
 * as published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA
 *
 */

/**@internal
 * @CFILE http_parser_table.c 
 * @brief HTTP parser table
 *
 * #AUTO#
 *
 * @author Pekka Pessi <Pekka.Pessi@nokia.com>
 *
 * @date Created: Tue Oct  1 20:37:52 2002 ppessi
 */

#include "config.h"

#include <stddef.h>
#include <string.h>

49 50 51 52
/* Avoid casting http_t to msg_pub_t and http_header_t to msg_header_t  */
#define MSG_PUB_T struct http_s
#define MSG_HDR_T union http_header_u

53 54
#include <sofia-sip/http_parser.h>
#include <sofia-sip/msg_mclass.h>
Pekka Pessi's avatar
Pekka Pessi committed
55 56 57 58 59

#define HTTP_PARSER_FLAGS (MSG_FLG_CHUNKING)