mirror of
https://github.com/libssh2/libssh2.git
synced 2026-10-24 03:48:58 +03:00
1010 B
1010 B
c, SPDX-License-Identifier, Title, Section, Source, See-also
| c | SPDX-License-Identifier | Title | Section | Source | See-also | |||
|---|---|---|---|---|---|---|---|---|
| Copyright (C) The libssh2 project and its contributors. | BSD-3-Clause | libssh2_session_callback_set | 3 | libssh2 |
|
NAME
libssh2_session_callback_set - set a callback function
SYNOPSIS
#include <libssh2.h>
void *libssh2_session_callback_set(LIBSSH2_SESSION *session,
int cbtype, void *callback);
DESCRIPTION
This function is DEPRECATED in 1.11.1. Use the libssh2_session_callback_set2(3) function instead!
This implementation is expecting and returning a data pointer for callback functions.
For the details about the replacement function, see libssh2_session_callback_set2(3) which is expecting and returning a function pointer.
RETURN VALUE
Pointer to previous callback handler. Returns NULL if no prior callback
handler was set, the callback type was unknown, or session is NULL.