Skip to content

Commit

Permalink
python: Update to updated backends API
Browse files Browse the repository at this point in the history
The functions to query the available backends changed a bit; update the
Python bindings accordingly.

Signed-off-by: Paul Cercueil <[email protected]>
  • Loading branch information
pcercuei committed Oct 25, 2023
1 parent 71dd005 commit 460575c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bindings/python/iio.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,10 +248,10 @@ class ChannelType(Enum):

_lib = _cdll("libiio.so.1", use_errno=True, use_last_error=True)

_get_backends_count = _lib.iio_get_backends_count
_get_backends_count = _lib.iio_get_builtin_backends_count
_get_backends_count.restype = c_uint

_get_backend = _lib.iio_get_backend
_get_backend = _lib.iio_get_builtin_backend
_get_backend.argtypes = (c_uint,)
_get_backend.restype = c_char_p
_get_backend.errcheck = _check_null
Expand Down

0 comments on commit 460575c

Please sign in to comment.