path: root/lib/libdvbv5/dvb-dev-local.c
diff options
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2016-08-07 18:47:33 (GMT)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-08-07 18:47:33 (GMT)
commit06228060f8931849471b027c29356e774d42d791 (patch)
tree8e7ab50e0c4d20663cdfe12335cd0ad12a7ffcad /lib/libdvbv5/dvb-dev-local.c
parent3da2f0805e54574f609d6912c0132fa9773382cf (diff)
libdvbv5: while not too late, change dvb_dev_find() api
While we're still experimental, change the monitor API to pass a pointer to a notify callback. The code to handle it should be made on a separate path. Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'lib/libdvbv5/dvb-dev-local.c')
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libdvbv5/dvb-dev-local.c b/lib/libdvbv5/dvb-dev-local.c
index 69e4acc..12aa5e4 100644
--- a/lib/libdvbv5/dvb-dev-local.c
+++ b/lib/libdvbv5/dvb-dev-local.c
@@ -204,7 +204,8 @@ err:
return -ENODEV;
-static int dvb_local_find(struct dvb_device_priv *dvb, int enable_monitor)
+static int dvb_local_find(struct dvb_device_priv *dvb,
+ dvb_dev_change_t handler)
struct dvb_v5_fe_parms_priv *parms = (void *)dvb->d.fe_parms;
struct udev_enumerate *enumerate;
@@ -223,7 +224,7 @@ static int dvb_local_find(struct dvb_device_priv *dvb, int enable_monitor)
return -ENOMEM;
- dvb->monitor = enable_monitor;
+ dvb->monitor = handler;
if (dvb->monitor) {
/* Set up a monitor to monitor dvb devices */
dvb->mon = udev_monitor_new_from_netlink(dvb->udev, "udev");

Privacy Policy