summaryrefslogtreecommitdiff
path: root/p2pvr/devices/frontend.cpp
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2017-08-06 13:34:44 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2017-08-06 13:34:44 +0100
commit661856d0e138e5f1bc6809341b66e69eff903b1b (patch)
tree7fbf3491052ad94ed64fd49f9a14f19a9928cb54 /p2pvr/devices/frontend.cpp
parentDrop out local file hanlde for AdHoc's (diff)
downloadp2pvr-661856d0e138e5f1bc6809341b66e69eff903b1b.tar.bz2
p2pvr-661856d0e138e5f1bc6809341b66e69eff903b1b.tar.xz
p2pvr-661856d0e138e5f1bc6809341b66e69eff903b1b.zip
Unify local/global devices and tuners into a single coherent service
Diffstat (limited to 'p2pvr/devices/frontend.cpp')
-rw-r--r--p2pvr/devices/frontend.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/p2pvr/devices/frontend.cpp b/p2pvr/devices/frontend.cpp
index c6f258b..1026a20 100644
--- a/p2pvr/devices/frontend.cpp
+++ b/p2pvr/devices/frontend.cpp
@@ -6,7 +6,7 @@
namespace P2PVR {
namespace DVB {
-Frontend::Frontend(Tuner * t, const struct dvb_frontend_info & i, IceTray::Logging::LoggerPtr log) :
+Frontend::Frontend(TunerI * t, const struct dvb_frontend_info & i, IceTray::Logging::LoggerPtr log) :
tuner(t),
fe_info(i),
logger(log)
@@ -28,8 +28,8 @@ Frontend::GetStatus() const
{
fe_status_t status;
if (ioctl(tuner->frontendFD, FE_READ_STATUS, &status) < 0) {
- logger->messagebf(LOG::ERR, "Reading frontend %s status failed (%s:%d)", tuner->Device(), strerror(errno), errno);
- throw P2PVR::DeviceError(tuner->Device(), strerror(errno), errno);
+ logger->messagebf(LOG::ERR, "Reading frontend %s status failed (%s:%d)", tuner->GetDevice(), strerror(errno), errno);
+ throw P2PVR::DeviceError(tuner->GetDevice(), strerror(errno), errno);
}
return status;
}
@@ -42,5 +42,5 @@ Frontend::FactoryKey(fe_type t)
}
}
-INSTANTIATEFACTORY(P2PVR::DVB::Frontend, P2PVR::DVB::Tuner *, const struct dvb_frontend_info &);
+INSTANTIATEFACTORY(P2PVR::DVB::Frontend, P2PVR::DVB::TunerI *, const struct dvb_frontend_info &);