4
* Copyright (C) 2006 Andreas Granig <agranig@linguin.org>
6
* This file is part of Kamailio, a free SIP server.
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
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.
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
25
* 2006-03-02 parse_supported() parses and cumulates all SUPPORTED
31
* \brief Supported parser
35
#ifndef PARSE_SUPPORTED_H
36
#define PARSE_SUPPORTED_H
38
#include "msg_parser.h"
39
#include "../mem/mem.h"
40
#include "parse_option_tags.h"
42
#define get_supported(p_msg) \
43
((p_msg)->supported ? ((struct option_tag_body*)(p_msg)->supported->parsed)->option_tags_all : 0)
47
* Parse all Supported headers.
49
int parse_supported( struct sip_msg *msg);
52
void free_supported(struct option_tag_body **sb);
54
#endif /* PARSE_SUPPORTED_H */