summaryrefslogtreecommitdiff
path: root/p2pvr/lib/fileSink.h
blob: 40644cddc4d21df1864d08e650a74a22f3a217d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#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(int fd);
		~FileSink();

		bool NewData(const P2PVR::Data & data, const Ice::Current &);

	private:
		FILE * const file;
};

#endif