diff options
Diffstat (limited to 'p2pvr/lib/tuner.h')
-rw-r--r-- | p2pvr/lib/tuner.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/p2pvr/lib/tuner.h b/p2pvr/lib/tuner.h index 583b892..edd1a92 100644 --- a/p2pvr/lib/tuner.h +++ b/p2pvr/lib/tuner.h @@ -10,6 +10,7 @@ #include <boost/bind.hpp> #include <boost/function.hpp> #include <boost/tuple/tuple.hpp> +#include <options.h> class Tuner : public P2PVR::PrivateTuner { public: @@ -34,6 +35,8 @@ class Tuner : public P2PVR::PrivateTuner { Ice::Long GetLastUsedTime(const Ice::Current&); + INITOPTIONS; + private: static bool crc32(const P2PVR::Data &); int OpenDemux() const; @@ -47,7 +50,6 @@ class Tuner : public P2PVR::PrivateTuner { const boost::filesystem::path deviceFrontend; const boost::filesystem::path deviceRoot; - const int timeout; typedef boost::function<bool(const P2PVR::Data &)> PacketCheckFunction; typedef boost::tuple<P2PVR::RawDataClientPrx, PacketCheckFunction> BackgroundClient; typedef std::map<int, BackgroundClient> BackgroundClients; @@ -57,6 +59,13 @@ class Tuner : public P2PVR::PrivateTuner { mutable time_t lastUsedTime; FrontendPtr frontend; + + public: + static int TuningTimeout; + static int LockTimeout; + static int DemuxReadTimeout; + static int DemuxTableBufferSize; + static int DemuxStreamBufferSize; }; #endif |