and added files
[bcm963xx.git] / userapps / opensource / libosip2 / include / osipparser2 / headers / osip_proxy_authorization.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_PROXY_AUHTHORIZATION_H_
22 #define _OSIP_PROXY_AUHTHORIZATION_H_
23
24 #include <osipparser2/headers/osip_authorization.h>
25
26 /**
27  * @file osip_proxy_authorization.h
28  * @brief oSIP osip_proxy_authorization header definition.
29  */
30
31 /**
32  * @defgroup oSIP_PROXY_AUTHORIZATION oSIP proxy-authorization header definition.
33  * @ingroup oSIP_HEADERS
34  * @{
35  */
36
37 /**
38  * Structure for Proxy-Authorization headers.
39  * @defvar osip_proxy_authorization_t
40  */
41   typedef osip_authorization_t osip_proxy_authorization_t;
42
43
44 #ifdef __cplusplus
45 extern "C"
46 {
47 #endif
48
49 /**
50  * Allocate a Proxy-Authorization element.
51  * @param header The element to work on.
52  */
53 #define osip_proxy_authorization_init(header)     osip_authorization_init(header)
54 /**
55  * Parse a Proxy-Authorization element.
56  * @param header The element to work on.
57  * @param hvalue The string to parse.
58  */
59 #define osip_proxy_authorization_parse(header, hvalue) osip_authorization_parse(header, hvalue)
60 /**
61  * Get a string representation of a Proxy-Authorization element.
62  * @param header The element to work on.
63  * @param dest A pointer on the new allocated string.
64  */
65 #define osip_proxy_authorization_to_str(header, dest) osip_authorization_to_str(header, dest)
66 /**
67  * Free a Proxy-Authorization element.
68  * @param header The element to work on.
69  */
70 #define osip_proxy_authorization_free(header)     osip_authorization_free(header)
71 /**
72  * Clone a Proxy-Authorization element.
73  * @param header The element to work on.
74  * @param dest A pointer on the copy of the element.
75  */
76 #define osip_proxy_authorization_clone(header, dest) osip_authorization_clone(header, dest)
77
78 /**
79  * Get value of the auth_type parameter from a Proxy-Authorization element.
80  * @param header The element to work on.
81  */
82 #define osip_proxy_authorization_get_auth_type(header)    osip_authorization_get_auth_type(header)
83 /**
84  * Add the auth_type parameter from a Proxy-Authorization element.
85  * @param header The element to work on.
86  * @param value The value of the new parameter.
87  */
88 #define osip_proxy_authorization_set_auth_type(header, value) osip_authorization_set_auth_type(header, value)
89 /**
90  * Get value of the username parameter from a Proxy-Authorization element.
91  * @param header The element to work on.
92  */
93 #define osip_proxy_authorization_get_username(header)    osip_authorization_get_username(header)
94 /**
95  * Add the username parameter from a Proxy-Authorization element.
96  * @param header The element to work on.
97  * @param value The value of the new parameter.
98  */
99 #define osip_proxy_authorization_set_username(header, value) osip_authorization_set_username(header, value)
100 /**
101  * Get value of the realm parameter from a Proxy-Authorization element.
102  * @param header The element to work on.
103  */
104 #define osip_proxy_authorization_get_realm(header)       osip_authorization_get_realm(header)
105 /**
106  * Add the realm parameter from a Proxy-Authorization element.
107  * @param header The element to work on.
108  * @param value The value of the new parameter.
109  */
110 #define osip_proxy_authorization_set_realm(header, value)    osip_authorization_set_realm(header, value)
111 /**
112  * Get value of the nonce parameter from a Proxy-Authorization element.
113  * @param header The element to work on.
114  */
115 #define osip_proxy_authorization_get_nonce(header)       osip_authorization_get_nonce(header)
116 /**
117  * Add the nonce parameter from a Proxy-Authorization element.
118  * @param header The element to work on.
119  * @param value The value of the new parameter.
120  */
121 #define osip_proxy_authorization_set_nonce(header, value)    osip_authorization_set_nonce(header, value)
122 /**
123  * Get value of the uri parameter from a Proxy-Authorization element.
124  * @param header The element to work on.
125  */
126 #define osip_proxy_authorization_get_uri(header)         osip_authorization_get_uri(header)
127 /**
128  * Add the uri parameter from a Proxy-Authorization element.
129  * @param header The element to work on.
130  * @param value The value of the new parameter.
131  */
132 #define osip_proxy_authorization_set_uri(header, value)      osip_authorization_set_uri(header, value)
133 /**
134  * Get value of the response parameter from a Proxy-Authorization element.
135  * @param header The element to work on.
136  */
137 #define osip_proxy_authorization_get_response(header)    osip_authorization_get_response(header)
138 /**
139  * Add the response parameter from a Proxy-Authorization element.
140  * @param header The element to work on.
141  * @param value The value of the new parameter.
142  */
143 #define osip_proxy_authorization_set_response(header, value) osip_authorization_set_response(header, value)
144 /**
145  * Get value of the digest parameter from a Proxy-Authorization element.
146  * @param header The element to work on.
147  */
148 #define osip_proxy_authorization_get_digest(header)      osip_authorization_get_digest(header)
149 /**
150  * Add the digest parameter from a Proxy-Authorization element.
151  * @param header The element to work on.
152  * @param value The value of the new parameter.
153  */
154 #define osip_proxy_authorization_set_digest(header, value)   osip_authorization_set_digest(header, value)
155 /**
156  * Get value of the algorithm parameter from a Proxy-Authorization element.
157  * @param header The element to work on.
158  */
159 #define osip_proxy_authorization_get_algorithm(header)   osip_authorization_get_algorithm(header)
160 /**
161  * Add the algorithm parameter from a Proxy-Authorization element.
162  * @param header The element to work on.
163  * @param value The value of the new parameter.
164  */
165 #define osip_proxy_authorization_set_algorithm(header,value) osip_authorization_set_algorithm(header,value)
166 /**
167  * Get value of the cnonce parameter from a Proxy-Authorization element.
168  * @param header The element to work on.
169  */
170 #define osip_proxy_authorization_get_cnonce(header)      osip_authorization_get_cnonce(header)
171 /**
172  * Add the cnonce parameter from a Proxy-Authorization element.
173  * @param header The element to work on.
174  * @param value The value of the new parameter.
175  */
176 #define osip_proxy_authorization_set_cnonce(header, value)   osip_authorization_set_cnonce(header, value)
177 /**
178  * Get value of the opaque parameter from a Proxy-Authorization element.
179  * @param header The element to work on.
180  */
181 #define osip_proxy_authorization_get_opaque(header)      osip_authorization_get_opaque(header)
182 /**
183  * Add the opaque parameter from a Proxy-Authorization element.
184  * @param header The element to work on.
185  * @param value The value of the new parameter.
186  */
187 #define osip_proxy_authorization_set_opaque(header, value)   osip_authorization_set_opaque(header, value)
188 /**
189  * Get value of the message_qop parameter from a Proxy-Authorization element.
190  * @param header The element to work on.
191  */
192 #define osip_proxy_authorization_get_message_qop(header) osip_authorization_get_message_qop(header)
193 /**
194  * Add the message_qop parameter from a Proxy-Authorization element.
195  * @param header The element to work on.
196  * @param value The value of the new parameter.
197  */
198 #define osip_proxy_authorization_set_message_qop(header, value) osip_authorization_set_message_qop(header, value)
199 /**
200  * Get value of the nonce_count parameter from a Proxy-Authorization element.
201  * @param header The element to work on.
202  */
203 #define osip_proxy_authorization_get_nonce_count(header) osip_authorization_get_nonce_count(header)
204 /**
205  * Add the nonce_count parameter from a Proxy-Authorization element.
206  * @param header The element to work on.
207  * @param value The value of the new parameter.
208  */
209 #define osip_proxy_authorization_set_nonce_count(header, value) osip_authorization_set_nonce_count(header, value)
210
211 #ifdef __cplusplus
212 }
213 #endif
214
215 /** @} */
216
217 #endif
218