From 1297da380e0e35989c55ff96c1ecf2e4d10b1e7f Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 5 Feb 2010 18:34:39 +0100 Subject: Improve the session documentation. --- libssh/init.c | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'libssh/init.c') diff --git a/libssh/init.c b/libssh/init.c index 9a584298..ddd56e02 100644 --- a/libssh/init.c +++ b/libssh/init.c @@ -31,17 +31,20 @@ #endif /** - * \addtogroup ssh_session + * @defgroup libssh The libssh API + * + * This is a library implementing the SSH protocols. + * * @{ */ /** - * @brief initialize global cryptographic data structures. + * @brief Initialize global cryptographic data structures. * * This function should only be called once, at the beginning of the program, in * the main thread. It may be omitted if your program is not multithreaded. * - * @returns 0 + * @returns 0 on success, -1 if an error occured. */ int ssh_init(void) { if(ssh_crypto_init()) @@ -59,7 +62,8 @@ int ssh_init(void) { * * This function should only be called once, at the end of the program! * - * @returns -1 in case of error + * @returns 0 on succes, -1 if an error occured. + * @returns 0 otherwise */ int ssh_finalize(void) { @@ -77,7 +81,6 @@ int ssh_finalize(void) { return 0; } -/** - * @} - */ -/* vim: set ts=2 sw=2 et cindent: */ +/* @} */ + +/* vim: set ts=4 sw=4 et cindent: */ -- cgit v1.2.3