Change visibility of iio_device_process_samples

It is no more used by the IIO Daemon, so this function does not need
to be visible anymore.

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
bindings/python/iioxml.py: Allow to use the network backend

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
Drop API functions iio_trigger_get_rate / iio_trigger_set_rate

Those two functions are not very useful, as they can easily be replaced
by iio_device_attr_read_longlong / iio_device_attr_write_longlong with
the attribute "frequency".

Also, their name was confusing, as they were starting with "iio_trigger"
but were accepting a iio_device structure.

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
tests/iio_readdev.c: Don't use removed function iio_trigger_set_rate

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
Fix iio_channel_write[_raw] only writing the first sample

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
Change prototype of API function iio_buffer_push

It now returns a ssize_t value instead of an int value, which is more
consistent with iio_buffer_refill and also makes sense, as
iio_buffer_push uses iio_device_write_raw which returns a ssize_t
value.

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
Added Doxygen comments of the public API in iio.h

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