1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-07-31 00:03:08 +03:00

libssh2.h: add deprecated function warnings

With deprecated-at versions and suggested replacement function.

It's possible to silence them by defining `LIBSSH2_DISABLE_DEPRECATION`.

Also add depcreated-at versions to documentation, and unify wording.

Ref: https://github.com/libssh2/libssh2/pull/1260#issuecomment-1837017987
Closes #1289
This commit is contained in:
Viktor Szakats
2023-12-16 12:25:51 +00:00
parent fc24735f61
commit 9839ebe5e9
6 changed files with 43 additions and 12 deletions

View File

@ -11,8 +11,8 @@ LIBSSH2_CHANNEL *
libssh2_scp_recv(LIBSSH2_SESSION *session, const char *path, struct stat *sb);
.fi
.SH DESCRIPTION
This function is \fBDEPRECATED\fP. Use \fIlibssh2_scp_recv2(3)\fP
instead!
This function is \fBDEPRECATED\fP in 1.7.0. Use the
\fIlibssh2_scp_recv2(3)\fP function instead!
\fIsession\fP - Session instance as returned by
.BR libssh2_session_init_ex(3)