aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/priv.h
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-09-10 11:49:53 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-09-10 12:38:42 +0200
commitc8f48a247808fe9ad8a59774545f527dbea71cfc (patch)
treed53ffa85dda96b08bd9c091057046cbefe98d284 /include/libssh/priv.h
parent08129002de26ff010d55e4ad4bc93c675a3412be (diff)
downloadlibssh-c8f48a247808fe9ad8a59774545f527dbea71cfc.tar.gz
libssh-c8f48a247808fe9ad8a59774545f527dbea71cfc.tar.xz
libssh-c8f48a247808fe9ad8a59774545f527dbea71cfc.zip
log: Improve the logging function.
Diffstat (limited to 'include/libssh/priv.h')
-rw-r--r--include/libssh/priv.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h
index d7ba68df..7493d145 100644
--- a/include/libssh/priv.h
+++ b/include/libssh/priv.h
@@ -263,6 +263,14 @@ int ssh_options_apply(ssh_session session);
/* server.c */
SSH_PACKET_CALLBACK(ssh_packet_kexdh_init);
+/* LOGGING */
+#define SSH_LOG(session, priority, ...) \
+ _ssh_log(session, priority, __FUNCTION__, __VA_ARGS__)
+void ssh_log_function(ssh_session session,
+ int prioriry,
+ const char *function,
+ const char *format, ...) PRINTF_ATTRIBUTE(4, 5);
+
/** Free memory space */
#define SAFE_FREE(x) do { if ((x) != NULL) {free(x); x=NULL;} } while(0)