diff channel.h @ 722:4a274f47eabd

Add ~. and ~^Z handling to exit/suspend dbclient
author Matt Johnston <matt@ucc.asn.au>
date Sat, 23 Mar 2013 23:16:06 +0800
parents 564e7f87ecc3
children 4ad38e223ccd
line wrap: on
line diff
--- a/channel.h	Thu Mar 21 23:35:07 2013 +0800
+++ b/channel.h	Sat Mar 23 23:16:06 2013 +0800
@@ -83,8 +83,10 @@
 
 	int flushing;
 
+	/* Used by client chansession to handle ~ escaping, NULL ignored otherwise */
+	void (*read_mangler)(struct Channel*, unsigned char* bytes, int *len);
+
 	const struct ChanType* type;
-
 };
 
 struct ChanType {