From: David Schleef Date: Mon, 28 May 2001 02:35:08 +0000 (+0000) Subject: added get_subdevice_flags() X-Git-Tag: r0_7_16~88 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7616ab0880be1df6d046dd1a62609168181ea8a1;p=comedilib.git added get_subdevice_flags() --- 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))