mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 18:50:28 +09:00
R.I.P. ssh_say()
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@271 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
@@ -125,8 +125,7 @@ typedef int socket_t;
|
|||||||
|
|
||||||
char *ssh_get_error(void *error);
|
char *ssh_get_error(void *error);
|
||||||
int ssh_get_error_code(void *error);
|
int ssh_get_error_code(void *error);
|
||||||
void ssh_say(int priority, const char *format, ...);
|
|
||||||
void ssh_set_verbosity(int num);
|
|
||||||
/** \addtogroup ssh_log
|
/** \addtogroup ssh_log
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -29,8 +29,6 @@ MA 02111-1307, USA. */
|
|||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static int verbosity;
|
|
||||||
|
|
||||||
/* ssh_set_error registers an error with a description. the error code is the class of error, and description is obvious.*/
|
/* ssh_set_error registers an error with a description. the error code is the class of error, and description is obvious.*/
|
||||||
void ssh_set_error(void *error,int code,char *descr,...){
|
void ssh_set_error(void *error,int code,char *descr,...){
|
||||||
struct error_struct *err= error;
|
struct error_struct *err= error;
|
||||||
@@ -64,16 +62,4 @@ int ssh_get_error_code(void *error){
|
|||||||
return err->error_code;
|
return err->error_code;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ssh_say(int priority, const char *format, ...){
|
|
||||||
va_list va;
|
|
||||||
va_start(va,format);
|
|
||||||
if(priority <= verbosity)
|
|
||||||
vfprintf(stderr,format,va);
|
|
||||||
va_end(va);
|
|
||||||
}
|
|
||||||
|
|
||||||
void ssh_set_verbosity(int num){
|
|
||||||
verbosity=num;
|
|
||||||
}
|
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
SSH_0.3 {
|
SSH_0.3 {
|
||||||
global:
|
global:
|
||||||
ssh_get_error; ssh_get_error_code; ssh_say; ssh_set_verbosity;
|
ssh_get_error; ssh_get_error_code;
|
||||||
ssh_new; ssh_set_options; ssh_get_fd; ssh_silent_disconnect;
|
ssh_new; ssh_set_options; ssh_get_fd; ssh_silent_disconnect;
|
||||||
ssh_connect; ssh_disconnect; ssh_service_request; ssh_get_issue_banner;
|
ssh_connect; ssh_disconnect; ssh_service_request; ssh_get_issue_banner;
|
||||||
ssh_copyright; ssh_get_version; ssh_finalize;
|
ssh_copyright; ssh_get_version; ssh_finalize;
|
||||||
|
|||||||
Reference in New Issue
Block a user