mirror of
				https://github.com/libssh2/libssh2.git
				synced 2025-11-03 22:13:11 +03:00 
			
		
		
		
	Pass user context through libssh2_trace_sethandler() to callback
The libssh2_trace_sethandler() call allows the user to handle the output of libssh2 rather than having it written to stderr. This patch updates libssh2_trace_sethandler() to allow a user-defined void* context value to be passed back to the output handler.
This commit is contained in:
		
				
					committed by
					
						
						Daniel Stenberg
					
				
			
			
				
	
			
			
			
						parent
						
							44eba0c993
						
					
				
				
					commit
					f077984394
				
			@@ -736,6 +736,7 @@ struct _LIBSSH2_SESSION
 | 
			
		||||
#ifdef LIBSSH2DEBUG
 | 
			
		||||
    int showmask;               /* what debug/trace messages to display */
 | 
			
		||||
    libssh2_trace_handler_func tracehandler; /* callback to display trace messages */
 | 
			
		||||
    void* tracehandler_context; /* context for the trace handler */
 | 
			
		||||
#endif
 | 
			
		||||
 | 
			
		||||
    /* State variables used in libssh2_banner_send() */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user