From 7616ab0880be1df6d046dd1a62609168181ea8a1 Mon Sep 17 00:00:00 2001 From: David Schleef Date: Mon, 28 May 2001 02:35:08 +0000 Subject: [PATCH] added get_subdevice_flags() --- lib/get.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/get.c b/lib/get.c index 73665b8..3370c67 100644 --- a/lib/get.c +++ b/lib/get.c @@ -68,6 +68,14 @@ char *comedi_get_board_name(comedi_t *it) return it->devinfo.board_name; } +int comedi_get_subdevice_flags(comedi_t *it,unsigned int subd) +{ + if(!valid_dev(it)) + return 0; + + return it->subdevices[subd].subd_flags; +} + int comedi_get_subdevice_type(comedi_t *it,unsigned int subd) { if(!valid_dev(it)) -- 2.26.2