aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libdvbv5/dvb-dev-local.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2016-08-02 19:58:39 (GMT)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-08-06 15:48:22 (GMT)
commit6f83acb4cafdbf66d3b84c45d60145170f101702 (patch)
tree77d04c06c2ac656a50724f83c5f01469fae452e5 /lib/libdvbv5/dvb-dev-local.c
parentdbac3899f905b0f6469184c426ad348a3356f16f (diff)
libdvbv5: allow overriding the main FE functions
As we want to use remote DVB devices, those functions are needed. Please notice that we still lack Satellite support, as we're not overriding SEC-related functions yet. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'lib/libdvbv5/dvb-dev-local.c')
-rw-r--r--lib/libdvbv5/dvb-dev-local.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/lib/libdvbv5/dvb-dev-local.c b/lib/libdvbv5/dvb-dev-local.c
index daac469..796571d 100644
--- a/lib/libdvbv5/dvb-dev-local.c
+++ b/lib/libdvbv5/dvb-dev-local.c
@@ -651,6 +651,29 @@ static struct dvb_v5_descriptors *dvb_local_scan(struct dvb_open_descriptor *ope
return desc;
}
+/* Frontend functions that can be overriden */
+
+int dvb_local_fe_set_sys(struct dvb_v5_fe_parms *p, fe_delivery_system_t sys)
+{
+ return __dvb_set_sys(p, sys);
+}
+
+int dvb_local_fe_get_parms(struct dvb_v5_fe_parms *p)
+{
+ return __dvb_fe_get_parms(p);
+}
+
+int dvb_local_fe_set_parms(struct dvb_v5_fe_parms *p)
+{
+ return __dvb_fe_set_parms(p);
+}
+
+int dvb_local_fe_get_stats(struct dvb_v5_fe_parms *p)
+{
+ return __dvb_fe_get_stats(p);
+}
+
+/* Initialize for local usage */
void dvb_dev_local_init(struct dvb_device_priv *dvb)
{
struct dvb_dev_ops *ops = &dvb->ops;
@@ -667,5 +690,11 @@ void dvb_dev_local_init(struct dvb_device_priv *dvb)
ops->dmx_set_pesfilter = dvb_local_dmx_set_pesfilter;
ops->dmx_set_section_filter = dvb_local_dmx_set_section_filter;
ops->dmx_get_pmt_pid = dvb_local_dmx_get_pmt_pid;
+
ops->scan = dvb_local_scan;
+
+ ops->fe_set_sys = dvb_local_fe_set_sys;
+ ops->fe_get_parms = dvb_local_fe_get_parms;
+ ops->fe_set_parms = dvb_local_fe_set_parms;
+ ops->fe_get_stats = dvb_local_fe_get_stats;
}

Privacy Policy