summaryrefslogtreecommitdiffhomepage
path: root/channel.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2013-03-23 23:16:06 +0800
committerMatt Johnston <matt@ucc.asn.au>2013-03-23 23:16:06 +0800
commit5996c3824c52425c2d4f3d7cb69f0c9fa81a33b8 (patch)
treee3b73be4387ad1f8b8e23b6b4d0d6a81081a36c6 /channel.h
parentc172fb3b326ec796a1e81656548653f188a8d62c (diff)
Add ~. and ~^Z handling to exit/suspend dbclient
Diffstat (limited to 'channel.h')
-rw-r--r--channel.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/channel.h b/channel.h
index 950d4b3..7146697 100644
--- a/channel.h
+++ b/channel.h
@@ -83,8 +83,10 @@ struct Channel {
int flushing;
- const struct ChanType* type;
+ /* 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 {