~ubuntu-branches/debian/sid/kamailio/sid

« back to all changes in this revision

Viewing changes to parser/parse_supported.h

  • Committer: Package Import Robot
  • Author(s): Victor Seva
  • Date: 2014-01-06 11:47:13 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20140106114713-t8xidp4arzrnyeya
Tags: 4.1.1-1
* New upstream release
* debian/patches:
  - add upstream fixes
* Added tls outbound websocket autheph dnssec modules
  - openssl exception added to their license
* removing sparc and ia64 from supported archs
  for mono module (Closes: #728915)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * $Id$
 
3
 *
 
4
 * Copyright (C) 2006 Andreas Granig <agranig@linguin.org>
 
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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
21
 *
 
22
 *
 
23
 * History:
 
24
 * -------
 
25
 * 2006-03-02  parse_supported() parses and cumulates all SUPPORTED 
 
26
 *             headers (bogdan)
 
27
 */
 
28
 
 
29
/*!
 
30
 * \file
 
31
 * \brief Supported parser
 
32
 * \ingroup parser
 
33
 */
 
34
 
 
35
#ifndef PARSE_SUPPORTED_H
 
36
#define PARSE_SUPPORTED_H
 
37
 
 
38
#include "msg_parser.h"
 
39
#include "../mem/mem.h"
 
40
#include "parse_option_tags.h"
 
41
 
 
42
#define get_supported(p_msg) \
 
43
        ((p_msg)->supported ? ((struct option_tag_body*)(p_msg)->supported->parsed)->option_tags_all : 0)
 
44
 
 
45
 
 
46
/*!
 
47
 * Parse all Supported headers.
 
48
 */
 
49
int parse_supported( struct sip_msg *msg);
 
50
 
 
51
 
 
52
void free_supported(struct option_tag_body **sb);
 
53
 
 
54
#endif /* PARSE_SUPPORTED_H */