libssh2_session_callback_set(3)
β¨ NAME β¨
libssh2_session_callback_set β set a callback function, bestie π
This is the manual page for libssh2_session_callback_set from the libssh2 crew, and yes she's a lil old-school. Keep reading, iykyk.
πΈ SYNOPSIS πΈ
#include <libssh2.h>
void *
libssh2_session_callback_set(LIBSSH2_SESSION *session,
int cbtype, void *callback);
π DESCRIPTION π
Okay so first thing, no cap: this function is DEPRECATED in 1.11.1. Use the libssh2_session_callback_set2(3) function instead, fr fr. She's giving legacy energy and we're moving on. π
This implementation is expecting and returning a data pointer for callback functions. That's the whole vibe here β data pointer in, data pointer out. β¨
For the details about the replacement function, see libssh2_session_callback_set2(3), which is expecting and returning a function pointer. Different era, different pointer type, okay? π
π¨ Bestie warning: don't build new stuff on this one. It's deprecated. Go hang with libssh2_session_callback_set2(3) instead. Periodt.
π«Ά RETURN VALUE π«Ά
Pointer to previous callback handler. Returns NULL if no prior callback handler was set or the callback type was unknown.
That's it, that's the tea. If you get NULL, either nothing was there before or that callback type was a mystery. π
π¦ SEE ALSO π¦
This lil page comes from <strong>libssh2 0.15</strong>, dated <strong>1 Jun 2007</strong> β vintage icon behavior, honestly. Stay slay, check the replacement function, and hydrate. ππ
π¦ where this page comes from
- alpine 3.22: libssh2-doc 1.11.1-r3 Β· BSD-3-Clause
- alpine 3.23: libssh2-doc 1.11.1-r4 Β· BSD-3-Clause
- alpine 3.24: libssh2-doc 1.11.1-r4 Β· BSD-3-Clause
- arch rolling: libssh2 1.11.1-7 Β· BSD-3-Clause
- debian trixie: libssh2-1-dev 1.11.1-1+deb13u1 Β· BSD3
- debian trixie: libssh2-1-dev 1.11.1-1+deb13u2 Β· BSD3
- epel 10: libssh2-docs 1.11.1-9.el10_3 Β· BSD-3-Clause
- epel 9: libssh2-docs 1.11.1-9.el9 Β· BSD-3-Clause
- fedora 43: libssh2-docs 1.11.1-4.fc43 Β· BSD-3-Clause
- fedora 43: libssh2-docs 1.11.1-9.fc43 Β· BSD-3-Clause
- fedora 44: libssh2-docs 1.11.1-5.fc44 Β· BSD-3-Clause
- fedora 44: libssh2-docs 1.11.1-9.fc44 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- opensuse-leap 16.0: libssh2-devel 1.11.1-160000.5.1 Β· BSD-3-Clause
- ubuntu questing: libssh2-1-dev 1.11.1-1build1
- ubuntu questing: libssh2-1-dev 1.11.1-1ubuntu0.25.10.2
- ubuntu resolute: libssh2-1-dev 1.11.1-1build2 Β· BSD3
- ubuntu resolute: libssh2-1-dev 1.11.1-1ubuntu0.26.04.4 Β· BSD3
- ubuntu stonking: libssh2-1-dev 1.11.1-6 Β· BSD3
- π the page's license: BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms