mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-30 13:01:23 +03:00
server: Added a define to set the server status.
Signed-off-by: Andreas Schneider <asn@cynapses.org>
This commit is contained in:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user