fix seeking in filepush
[enigma2.git] / lib / base / filepush.h
1 #ifndef __lib_base_filepush_h
2 #define __lib_base_filepush_h
3
4 #include <lib/base/thread.h>
5 #include <sys/types.h>
6
7 class eFilePushThread: public eThread
8 {
9 public:
10         eFilePushThread();
11         void thread();
12         void stop();
13         void start(int sourcefd, int destfd);
14         
15         void pause();
16         void seek(int whence, off_t where);
17         void resume();
18         
19 private:
20         int m_stop;
21         unsigned char m_buffer[65536];
22         int m_buf_start, m_buf_end;
23         int m_fd_source, m_fd_dest;
24 };
25
26 #endif