From d0c76b5baa1d514f3eca9707e2b5228b7bae6bf8 Mon Sep 17 00:00:00 2001 From: Eshan Kelkar Date: Sat, 9 Sep 2023 16:29:15 +0530 Subject: [PATCH] sftp.h : Deprecate the old sftp async API for reading Signed-off-by: Eshan Kelkar Reviewed-by: Sahana Prasad Reviewed-by: Jakub Jelen --- include/libssh/sftp.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/include/libssh/sftp.h b/include/libssh/sftp.h index 209973a8..b4e0e18b 100644 --- a/include/libssh/sftp.h +++ b/include/libssh/sftp.h @@ -532,7 +532,8 @@ LIBSSH_API ssize_t sftp_read(sftp_file file, void *buf, size_t count); * @see sftp_async_read() * @see sftp_open() */ -LIBSSH_API int sftp_async_read_begin(sftp_file file, uint32_t len); +SSH_DEPRECATED LIBSSH_API int sftp_async_read_begin(sftp_file file, + uint32_t len); /** * @brief Wait for an asynchronous read to complete and save the data. @@ -557,7 +558,10 @@ LIBSSH_API int sftp_async_read_begin(sftp_file file, uint32_t len); * * @see sftp_async_read_begin() */ -LIBSSH_API int sftp_async_read(sftp_file file, void *data, uint32_t len, uint32_t id); +SSH_DEPRECATED LIBSSH_API int sftp_async_read(sftp_file file, + void *data, + uint32_t len, + uint32_t id); /** * @brief Write to a file using an opened sftp file handle.