• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* GStreamer
2  * Copyright (C) <2005,2006> Wim Taymans <wim@fluendo.com>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Library General Public License for more details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
17  * Boston, MA 02110-1301, USA.
18  */
19 /*
20  * Unless otherwise indicated, Source Code is licensed under MIT license.
21  * See further explanation attached in License Statement (distributed in the file
22  * LICENSE).
23  *
24  * Permission is hereby granted, free of charge, to any person obtaining a copy of
25  * this software and associated documentation files (the "Software"), to deal in
26  * the Software without restriction, including without limitation the rights to
27  * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
28  * of the Software, and to permit persons to whom the Software is furnished to do
29  * so, subject to the following conditions:
30  *
31  * The above copyright notice and this permission notice shall be included in all
32  * copies or substantial portions of the Software.
33  *
34  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
35  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
36  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
37  * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
38  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
39  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
40  * SOFTWARE.
41  */
42 
43 #ifndef __GST_RTSP_DEFS_H__
44 #define __GST_RTSP_DEFS_H__
45 
46 #include <gst/gst.h>
47 #include <gst/rtsp/rtsp-prelude.h>
48 
49 G_BEGIN_DECLS
50 
51 /**
52  * GST_RTSP_CHECK:
53  * @stmt: a statement
54  * @label: a label
55  *
56  * Macro that checks the return value of @stmt and jumps to @label when it does
57  * not equal #GST_RTSP_OK.
58  */
59 #define GST_RTSP_CHECK(stmt, label)  \
60 G_STMT_START { \
61   if (G_UNLIKELY ((res = (stmt)) != GST_RTSP_OK)) \
62     goto label; \
63 } G_STMT_END
64 
65 /**
66  * GstRTSPResult:
67  * @GST_RTSP_OK: no error
68  * @GST_RTSP_ERROR: some unspecified error occurred
69  * @GST_RTSP_EINVAL: invalid arguments were provided to a function
70  * @GST_RTSP_EINTR: an operation was canceled
71  * @GST_RTSP_ENOMEM: no memory was available for the operation
72  * @GST_RTSP_ERESOLV: a host resolve error occurred
73  * @GST_RTSP_ENOTIMPL: function not implemented
74  * @GST_RTSP_ESYS: a system error occurred, errno contains more details
75  * @GST_RTSP_EPARSE: a parsing error occurred
76  * @GST_RTSP_EWSASTART: windows networking could not start
77  * @GST_RTSP_EWSAVERSION: windows networking stack has wrong version
78  * @GST_RTSP_EEOF: end-of-file was reached
79  * @GST_RTSP_ENET: a network problem occurred, h_errno contains more details
80  * @GST_RTSP_ENOTIP: the host is not an IP host
81  * @GST_RTSP_ETIMEOUT: a timeout occurred
82  * @GST_RTSP_ETGET: the tunnel GET request has been performed
83  * @GST_RTSP_ETPOST: the tunnel POST request has been performed
84  * @GST_RTSP_ELAST: last error
85  *
86  * Result codes from the RTSP functions.
87  */
88 typedef enum {
89   GST_RTSP_OK          =  0,
90   /* errors */
91   GST_RTSP_ERROR       = -1,
92   GST_RTSP_EINVAL      = -2,
93   GST_RTSP_EINTR       = -3,
94   GST_RTSP_ENOMEM      = -4,
95   GST_RTSP_ERESOLV     = -5,
96   GST_RTSP_ENOTIMPL    = -6,
97   GST_RTSP_ESYS        = -7,
98   GST_RTSP_EPARSE      = -8,
99   GST_RTSP_EWSASTART   = -9,
100   GST_RTSP_EWSAVERSION = -10,
101   GST_RTSP_EEOF        = -11,
102   GST_RTSP_ENET        = -12,
103   GST_RTSP_ENOTIP      = -13,
104   GST_RTSP_ETIMEOUT    = -14,
105   GST_RTSP_ETGET       = -15,
106   GST_RTSP_ETPOST      = -16,
107 
108   GST_RTSP_ELAST       = -17
109 } GstRTSPResult;
110 
111 /**
112  * GstRTSPEvent:
113  * @GST_RTSP_EV_READ: connection is readable
114  * @GST_RTSP_EV_WRITE: connection is writable
115  *
116  * The possible events for the connection.
117  */
118 typedef enum {
119   GST_RTSP_EV_READ  = (1 << 0),
120   GST_RTSP_EV_WRITE = (1 << 1)
121 } GstRTSPEvent;
122 
123 /**
124  * GstRTSPFamily:
125  * @GST_RTSP_FAM_NONE: unknown network family
126  * @GST_RTSP_FAM_INET: internet
127  * @GST_RTSP_FAM_INET6: internet V6
128  *
129  * The possible network families.
130  */
131 typedef enum {
132   GST_RTSP_FAM_NONE,
133   GST_RTSP_FAM_INET,
134   GST_RTSP_FAM_INET6
135 } GstRTSPFamily;
136 
137 /**
138  * GstRTSPState:
139  * @GST_RTSP_STATE_INVALID: invalid state
140  * @GST_RTSP_STATE_INIT: initializing
141  * @GST_RTSP_STATE_READY: ready for operation
142  * @GST_RTSP_STATE_SEEKING: seeking in progress
143  * @GST_RTSP_STATE_PLAYING: playing
144  * @GST_RTSP_STATE_RECORDING: recording
145  *
146  * The different RTSP states.
147  */
148 typedef enum {
149   GST_RTSP_STATE_INVALID,
150   GST_RTSP_STATE_INIT,
151   GST_RTSP_STATE_READY,
152   GST_RTSP_STATE_SEEKING,
153   GST_RTSP_STATE_PLAYING,
154   GST_RTSP_STATE_RECORDING
155 } GstRTSPState;
156 
157 /**
158  * GstRTSPVersion:
159  * @GST_RTSP_VERSION_INVALID: unknown/invalid version
160  * @GST_RTSP_VERSION_1_0: version 1.0
161  * @GST_RTSP_VERSION_1_1: version 1.1.
162  * @GST_RTSP_VERSION_2_0: version 2.0.
163  *
164  * The supported RTSP versions.
165  */
166 typedef enum {
167   GST_RTSP_VERSION_INVALID = 0x00,
168   GST_RTSP_VERSION_1_0     = 0x10,
169   GST_RTSP_VERSION_1_1     = 0x11,
170   GST_RTSP_VERSION_2_0     = 0x20
171 } GstRTSPVersion;
172 
173 /**
174  * GstRTSPMethod:
175  * @GST_RTSP_INVALID: invalid method
176  * @GST_RTSP_DESCRIBE: the DESCRIBE method
177  * @GST_RTSP_ANNOUNCE: the ANNOUNCE method
178  * @GST_RTSP_GET_PARAMETER: the GET_PARAMETER method
179  * @GST_RTSP_OPTIONS: the OPTIONS method
180  * @GST_RTSP_PAUSE: the PAUSE method
181  * @GST_RTSP_PLAY: the PLAY method
182  * @GST_RTSP_RECORD: the RECORD method
183  * @GST_RTSP_REDIRECT: the REDIRECT method
184  * @GST_RTSP_SETUP: the SETUP method
185  * @GST_RTSP_SET_PARAMETER: the SET_PARAMETER method
186  * @GST_RTSP_TEARDOWN: the TEARDOWN method
187  * @GST_RTSP_GET: the GET method (HTTP).
188  * @GST_RTSP_POST: the POST method (HTTP).
189  *
190  * The different supported RTSP methods.
191  */
192 typedef enum {
193   GST_RTSP_INVALID          = 0,
194   GST_RTSP_DESCRIBE         = (1 <<  0),
195   GST_RTSP_ANNOUNCE         = (1 <<  1),
196   GST_RTSP_GET_PARAMETER    = (1 <<  2),
197   GST_RTSP_OPTIONS          = (1 <<  3),
198   GST_RTSP_PAUSE            = (1 <<  4),
199   GST_RTSP_PLAY             = (1 <<  5),
200   GST_RTSP_RECORD           = (1 <<  6),
201   GST_RTSP_REDIRECT         = (1 <<  7),
202   GST_RTSP_SETUP            = (1 <<  8),
203   GST_RTSP_SET_PARAMETER    = (1 <<  9),
204   GST_RTSP_TEARDOWN         = (1 << 10),
205   GST_RTSP_GET              = (1 << 11),
206   GST_RTSP_POST             = (1 << 12)
207 } GstRTSPMethod;
208 
209 /**
210  * GstRTSPAuthMethod:
211  * @GST_RTSP_AUTH_NONE: no authentication
212  * @GST_RTSP_AUTH_BASIC: basic authentication
213  * @GST_RTSP_AUTH_DIGEST: digest authentication
214  *
215  * Authentication methods, ordered by strength
216  */
217 typedef enum {
218   GST_RTSP_AUTH_NONE    = 0x00,
219   GST_RTSP_AUTH_BASIC   = 0x01,
220   GST_RTSP_AUTH_DIGEST  = 0x02
221 } GstRTSPAuthMethod;
222 
223 /**
224  * GST_RTSP_AUTH_MAX:
225  *
226  * Strongest available authentication method
227  */
228 #define GST_RTSP_AUTH_MAX GST_RTSP_AUTH_DIGEST
229 
230 /**
231  * GstRTSPHeaderField:
232  *
233  * Enumeration of rtsp header fields
234  */
235 typedef enum {
236   GST_RTSP_HDR_INVALID,
237 
238   /*
239    * R = Request
240    * r = response
241    * g = general
242    * e = entity
243    */
244   GST_RTSP_HDR_ACCEPT,              /* Accept               R      opt.      entity */
245   GST_RTSP_HDR_ACCEPT_ENCODING,     /* Accept-Encoding      R      opt.      entity */
246   GST_RTSP_HDR_ACCEPT_LANGUAGE,     /* Accept-Language      R      opt.      all */
247   GST_RTSP_HDR_ALLOW,               /* Allow                r      opt.      all */
248   GST_RTSP_HDR_AUTHORIZATION,       /* Authorization        R      opt.      all */
249   GST_RTSP_HDR_BANDWIDTH,           /* Bandwidth            R      opt.      all */
250   GST_RTSP_HDR_BLOCKSIZE,           /* Blocksize            R      opt.      all but OPTIONS, TEARDOWN */
251   GST_RTSP_HDR_CACHE_CONTROL,       /* Cache-Control        g      opt.      SETUP */
252   GST_RTSP_HDR_CONFERENCE,          /* Conference           R      opt.      SETUP */
253   GST_RTSP_HDR_CONNECTION,          /* Connection           g      req.      all */
254   GST_RTSP_HDR_CONTENT_BASE,        /* Content-Base         e      opt.      entity */
255   GST_RTSP_HDR_CONTENT_ENCODING,    /* Content-Encoding     e      req.      SET_PARAMETER, DESCRIBE, ANNOUNCE */
256   GST_RTSP_HDR_CONTENT_LANGUAGE,    /* Content-Language     e      req.      DESCRIBE, ANNOUNCE */
257   GST_RTSP_HDR_CONTENT_LENGTH,      /* Content-Length       e      req.      SET_PARAMETER, ANNOUNCE, entity */
258   GST_RTSP_HDR_CONTENT_LOCATION,    /* Content-Location     e      opt.      entity */
259   GST_RTSP_HDR_CONTENT_TYPE,        /* Content-Type         e      req.      SET_PARAMETER, ANNOUNCE, entity */
260   GST_RTSP_HDR_CSEQ,                /* CSeq                 g      req.      all */
261   GST_RTSP_HDR_DATE,                /* Date                 g      opt.      all */
262   GST_RTSP_HDR_EXPIRES,             /* Expires              e      opt.      DESCRIBE, ANNOUNCE */
263   GST_RTSP_HDR_FROM,                /* From                 R      opt.      all */
264   GST_RTSP_HDR_IF_MODIFIED_SINCE,   /* If-Modified-Since    R      opt.      DESCRIBE, SETUP */
265   GST_RTSP_HDR_LAST_MODIFIED,       /* Last-Modified        e      opt.      entity */
266   GST_RTSP_HDR_PROXY_AUTHENTICATE,  /* Proxy-Authenticate */
267   GST_RTSP_HDR_PROXY_REQUIRE,       /* Proxy-Require        R      req.      all */
268   GST_RTSP_HDR_PUBLIC,              /* Public               r      opt.      all */
269   GST_RTSP_HDR_RANGE,               /* Range                Rr     opt.      PLAY, PAUSE, RECORD */
270   GST_RTSP_HDR_REFERER,             /* Referrer              R      opt.      all */
271   GST_RTSP_HDR_REQUIRE,             /* Require              R      req.      all */
272   GST_RTSP_HDR_RETRY_AFTER,         /* Retry-After          r      opt.      all */
273   GST_RTSP_HDR_RTP_INFO,            /* RTP-Info             r      req.      PLAY */
274   GST_RTSP_HDR_SCALE,               /* Scale                Rr     opt.      PLAY, RECORD */
275   GST_RTSP_HDR_SESSION,             /* Session              Rr     req.      all but SETUP, OPTIONS */
276   GST_RTSP_HDR_SERVER,              /* Server               r      opt.      all */
277   GST_RTSP_HDR_SPEED,               /* Speed                Rr     opt.      PLAY */
278   GST_RTSP_HDR_TRANSPORT,           /* Transport            Rr     req.      SETUP */
279   GST_RTSP_HDR_UNSUPPORTED,         /* Unsupported          r      req.      all */
280   GST_RTSP_HDR_USER_AGENT,          /* User-Agent           R      opt.      all */
281   GST_RTSP_HDR_VIA,                 /* Via                  g      opt.      all */
282   GST_RTSP_HDR_WWW_AUTHENTICATE,    /* WWW-Authenticate     r      opt.      all */
283 
284   /* Real extensions */
285   GST_RTSP_HDR_CLIENT_CHALLENGE,    /* ClientChallenge */
286   GST_RTSP_HDR_REAL_CHALLENGE1,     /* RealChallenge1 */
287   GST_RTSP_HDR_REAL_CHALLENGE2,     /* RealChallenge2 */
288   GST_RTSP_HDR_REAL_CHALLENGE3,     /* RealChallenge3 */
289   GST_RTSP_HDR_SUBSCRIBE,           /* Subscribe */
290   GST_RTSP_HDR_ALERT,               /* Alert */
291   GST_RTSP_HDR_CLIENT_ID,           /* ClientID */
292   GST_RTSP_HDR_COMPANY_ID,          /* CompanyID */
293   GST_RTSP_HDR_GUID,                /* GUID */
294   GST_RTSP_HDR_REGION_DATA,         /* RegionData */
295   GST_RTSP_HDR_MAX_ASM_WIDTH,       /* SupportsMaximumASMBandwidth */
296   GST_RTSP_HDR_LANGUAGE,            /* Language */
297   GST_RTSP_HDR_PLAYER_START_TIME,   /* PlayerStarttime */
298 
299   GST_RTSP_HDR_LOCATION,            /* Location */
300 
301   GST_RTSP_HDR_ETAG,                /* ETag */
302   GST_RTSP_HDR_IF_MATCH,            /* If-Match */
303 
304   /* WM extensions [MS-RTSP] */
305   GST_RTSP_HDR_ACCEPT_CHARSET,      /* Accept-Charset */
306   GST_RTSP_HDR_SUPPORTED,           /* Supported */
307   GST_RTSP_HDR_VARY,                /* Vary */
308   GST_RTSP_HDR_X_ACCELERATE_STREAMING,    /* X-Accelerate-Streaming */
309   GST_RTSP_HDR_X_ACCEPT_AUTHENT,    /* X-Accept-Authentication */
310   GST_RTSP_HDR_X_ACCEPT_PROXY_AUTHENT,    /* X-Accept-Proxy-Authentication */
311   GST_RTSP_HDR_X_BROADCAST_ID,      /* X-Broadcast-Id */
312   GST_RTSP_HDR_X_BURST_STREAMING,   /* X-Burst-Streaming */
313   GST_RTSP_HDR_X_NOTICE,            /* X-Notice */
314   GST_RTSP_HDR_X_PLAYER_LAG_TIME,   /* X-Player-Lag-Time */
315   GST_RTSP_HDR_X_PLAYLIST,          /* X-Playlist */
316   GST_RTSP_HDR_X_PLAYLIST_CHANGE_NOTICE,  /* X-Playlist-Change-Notice */
317   GST_RTSP_HDR_X_PLAYLIST_GEN_ID,   /* X-Playlist-Gen-Id */
318   GST_RTSP_HDR_X_PLAYLIST_SEEK_ID,  /* X-Playlist-Seek-Id */
319   GST_RTSP_HDR_X_PROXY_CLIENT_AGENT,      /* X-Proxy-Client-Agent */
320   GST_RTSP_HDR_X_PROXY_CLIENT_VERB, /* X-Proxy-Client-Verb */
321   GST_RTSP_HDR_X_RECEDING_PLAYLISTCHANGE, /* X-Receding-PlaylistChange */
322   GST_RTSP_HDR_X_RTP_INFO,          /* X-RTP-Info */
323   GST_RTSP_HDR_X_STARTUPPROFILE,    /* X-StartupProfile */
324 
325   GST_RTSP_HDR_TIMESTAMP,           /* Timestamp */
326 
327   GST_RTSP_HDR_AUTHENTICATION_INFO, /* Authentication-Info */
328   GST_RTSP_HDR_HOST,                /* Host */
329   GST_RTSP_HDR_PRAGMA,              /* Pragma */
330   GST_RTSP_HDR_X_SERVER_IP_ADDRESS, /* X-Server-IP-Address */
331   GST_RTSP_HDR_X_SESSIONCOOKIE,     /* x-sessioncookie */
332 
333   GST_RTSP_HDR_RTCP_INTERVAL,       /* RTCP-Interval */
334 
335   /* Since: 1.4 */
336   GST_RTSP_HDR_KEYMGMT,             /* KeyMgmt */
337 
338   /* Since: 1.14 */
339   GST_RTSP_HDR_PIPELINED_REQUESTS,  /* Pipelined-Requests Rr     opt.      SETUP */
340   GST_RTSP_HDR_MEDIA_PROPERTIES,    /* Media-Properties   Rr     opt.      SETUP */
341   GST_RTSP_HDR_SEEK_STYLE,          /* Seek-Type          Rr     opt.      PLAY */
342   GST_RTSP_HDR_ACCEPT_RANGES,       /* Accept-Ranges      Rr     opt.      SETUP, GET_PARAMETER */
343 
344   /* Onvif extensions */
345   GST_RTSP_HDR_FRAMES,              /* Frames             Rr     opt.      PLAY */
346   GST_RTSP_HDR_RATE_CONTROL,        /* Rate-control       Rr     opt.      PLAY */
347 
348   GST_RTSP_HDR_LAST
349 } GstRTSPHeaderField;
350 
351 /**
352  * GstRTSPStatusCode:
353  *
354  * Enumeration of rtsp status codes
355  */
356 typedef enum {
357   GST_RTSP_STS_INVALID                              = 0,
358   GST_RTSP_STS_CONTINUE                             = 100,
359   GST_RTSP_STS_OK                                   = 200,
360   GST_RTSP_STS_CREATED                              = 201,
361   GST_RTSP_STS_LOW_ON_STORAGE                       = 250,
362   GST_RTSP_STS_MULTIPLE_CHOICES                     = 300,
363   GST_RTSP_STS_MOVED_PERMANENTLY                    = 301,
364   GST_RTSP_STS_MOVE_TEMPORARILY                     = 302,
365   GST_RTSP_STS_SEE_OTHER                            = 303,
366   GST_RTSP_STS_NOT_MODIFIED                         = 304,
367   GST_RTSP_STS_USE_PROXY                            = 305,
368   GST_RTSP_STS_BAD_REQUEST                          = 400,
369   GST_RTSP_STS_UNAUTHORIZED                         = 401,
370   GST_RTSP_STS_PAYMENT_REQUIRED                     = 402,
371   GST_RTSP_STS_FORBIDDEN                            = 403,
372   GST_RTSP_STS_NOT_FOUND                            = 404,
373   GST_RTSP_STS_METHOD_NOT_ALLOWED                   = 405,
374   GST_RTSP_STS_NOT_ACCEPTABLE                       = 406,
375   GST_RTSP_STS_PROXY_AUTH_REQUIRED                  = 407,
376   GST_RTSP_STS_REQUEST_TIMEOUT                      = 408,
377   GST_RTSP_STS_GONE                                 = 410,
378   GST_RTSP_STS_LENGTH_REQUIRED                      = 411,
379   GST_RTSP_STS_PRECONDITION_FAILED                  = 412,
380   GST_RTSP_STS_REQUEST_ENTITY_TOO_LARGE             = 413,
381   GST_RTSP_STS_REQUEST_URI_TOO_LARGE                = 414,
382   GST_RTSP_STS_UNSUPPORTED_MEDIA_TYPE               = 415,
383   GST_RTSP_STS_PARAMETER_NOT_UNDERSTOOD             = 451,
384   GST_RTSP_STS_CONFERENCE_NOT_FOUND                 = 452,
385   GST_RTSP_STS_NOT_ENOUGH_BANDWIDTH                 = 453,
386   GST_RTSP_STS_SESSION_NOT_FOUND                    = 454,
387   GST_RTSP_STS_METHOD_NOT_VALID_IN_THIS_STATE       = 455,
388   GST_RTSP_STS_HEADER_FIELD_NOT_VALID_FOR_RESOURCE  = 456,
389   GST_RTSP_STS_INVALID_RANGE                        = 457,
390   GST_RTSP_STS_PARAMETER_IS_READONLY                = 458,
391   GST_RTSP_STS_AGGREGATE_OPERATION_NOT_ALLOWED      = 459,
392   GST_RTSP_STS_ONLY_AGGREGATE_OPERATION_ALLOWED     = 460,
393   GST_RTSP_STS_UNSUPPORTED_TRANSPORT                = 461,
394   GST_RTSP_STS_DESTINATION_UNREACHABLE              = 462,
395   GST_RTSP_STS_KEY_MANAGEMENT_FAILURE               = 463, /* since 1.4 */
396   GST_RTSP_STS_INTERNAL_SERVER_ERROR                = 500,
397   GST_RTSP_STS_NOT_IMPLEMENTED                      = 501,
398   GST_RTSP_STS_BAD_GATEWAY                          = 502,
399   GST_RTSP_STS_SERVICE_UNAVAILABLE                  = 503,
400   GST_RTSP_STS_GATEWAY_TIMEOUT                      = 504,
401   GST_RTSP_STS_RTSP_VERSION_NOT_SUPPORTED           = 505,
402   GST_RTSP_STS_OPTION_NOT_SUPPORTED                 = 551
403 } GstRTSPStatusCode;
404 
405 GST_RTSP_API
406 gchar*             gst_rtsp_strresult          (GstRTSPResult result);
407 
408 GST_RTSP_API
409 const gchar*       gst_rtsp_method_as_text     (GstRTSPMethod method);
410 
411 GST_RTSP_API
412 const gchar*       gst_rtsp_version_as_text    (GstRTSPVersion version);
413 
414 GST_RTSP_API
415 const gchar*       gst_rtsp_header_as_text     (GstRTSPHeaderField field);
416 
417 GST_RTSP_API
418 const gchar*       gst_rtsp_status_as_text     (GstRTSPStatusCode code);
419 
420 GST_RTSP_API
421 gchar*             gst_rtsp_options_as_text    (GstRTSPMethod options);
422 
423 GST_RTSP_API
424 GstRTSPMethod      gst_rtsp_options_from_text  (const gchar *options);
425 
426 GST_RTSP_API
427 GstRTSPHeaderField gst_rtsp_find_header_field  (const gchar *header);
428 
429 GST_RTSP_API
430 GstRTSPMethod      gst_rtsp_find_method        (const gchar *method);
431 
432 GST_RTSP_API
433 gboolean           gst_rtsp_header_allow_multiple (GstRTSPHeaderField field);
434 
435 GST_RTSP_API
436 gchar *            gst_rtsp_generate_digest_auth_response (const gchar *algorithm,
437                                                            const gchar *method,
438                                                            const gchar *realm,
439                                                            const gchar *username,
440                                                            const gchar *password,
441                                                            const gchar *uri,
442                                                            const gchar *nonce);
443 
444 GST_RTSP_API
445 gchar *            gst_rtsp_generate_digest_auth_response_from_md5 (const gchar *algorithm,
446                                                                     const gchar * method,
447                                                                     const gchar * md5,
448                                                                     const gchar * uri,
449                                                                     const gchar * nonce);
450 
451 G_END_DECLS
452 
453 #endif /* __GST_RTSP_DEFS_H__ */
454