1 /*
2   The oSIP library implements the Session Initiation Protocol (SIP -rfc3261-)
3   Copyright (C) 2001-2020 Aymeric MOIZARD amoizard@antisip.com
4 
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.
9 
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.
14 
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
18 */
19 
20 #ifndef _OSIP_CONTENT_ENCODING_H_
21 #define _OSIP_CONTENT_ENCODING_H_
22 
23 #include <osipparser2/headers/osip_content_length.h>
24 
25 /**
26  * @file osip_content_encoding.h
27  * @brief oSIP osip_content_encoding header definition.
28  */
29 
30 /**
31  * @defgroup oSIP_CONTENT_ENCODING oSIP content-encoding header definition.
32  * @ingroup oSIP_HEADERS
33  * @{
34  */
35 
36 /**
37  * Structure for Content-Encoding headers.
38  * @var osip_content_encoding_t
39  */
40 typedef osip_content_length_t osip_content_encoding_t;
41 
42 #ifdef __cplusplus
43 extern "C" {
44 #endif
45 
46 /**
47  * Allocate a Content-Encoding element.
48  * @param header The element to work on.
49  */
50 #define osip_content_encoding_init(header) osip_content_length_init(header)
51 /**
52  * Parse a Content-Encoding element.
53  * @param header The element to work on.
54  * @param hvalue The string to parse.
55  */
56 #define osip_content_encoding_parse(header, hvalue) osip_content_length_parse(header, hvalue)
57 /**
58  * Get a string representation of a Content-Encoding element.
59  * @param header The element to work on.
60  * @param dest A pointer on the new allocated string.
61  */
62 #define osip_content_encoding_to_str osip_content_length_to_str
63 /**
64  * Free a Content-Encoding element.
65  * @param header The element to work on.
66  */
67 #define osip_content_encoding_free osip_content_length_free
68 /**
69  * Clone a Content-Encoding element.
70  * @param header The element to work on.
71  * @param dest A pointer on the copy of the element.
72  */
73 #define osip_content_encoding_clone osip_content_length_clone
74 
75 #ifdef __cplusplus
76 }
77 #endif
78 
79 /** @} */
80 
81 #endif
82