Real rstp:// streaming support, ported from xine
[mplayer/greg.git] / libmpdemux / realrtsp / rtsp_session.h
blobec71b4f7e3bd12fea3b68fda82c9f7d6819318aa
1 /*
2 * This file was ported to MPlayer from xine CVS rtsp_session.h,v 1.4 2003/01/31 14:06:18
3 */
5 /*
6 * Copyright (C) 2000-2002 the xine project
8 * This file is part of xine, a free video player.
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.
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.
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
25 * high level interface to rtsp servers.
28 #ifndef HAVE_RTSP_SESSION_H
29 #define HAVE_RTSP_SESSION_H
31 typedef struct rtsp_session_s rtsp_session_t;
33 rtsp_session_t *rtsp_session_start(int fd, char *mrl, char *path, char *host, int port);
35 int rtsp_session_read(rtsp_session_t *session, char *data, int len);
37 int rtsp_session_peek_header(rtsp_session_t *this, char *buf, int maxsize);
39 void rtsp_session_end(rtsp_session_t *session);
41 #endif