diff options
author | albeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-04-09 00:36:28 +0000 |
---|---|---|
committer | albeu <albeu@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2008-04-09 00:36:28 +0000 |
commit | f481e7870b0fcb7fec1614efab4fc7baf380bf1c (patch) | |
tree | b5cbdd1b187650efb3bea73bb69c862fdfae74ba /stream/stream.h | |
parent | 64868a36cd8113336745f5baf336ae76553de9ab (diff) | |
download | mpv-f481e7870b0fcb7fec1614efab4fc7baf380bf1c.tar.bz2 mpv-f481e7870b0fcb7fec1614efab4fc7baf380bf1c.tar.xz |
Remove the need for code using stream to export an mp_input_check_interrupt()
function. It also removes the compile-time dependency on input.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26358 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream/stream.h')
-rw-r--r-- | stream/stream.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/stream/stream.h b/stream/stream.h index 5ef7df5fa0..e53d0f971b 100644 --- a/stream/stream.h +++ b/stream/stream.h @@ -296,6 +296,11 @@ 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); +/// Set the callback to be used by libstream to check for user +/// interruption during long blocking operations (cache filling, etc). +void stream_set_interrupt_callback(int (*cb)(int)); +/// Call the interrupt checking callback if there is one. +int stream_check_interrupt(int time); extern int dvd_title; extern int dvd_chapter; |