diff options
Diffstat (limited to 'p2pvr/lib/fileSink.h')
-rw-r--r-- | p2pvr/lib/fileSink.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/p2pvr/lib/fileSink.h b/p2pvr/lib/fileSink.h new file mode 100644 index 0000000..fbd469c --- /dev/null +++ b/p2pvr/lib/fileSink.h @@ -0,0 +1,22 @@ +#ifndef FILESINK_H +#define FILESINK_H + +#include <boost/filesystem/path.hpp> +#include <stdio.h> +#include <dvb.h> +#include <visibility.h> + +class DLL_PUBLIC FileSink : public P2PVR::RawDataClient { + public: + FileSink(const boost::filesystem::path & path); + FileSink(int fd); + ~FileSink(); + + bool NewData(const P2PVR::Data & data, const Ice::Current &); + + private: + FILE * const file; +}; + +#endif + |