X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/b36d3153538679a8fcbebcf884e4eb1533c5cd13..c0a2787dc8f4859ff9601a8299ede60142a196b5:/lib/base/filepush.h diff --git a/lib/base/filepush.h b/lib/base/filepush.h index e471b296..25257880 100644 --- a/lib/base/filepush.h +++ b/lib/base/filepush.h @@ -5,6 +5,7 @@ #include #include #include +#include class iFilePushScatterGather { @@ -20,6 +21,7 @@ public: void thread(); void stop(); void start(int sourcefd, int destfd); + int start(const char *filename, int destfd); void pause(); void seek(int whence, off_t where); @@ -37,15 +39,17 @@ public: /* you can send private events if you want */ void sendEvent(int evt); protected: - virtual void filterRecordData(const char *data, int len); + virtual void filterRecordData(const unsigned char *data, int len); private: iFilePushScatterGather *m_sg; int m_stop; unsigned char m_buffer[65536]; int m_buf_start, m_buf_end; - int m_fd_source, m_fd_dest; + int m_fd_dest; int m_send_pvr_commit; + eRawFile m_raw_source; + eFixedMessagePump m_messagepump; void recvEvent(const int &evt);