Mercurial > mplayer.hg
annotate libmpdemux/realrtsp/rtsp.h @ 15903:a276ca0f64e2
synced with 1.68
author | gabrov |
---|---|
date | Sun, 03 Jul 2005 12:42:47 +0000 |
parents | fff1b6f1a9cc |
children | eb60c209a117 |
rev | line source |
---|---|
9922 | 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 | |
29 #ifndef HAVE_RTSP_H | |
30 #define HAVE_RTSP_H | |
31 | |
32 | |
33 /* some codes returned by rtsp_request_* functions */ | |
34 | |
35 #define RTSP_STATUS_SET_PARAMETER 10 | |
36 #define RTSP_STATUS_OK 200 | |
37 | |
38 typedef struct rtsp_s rtsp_t; | |
39 | |
40 rtsp_t* rtsp_connect (int fd, char *mrl, char *path, char *host, int port, char *user_agent); | |
41 | |
42 int rtsp_request_options(rtsp_t *s, const char *what); | |
43 int rtsp_request_describe(rtsp_t *s, const char *what); | |
44 int rtsp_request_setup(rtsp_t *s, const char *what); | |
45 int rtsp_request_setparameter(rtsp_t *s, const char *what); | |
46 int rtsp_request_play(rtsp_t *s, const char *what); | |
47 int rtsp_request_tearoff(rtsp_t *s, const char *what); | |
48 | |
49 int rtsp_send_ok(rtsp_t *s); | |
50 | |
51 int rtsp_read_data(rtsp_t *s, char *buffer, unsigned int size); | |
52 | |
53 char* rtsp_search_answers(rtsp_t *s, const char *tag); | |
54 void rtsp_add_to_payload(char **payload, const char *string); | |
55 | |
56 void rtsp_free_answers(rtsp_t *this); | |
57 | |
58 int rtsp_read (rtsp_t *this, char *data, int len); | |
59 void rtsp_close (rtsp_t *this); | |
60 | |
61 void rtsp_set_session(rtsp_t *s, const char *id); | |
62 char *rtsp_get_session(rtsp_t *s); | |
63 | |
64 char *rtsp_get_mrl(rtsp_t *s); | |
11506
fff1b6f1a9cc
Real rtsp Range parameter (Start and End) support.
rtognimp
parents:
9946
diff
changeset
|
65 char *rtsp_get_param(rtsp_t *s, char *param); |
9922 | 66 |
67 /*int rtsp_peek_header (rtsp_t *this, char *data); */ | |
68 | |
69 void rtsp_schedule_field(rtsp_t *s, const char *string); | |
70 void rtsp_unschedule_field(rtsp_t *s, const char *string); | |
71 void rtsp_unschedule_all(rtsp_t *s); | |
72 | |
73 #endif | |
74 |