changeset 21655:b7e2f8fd263e

added member and definitions for output streams
author nicodvb
date Mon, 18 Dec 2006 20:50:31 +0000
parents 3286c2936f14
children 32c50eb3ff18
files stream/stream.h
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/stream/stream.h	Mon Dec 18 18:55:46 2006 +0000
+++ b/stream/stream.h	Mon Dec 18 20:50:31 2006 +0000
@@ -101,6 +101,7 @@
   unsigned int buf_pos,buf_len;
   off_t pos,start_pos,end_pos;
   int eof;
+  int mode; //STREAM_READ or STREAM_WRITE
   unsigned int cache_pid;
   void* cache_data;
   void* priv; // used for DVD, TV, RTSP etc
@@ -122,6 +123,7 @@
 #define stream_enable_cache(x,y,z,w) 1
 #endif
 void fixup_network_stream_cache(stream_t *stream);
+int stream_write_buffer(stream_t *s, unsigned char *buf, int len);
 
 inline static int stream_read_char(stream_t *s){
   return (s->buf_pos<s->buf_len)?s->buffer[s->buf_pos++]:
@@ -291,6 +293,7 @@
 stream_t* new_memory_stream(unsigned char* data,int len);
 stream_t* open_stream(char* filename,char** options,int* file_format);
 stream_t* open_stream_full(char* filename,int mode, char** options, int* file_format);
+stream_t* open_output_stream(char* filename,char** options);
 
 extern int dvd_title;
 extern int dvd_chapter;