sip_tag.c.in 2.12 KB
Newer Older
Pekka Pessi's avatar
Pekka Pessi committed
1 2 3 4 5 6 7
/*
 * This file is part of the Sofia-SIP package
 *
 * Copyright (C) 2005 Nokia Corporation.
 *
 * Contact: Pekka Pessi <pekka.pessi@nokia.com>
 *
8
 * This library is free software; you can redistribute it and/or
Pekka Pessi's avatar
Pekka Pessi committed
9 10 11 12 13 14 15 16 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 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65
 * 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
 *
 */

/**@IFILE sip_tag.c.in
 *
 * Template for <sip_tag.c>.
 *
 * @date Created: Wed Feb 21 11:01:45 2001 ppessi
 */

/**@CFILE sip_tag.c  SIP Tags.
 *
 * #AUTO#
 *
 * @author Pekka Pessi <Pekka.Pessi@nokia.com>.
 *
 * @date Created: Fri Feb 23 12:46:42 2001 ppessi
 */

#include "config.h"

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

#include <su.h>

#define TAG_NAMESPACE "sip"

#include "sip_parser.h"
#include <sip_tag.h>

#include <su_tag_class.h>
#include <su_tag_inline.h>
#include <sip_tag_class.h>

#include <su_tagarg.h>

tag_typedef_t siptag_sip = SIPMSGTAG_TYPEDEF(sip);

tag_typedef_t siptag_header = {{ "sip", "header", siphdrtag_class, 0 }};

tag_typedef_t siptag_header_str = STRTAG_TYPEDEF(header_str);

66 67
tag_typedef_t siptag_end = TAG_TYPEDEF(tag_end, end);

Pekka Pessi's avatar
Pekka Pessi committed
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90

/**@ingroup sip_#xxxxxx#
 * Tag for #xxxxxxx_xxxxxxx# object.
 */
tag_typedef_t siptag_#xxxxxx# = SIPHDRTAG_TYPEDEF(#xxxxxx#);
/**@ingroup sip_#xxxxxx#
 * Tag for string with #xxxxxxx_xxxxxxx# value.
 */
tag_typedef_t siptag_#xxxxxx#_str = SIPSTRTAG_TYPEDEF(#xxxxxx#);

/** List of all tags for SIP headers */
tag_type_t sip_tag_list[] =
{
  siptag_#xxxxxx#,
  NULL
};

/** List of all string tags for SIP headers  */
tag_type_t sip_tag_str_list[] = 
{
  siptag_#xxxxxx#_str,
  NULL
};