aboutsummaryrefslogtreecommitdiff
path: root/libssh
diff options
context:
space:
mode:
authormilo <milo@r0ot.me>2010-08-08 23:08:16 +0200
committerAndreas Schneider <asn@cynapses.org>2010-08-09 20:54:28 +0200
commit51a21823f901b832cffd17ce53ac1d8c2a544e45 (patch)
tree2b9a9ea3bfe20bfbff58fe36639f44f06bebec45 /libssh
parent7a68331fcd311c79341c66d2174cc45876dd4755 (diff)
downloadlibssh-51a21823f901b832cffd17ce53ac1d8c2a544e45.tar.gz
libssh-51a21823f901b832cffd17ce53ac1d8c2a544e45.tar.xz
libssh-51a21823f901b832cffd17ce53ac1d8c2a544e45.zip
server: Added a define to set the server status.
Signed-off-by: Andreas Schneider <asn@cynapses.org>
Diffstat (limited to 'libssh')
-rw-r--r--libssh/server.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libssh/server.c b/libssh/server.c
index d62e3b3..0c8dd4c 100644
--- a/libssh/server.c
+++ b/libssh/server.c
@@ -44,6 +44,11 @@
#include "libssh/dh.h"
#include "libssh/messages.h"
+#define set_status(session, status) do {\
+ if (session->callbacks && session->callbacks->connect_status_function) \
+ session->callbacks->connect_status_function(session->callbacks->userdata, status); \
+ } while (0)
+
/**
* @addtogroup libssh_server
*