git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix typo
[enigma2.git]
/
lib
/
base
/
filepush.h
diff --git
a/lib/base/filepush.h
b/lib/base/filepush.h
index f47d8e9913a30c108086c5bc3b5c4444e665a5a3..35671cd6ef23146d3fb638018265bb0bb23241a0 100644
(file)
--- a/
lib/base/filepush.h
+++ b/
lib/base/filepush.h
@@
-5,6
+5,7
@@
#include <libsig_comp.h>
#include <lib/base/message.h>
#include <sys/types.h>
#include <libsig_comp.h>
#include <lib/base/message.h>
#include <sys/types.h>
+#include <lib/base/rawfile.h>
class iFilePushScatterGather
{
class iFilePushScatterGather
{
@@
-20,6
+21,7
@@
public:
void thread();
void stop();
void start(int sourcefd, int destfd);
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);
void pause();
void seek(int whence, off_t where);
@@
-34,16
+36,23
@@
public:
enum { evtEOF, evtReadError, evtWriteError, evtUser };
Signal1<void,int> m_event;
enum { evtEOF, evtReadError, evtWriteError, evtUser };
Signal1<void,int> m_event;
+ void installSigUSR1Handler();
+ void before_set_thread_alive();
+
/* you can send private events if you want */
void sendEvent(int evt);
/* you can send private events if you want */
void sendEvent(int evt);
+protected:
+ 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;
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;
int m_send_pvr_commit;
+ eRawFile m_raw_source;
+
eFixedMessagePump<int> m_messagepump;
void recvEvent(const int &evt);
eFixedMessagePump<int> m_messagepump;
void recvEvent(const int &evt);