2 The oSIP library implements the Session Initiation Protocol (SIP -rfc2543-)
3 Copyright (C) 2001 Aymeric MOIZARD jack@atosc.org
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef _OSIP_ERROR_INFO_H_
22 #define _OSIP_ERROR_INFO_H_
24 #include <osipparser2/headers/osip_call_info.h>
27 * @file osip_error_info.h
28 * @brief oSIP osip_error_info header definition.
32 * @defgroup oSIP_ERROR_INFO oSIP error-info definition.
33 * @ingroup oSIP_HEADERS
38 * Structure for Error-Info headers.
39 * @defvar osip_error_info_t
41 typedef osip_call_info_t osip_error_info_t;
49 * Allocate a Error-Info element.
50 * @param header The element to work on.
52 #define osip_error_info_init(header) osip_call_info_init(header)
54 * Free a Error-Info element.
55 * @param header The element to work on.
57 #define osip_error_info_free(header) osip_call_info_free(header)
59 * Parse a Error-Info element.
60 * @param header The element to work on.
61 * @param hvalue The string to parse.
63 #define osip_error_info_parse(header, hvalue) osip_call_info_parse(header, hvalue)
65 * Get a string representation of a Error-Info element.
66 * @param header The element to work on.
67 * @param dest A pointer on the new allocated string.
69 #define osip_error_info_to_str(header,dest) osip_call_info_to_str(header,dest)
71 * Clone a Error-Info element.
72 * @param header The element to work on.
73 * @param dest A pointer on the copy of the element.
75 #define osip_error_info_clone(header, dest) osip_call_info_clone(header, dest)
78 * Set the uri in the Error-Info element.
79 * @param header The element to work on.
80 * @param uri The uri of the element.
82 #define osip_error_info_set_uri(header, uri) osip_call_info_set_uri(header, uri)
84 * Get the uri from a Error-Info header.
85 * @param header The element to work on.
87 #define osip_error_info_get_uri(header) osip_call_info_get_uri(header)