Mercurial > mplayer.hg
comparison libmpdemux/network.h @ 3453:10577da4a7b1
Added a data field in the streaming_ctrl_t struct, to store any
kind of data that the protocol need to keep track of.
author | bertrand |
---|---|
date | Tue, 11 Dec 2001 01:06:08 +0000 |
parents | 9acbded8e5ba |
children | f732854e3d16 |
comparison
equal
deleted
inserted
replaced
3452:13e10af31af6 | 3453:10577da4a7b1 |
---|---|
32 char *buffer; | 32 char *buffer; |
33 unsigned int buffer_size; | 33 unsigned int buffer_size; |
34 unsigned int buffer_pos; | 34 unsigned int buffer_pos; |
35 int (*streaming_read)( int fd, char *buffer, int buffer_size, struct streaming_control *stream_ctrl ); | 35 int (*streaming_read)( int fd, char *buffer, int buffer_size, struct streaming_control *stream_ctrl ); |
36 int (*streaming_seek)( int fd, off_t pos, struct streaming_control *stream_ctrl ); | 36 int (*streaming_seek)( int fd, off_t pos, struct streaming_control *stream_ctrl ); |
37 void *data; | |
37 } streaming_ctrl_t; | 38 } streaming_ctrl_t; |
38 | 39 |
39 int streaming_bufferize( streaming_ctrl_t *streaming_ctrl, char *buffer, int size); | 40 int streaming_bufferize( streaming_ctrl_t *streaming_ctrl, char *buffer, int size); |
40 | 41 |
41 int nop_streaming_read( int fd, char *buffer, int size, streaming_ctrl_t *stream_ctrl ); | 42 int nop_streaming_read( int fd, char *buffer, int size, streaming_ctrl_t *stream_ctrl ); |