From 671195019d39c923e2ee0482ee7f1bbc942f6072 Mon Sep 17 00:00:00 2001 From: Benjamin Menkuec Date: Thu, 15 Jun 2023 14:43:28 +0200 Subject: [PATCH] Fix: move iio_device_set_kernel_buffers_count() decl. into iio-compat.h This change was necessary because the function has been removed from the new API Signed-off-by: Benjamin Menkuec --- iio-compat.h | 12 ++++++++++++ include/iio/iio.h | 9 --------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/iio-compat.h b/iio-compat.h index 6c07bbd7e..5c080c2c6 100644 --- a/iio-compat.h +++ b/iio-compat.h @@ -216,6 +216,18 @@ __api __check_ret int iio_context_get_version(const struct iio_context *ctx, char git_tag[8]); +/** @brief Configure the number of kernel buffers for a device + * + * This function allows to change the number of buffers on kernel side. + * @param dev A pointer to an iio_device structure + * @param nb_buffers The number of buffers + * @return On success, 0 is returned + * @return On error, a negative errno code is returned */ +__api __check_ret int iio_device_set_kernel_buffers_count(const struct iio_device *dev, + unsigned int nb_buffers); + + + /** @} *//* ------------------------------------------------------------------*/ #undef __api diff --git a/include/iio/iio.h b/include/iio/iio.h index 22aa6c508..cce2a2fe0 100644 --- a/include/iio/iio.h +++ b/include/iio/iio.h @@ -908,15 +908,6 @@ __api __check_ret int iio_device_set_trigger(const struct iio_device *dev, * @return True if the device is a trigger, False otherwise */ __api __check_ret __pure bool iio_device_is_trigger(const struct iio_device *dev); -/** @brief Configure the number of kernel buffers for a device - * - * This function allows to change the number of buffers on kernel side. - * @param dev A pointer to an iio_device structure - * @param nb_buffers The number of buffers - * @return On success, 0 is returned - * @return On error, a negative errno code is returned */ -__api __check_ret int iio_device_set_kernel_buffers_count(const struct iio_device *dev, - unsigned int nb_buffers); /** @} *//* ------------------------------------------------------------------*/ /* ------------------------- Channel functions -------------------------------*/