summaryrefslogtreecommitdiff
path: root/src/input/librtsp/rtsp.h
diff options
context:
space:
mode:
authorStefan Holst <holstsn@users.sourceforge.net>2002-12-16 21:50:54 +0000
committerStefan Holst <holstsn@users.sourceforge.net>2002-12-16 21:50:54 +0000
commita2ce19ef7930303350698d1b684080b061a57d7c (patch)
treeaac0eae2e0d973a9ba1ad922236fc29443da4c1c /src/input/librtsp/rtsp.h
parent97c8f6a9d8bbd13a1ef0e071f60009f5110ca210 (diff)
downloadxine-lib-a2ce19ef7930303350698d1b684080b061a57d7c.tar.gz
xine-lib-a2ce19ef7930303350698d1b684080b061a57d7c.tar.bz2
real streaming fixes:
- removing exit()s from pnm.c - server error message retrieving fixed in pnm.c - handling of server messages in rtsp CVS patchset: 3564 CVS date: 2002/12/16 21:50:54
Diffstat (limited to 'src/input/librtsp/rtsp.h')
-rw-r--r--src/input/librtsp/rtsp.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/input/librtsp/rtsp.h b/src/input/librtsp/rtsp.h
index 346ef59af..02e838da6 100644
--- a/src/input/librtsp/rtsp.h
+++ b/src/input/librtsp/rtsp.h
@@ -17,7 +17,7 @@
* 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 $
+ * $Id: rtsp.h,v 1.2 2002/12/16 21:50:55 holstsn Exp $
*
* a minimalistic implementation of rtsp protocol,
* *not* RFC 2326 compilant yet.
@@ -35,6 +35,11 @@
#define uint8_t unsigned char
#endif
+/* some codes returned by rtsp_request_* functions */
+
+#define RTSP_STATUS_SET_PARAMETER 10
+#define RTSP_STATUS_OK 200
+
typedef struct rtsp_s rtsp_t;
rtsp_t* rtsp_connect (const char *mrl, const char *user_agent);
@@ -46,6 +51,8 @@ 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_send_ok(rtsp_t *s);
+
int rtsp_read_data(rtsp_t *s, char *buffer, unsigned int size);
char* rtsp_search_answers(rtsp_t *s, const char *tag);