Network backend: Ensure network_get_version returns zero on success

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
Python: Display meaningful error messages in exceptions

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
Python: Added Context.version field

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
Python: Make NetworkContext default to discover the server with Avahi

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
Python: Add method Channel.get_filename()

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
Python: Added Channel.enabled field

This field can be written a bool value to enable/disable the channel.

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
Python: Added Device.sample_size read-only field

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
Python: Added Buffer object, and method Channel.read()

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
Python: Added method Device.read()

Signed-off-by: Paul Cercueil <paul.cercueil@analog.com>
Python: Added methods Channel.write() and Device.write()

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