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