1COMEDI_GET_VERSION_CODE(3) COMEDI_GET_VERSION_CODE(3)
2
3
4
6 comedi_get_version_code - Comedi version code
7
9 #include <comedilib.h>
10
11 int comedi_get_version_code (comedi_t * device);
12
14 Returns the Comedi kernel module version code. A valid Comedi device
15 referenced by the parameter device is necessary to communicate with the
16 kernel module. On error, -1 is returned.
17
18 The version code is encoded as a bitfield of three 8-bit numbers. For
19 example, 0x00073d is the version code for version 0.7.61.
20
21 This function is of limited usefulness. A typical mis-application of
22 this function is to use it to determine if a certain feature is sup‐
23 ported. If the application needs to know of the existence of a partic‐
24 ular feature, an existence test function should be written and put in
25 the Comedilib source.
26
27 28 October 2007 COMEDI_GET_VERSION_CODE(3)