Mercurial > mplayer.hg
annotate stream/librtsp/rtsp.h @ 19642:db2a522e319e
Matroska subtitles are always utf-8, no need to recode them.
author | eugeni |
---|---|
date | Sat, 02 Sep 2006 19:55:45 +0000 |
parents | 64d82a45a05d |
children | 3baf6a2283da |
rev | line source |
---|---|
18799 | 1 /* |
2 * This file was ported to MPlayer from xine CVS rtsp.h,v 1.2 2002/12/16 21:50:55 | |
3 */ | |
4 | |
5 /* | |
6 * Copyright (C) 2002 the xine project | |
7 * | |
8 * This file is part of xine, a free video player. | |
9 * | |
10 * xine is free software; you can redistribute it and/or modify | |
11 * it under the terms of the GNU General Public License as published by | |
12 * the Free Software Foundation; either version 2 of the License, or | |
13 * (at your option) any later version. | |
14 * | |
15 * xine is distributed in the hope that it will be useful, | |
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 * GNU General Public License for more details. | |
19 * | |
20 * You should have received a copy of the GNU General Public License | |
21 * along with this program; if not, write to the Free Software | |
22 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA | |
23 * | |
24 * | |
25 * a minimalistic implementation of rtsp protocol, | |
26 * *not* RFC 2326 compilant yet. | |
27 * | |
28 * 2006, Benjamin Zores and Vincent Mussard | |
29 * fixed a lot of RFC compliance issues. | |
30 */ | |
31 | |
32 #ifndef HAVE_RTSP_H | |
33 #define HAVE_RTSP_H | |
34 | |
35 | |
36 /* some codes returned by rtsp_request_* functions */ | |
37 | |
38 #define RTSP_STATUS_SET_PARAMETER 10 | |
39 #define RTSP_STATUS_OK 200 | |
40 | |
41 #define RTSP_METHOD_OPTIONS "OPTIONS" | |
42 #define RTSP_METHOD_DESCRIBE "DESCRIBE" | |
43 #define RTSP_METHOD_SETUP "SETUP" | |
44 #define RTSP_METHOD_PLAY "PLAY" | |
45 #define RTSP_METHOD_TEARDOWN "TEARDOWN" | |
46 #define RTSP_METHOD_SET_PARAMETER "SET_PARAMETER" | |
47 | |
48 typedef struct rtsp_s rtsp_t; | |
49 | |
50 rtsp_t* rtsp_connect (int fd, char *mrl, char *path, char *host, int port, char *user_agent); | |
51 | |
52 int rtsp_request_options(rtsp_t *s, const char *what); | |
53 int rtsp_request_describe(rtsp_t *s, const char *what); | |
54 int rtsp_request_setup(rtsp_t *s, const char *what, char *control); | |
55 int rtsp_request_setparameter(rtsp_t *s, const char *what); | |
56 int rtsp_request_play(rtsp_t *s, const char *what); | |
57 int rtsp_request_teardown(rtsp_t *s, const char *what); | |
58 | |
59 int rtsp_send_ok(rtsp_t *s); | |
60 | |
61 int rtsp_read_data(rtsp_t *s, char *buffer, unsigned int size); | |
62 | |
63 char* rtsp_search_answers(rtsp_t *s, const char *tag); | |
64 void rtsp_add_to_payload(char **payload, const char *string); | |
65 | |
66 void rtsp_free_answers(rtsp_t *this); | |
67 | |
68 int rtsp_read (rtsp_t *this, char *data, int len); | |
69 void rtsp_close (rtsp_t *this); | |
70 | |
71 void rtsp_set_session(rtsp_t *s, const char *id); | |
72 char *rtsp_get_session(rtsp_t *s); | |
73 | |
74 char *rtsp_get_mrl(rtsp_t *s); | |
19108
5e767cabf4cd
marks several read-only string parameters and function return-values which can only be used read-only as const. Patch by Stefan Huehner, stefan _AT huener-org
reynaldo
parents:
18799
diff
changeset
|
75 char *rtsp_get_param(rtsp_t *s, const char *param); |
18799 | 76 |
77 /*int rtsp_peek_header (rtsp_t *this, char *data); */ | |
78 | |
79 void rtsp_schedule_field(rtsp_t *s, const char *string); | |
80 void rtsp_unschedule_field(rtsp_t *s, const char *string); | |
81 void rtsp_unschedule_all(rtsp_t *s); | |
82 | |
83 #endif | |
84 |