added get_subdevice_flags()
authorDavid Schleef <ds@schleef.org>
Mon, 28 May 2001 02:35:08 +0000 (02:35 +0000)
committerDavid Schleef <ds@schleef.org>
Mon, 28 May 2001 02:35:08 +0000 (02:35 +0000)
lib/get.c

index 73665b8a9a5ffa6b2774f7efefbf5a5e6a63a98d..3370c677cdfdb44231616c8ed7002043de1a0838 100644 (file)
--- 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))