Revert "Revert "and added files""
[bcm963xx.git] / userapps / opensource / libosip2 / include / osipparser2 / headers / osip_mime_version.h
1 /*
2   The oSIP library implements the Session Initiation Protocol (SIP -rfc2543-)
3   Copyright (C) 2001  Aymeric MOIZARD jack@atosc.org
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
21 #ifndef _OSIP_MIME_VERSION_H_
22 #define _OSIP_MIME_VERSION_H_
23
24 #include <osipparser2/osip_list.h>
25 #include <osipparser2/osip_uri.h>
26
27 /**
28  * @file osip_mime_version.h
29  * @brief oSIP osip_mime_version header definition.
30  */
31
32 /**
33  * @defgroup oSIP_MIME_VERSION oSIP mime-version header definition.
34  * @ingroup oSIP_HEADERS
35  * @{
36  */
37
38 /**
39  * Structure for Mime-Version headers.
40  * @defvar osip_mime_version_t
41  */
42   typedef osip_content_length_t osip_mime_version_t;
43
44 #ifdef __cplusplus
45 extern "C"
46 {
47 #endif
48
49 /**
50  * Allocate a Mime-Version element.
51  * @param header The element to work on.
52  */
53 #define osip_mime_version_init(header)      osip_content_length_init(header)
54 /**
55  * Parse a Mime-Version element.
56  * @param header The element to work on.
57  * @param hvalue The string to parse.
58  */
59 #define osip_mime_version_parse(header, hvalue)  osip_content_length_parse(header, hvalue)
60 /**
61  * Get a string representation of a Mime-Version element.
62  * @param header The element to work on.
63  * @param dest A pointer on the new allocated string.
64  */
65 #define osip_mime_version_to_str(header, dest)  osip_content_length_to_str(header, dest)
66 /**
67  * Free a Mime-Version element.
68  * @param header The element to work on.
69  */
70 #define osip_mime_version_free(header)      osip_content_length_free(header)
71 /**
72  * Clone a Mime-Version element.
73  * @param header The element to work on.
74  * @param dest A pointer on the copy of the element.
75  */
76 #define osip_mime_version_clone(header, dest)  osip_content_length_clone(header, dest)
77
78
79
80 #ifdef __cplusplus
81 }
82 #endif
83
84 /** @} */
85
86 #endif