Skip to content

Commit

Permalink
Fix: move iio_device_set_kernel_buffers_count() decl. into iio-compat.h
Browse files Browse the repository at this point in the history
This change was necessary because the function has been removed from the new API

Signed-off-by: Benjamin Menkuec <[email protected]>
  • Loading branch information
catkira authored and pcercuei committed Jun 20, 2023
1 parent 8fb4b64 commit 6711950
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
12 changes: 12 additions & 0 deletions iio-compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 0 additions & 9 deletions include/iio/iio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 -------------------------------*/
Expand Down

0 comments on commit 6711950

Please sign in to comment.