aboutsummaryrefslogtreecommitdiffstats
path: root/lib/libdvbv5/dvb-dev-local.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2017-03-07 10:59:54 (GMT)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-03-16 14:19:44 (GMT)
commitaf815a77e714bfcc84d78f228d3c82c6d1f902ff (patch)
treefc8e6508207be8171e1068fe508083e841f15334 /lib/libdvbv5/dvb-dev-local.c
parentca6a0c099399cc51ecfacff7ef938be6ef73b8b3 (diff)
dvb-dev: rename the function that gets the sysname of a device
Despite its name, what this function really does is to seek a device, based on its adapter. So, name it accordingly. 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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libdvbv5/dvb-dev-local.c b/lib/libdvbv5/dvb-dev-local.c
index 91de577..13ab016 100644
--- a/lib/libdvbv5/dvb-dev-local.c
+++ b/lib/libdvbv5/dvb-dev-local.c
@@ -354,7 +354,7 @@ static int dvb_local_stop_monitor(struct dvb_device_priv *dvb)
return 0;
}
-struct dvb_dev_list *dvb_local_seek_by_sysname(struct dvb_device_priv *dvb,
+struct dvb_dev_list *dvb_local_seek_by_adapter(struct dvb_device_priv *dvb,
unsigned int adapter,
unsigned int num,
enum dvb_dev_type type)
@@ -770,7 +770,7 @@ void dvb_dev_local_init(struct dvb_device_priv *dvb)
dvb->priv = calloc(1, sizeof(struct dvb_dev_local_priv));
ops->find = dvb_local_find;
- ops->seek_by_sysname = dvb_local_seek_by_sysname;
+ ops->seek_by_adapter = dvb_local_seek_by_adapter;
ops->stop_monitor = dvb_local_stop_monitor;
ops->open = dvb_local_open;
ops->close = dvb_local_close;

Privacy Policy