Inherit the version number from the Makefile

Otherwise the version number is defined at two different places, which
could lead to one not being updated when increasing the version number.

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
Allow passing NULL pointers to iio_context_get_version

If you only need to get the major number, you can now pass NULL as the
value for the "minor" variable.

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
IIOD: Inherit the version from the top-level Makefile

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
Makefiles: Set the LIBIIO_VERSION_GIT constant to the head's hash
Update prototype of function iio_context_get_version

It now takes a third parameter, a pointer to an array of 8 characters,
where a GIT hash will be stored.

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
IIOD: Update to latest libiio API

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
Fix a warning when generating documentation

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>