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

Add libssh2_trace_sethandler() to the API (even more)

This commit is contained in:
Dave McCaldon
2010-01-15 22:58:44 +01:00
committed by Daniel Stenberg
parent 474e38119b
commit 44eba0c993
7 changed files with 80 additions and 23 deletions

View File

@@ -987,6 +987,11 @@ LIBSSH2_API int libssh2_trace(LIBSSH2_SESSION *session, int bitmask);
#define LIBSSH2_TRACE_PUBLICKEY (1<<8)
#define LIBSSH2_TRACE_SOCKET (1<<9)
typedef void (*libssh2_trace_handler_func)(LIBSSH2_SESSION*, const char *,
size_t);
LIBSSH2_API int libssh2_trace_sethandler(LIBSSH2_SESSION *session,
libssh2_trace_handler_func callback);
#ifdef __cplusplus
} /* extern "C" */
#endif