summaryrefslogtreecommitdiffstats
path: root/libmpdemux/realrtsp/real.h
diff options
context:
space:
mode:
Diffstat (limited to 'libmpdemux/realrtsp/real.h')
-rw-r--r--libmpdemux/realrtsp/real.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/libmpdemux/realrtsp/real.h b/libmpdemux/realrtsp/real.h
index 410cc4f5c2..7fed8a239b 100644
--- a/libmpdemux/realrtsp/real.h
+++ b/libmpdemux/realrtsp/real.h
@@ -33,6 +33,20 @@
#include "rmff.h"
#include "rtsp.h"
+#define HEADER_SIZE 4096
+
+struct real_rtsp_session_t {
+ /* receive buffer */
+ uint8_t *recv;
+ int recv_size;
+ int recv_read;
+
+ /* header buffer */
+ uint8_t header[HEADER_SIZE];
+ int header_len;
+ int header_read;
+};
+
/*
* calculates response and checksum of a given challenge
* (RealChallenge1 in rtsp). See implementation for details.
@@ -41,6 +55,8 @@ void real_calc_response_and_checksum (char *response, char *chksum, char *challe
int real_get_rdt_chunk(rtsp_t *rtsp_session, char **buffer);
rmff_header_t *real_parse_sdp(char *data, char **stream_rules, uint32_t bandwidth);
rmff_header_t *real_setup_and_get_header(rtsp_t *rtsp_session, uint32_t bandwidth);
+struct real_rtsp_session_t *init_real_rtsp_session (void);
+void free_real_rtsp_session (struct real_rtsp_session_t* real_session);
#endif