1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-26 01:03:15 +03:00

sftp.h : Deprecate the old sftp async API for reading

Signed-off-by: Eshan Kelkar <eshankelkar@galorithm.com>
Reviewed-by: Sahana Prasad <sahana@redhat.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Eshan Kelkar
2023-09-09 16:29:15 +05:30
committed by Sahana Prasad
parent d1960cb9a2
commit d0c76b5baa

View File

@@ -532,7 +532,8 @@ LIBSSH_API ssize_t sftp_read(sftp_file file, void *buf, size_t count);
* @see sftp_async_read() * @see sftp_async_read()
* @see sftp_open() * @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. * @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() * @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. * @brief Write to a file using an opened sftp file handle.