- factor out the filepusher from ts recorder
[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
6 class eFilePushThread: public eThread
7 {
8 public:
9         eFilePushThread();
10         void thread();
11         void stop();
12         void start(int sourcefd, int destfd);
13 private:
14         int m_stop;
15         unsigned char m_buffer[65536];
16         int m_buf_start, m_buf_end;
17         int m_fd_source, m_fd_dest;
18 };
19
20 #endif