summaryrefslogtreecommitdiff
path: root/p2pvr/lib/fileSink.h
blob: 840f995e650dfd8c4b93094cd4d6ca0235d85632 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef FILESINK_H
#define FILESINK_H

#include <boost/filesystem/path.hpp>
#include <stdio.h>
#include <dvb.h>
#include <visibility.h>

namespace P2PVR {
class DLL_PUBLIC FileSink : public RawDataClient {
	public:
		FileSink(const boost::filesystem::path & path);
		FileSink(int fd);
		~FileSink();

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

	private:
		FILE * const file;
};
}

#endif