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