Writing an application that including libiio iio.h for handling iio buffers and kernel iio include files for handling events, there are redefinition errors between /usr/include/linux/iio/types.h and /usr/include/iio.h:
/usr/include/linux/iio/types.h:14:6: error: redefinition of 'iio_chan_type'
enum iio_chan_type {
^
/usr/include/iio.h:94:6: note: previous definition is here
enum iio_chan_type {
^
When compiling on linux architecture, would it make sense for ./iio.h to include <linux/iio/types.h>?