summaryrefslogtreecommitdiff
path: root/src/input/librtsp/rtsp.h
diff options
context:
space:
mode:
authorStefan Holst <holstsn@users.sourceforge.net>2002-12-12 22:14:53 +0000
committerStefan Holst <holstsn@users.sourceforge.net>2002-12-12 22:14:53 +0000
commit3bb7d2759764bd1f6e6915d394c32f55334dd451 (patch)
tree427c6db94d69ed141d3ce78bd21de218a1326a0f /src/input/librtsp/rtsp.h
parent41760a052b481e67ba31af505352860be86b94bf (diff)
downloadxine-lib-3bb7d2759764bd1f6e6915d394c32f55334dd451.tar.gz
xine-lib-3bb7d2759764bd1f6e6915d394c32f55334dd451.tar.bz2
The rest of rtsp input plugin; sorry.
CVS patchset: 3496 CVS date: 2002/12/12 22:14:53
Diffstat (limited to 'src/input/librtsp/rtsp.h')
-rw-r--r--src/input/librtsp/rtsp.h71
1 files changed, 71 insertions, 0 deletions
diff --git a/src/input/librtsp/rtsp.h b/src/input/librtsp/rtsp.h
new file mode 100644
index 000000000..346ef59af
--- /dev/null
+++ b/src/input/librtsp/rtsp.h
@@ -0,0 +1,71 @@
+/*
+ * Copyright (C) 2002 the xine project
+ *
+ * This file is part of xine, a free video player.
+ *
+ * xine is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * xine is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+ *
+ * $Id: rtsp.h,v 1.1 2002/12/12 22:14:56 holstsn Exp $
+ *
+ * a minimalistic implementation of rtsp protocol,
+ * *not* RFC 2326 compilant yet.
+ */
+
+#ifndef HAVE_RTSP_H
+#define HAVE_RTSP_H
+
+/*#include <inttypes.h> */
+/*#include "xine_internal.h" */
+
+#ifdef __CYGWIN__
+#define uint32_t unsigned int
+#define uint16_t unsigned short int
+#define uint8_t unsigned char
+#endif
+
+typedef struct rtsp_s rtsp_t;
+
+rtsp_t* rtsp_connect (const char *mrl, const char *user_agent);
+
+int rtsp_request_options(rtsp_t *s, const char *what);
+int rtsp_request_describe(rtsp_t *s, const char *what);
+int rtsp_request_setup(rtsp_t *s, const char *what);
+int rtsp_request_setparameter(rtsp_t *s, const char *what);
+int rtsp_request_play(rtsp_t *s, const char *what);
+int rtsp_request_tearoff(rtsp_t *s, const char *what);
+
+int rtsp_read_data(rtsp_t *s, char *buffer, unsigned int size);
+
+char* rtsp_search_answers(rtsp_t *s, const char *tag);
+void rtsp_add_to_payload(char **payload, const char *string);
+
+void rtsp_free_answers(rtsp_t *this);
+
+int rtsp_read (rtsp_t *this, char *data, int len);
+void rtsp_close (rtsp_t *this);
+
+void rtsp_set_session(rtsp_t *s, const char *id);
+char *rtsp_get_session(rtsp_t *s);
+
+char *rtsp_get_mrl(rtsp_t *s);
+
+/*int rtsp_peek_header (rtsp_t *this, char *data); */
+
+void rtsp_schedule_field(rtsp_t *s, const char *string);
+void rtsp_unschedule_field(rtsp_t *s, const char *string);
+void rtsp_unschedule_all(rtsp_t *s);
+
+#endif
+