From 79a0a20889a553cbe5e7a23b9928e33d9354d4ee Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Thu, 22 Sep 2011 22:22:20 +0200 Subject: Add input support using readline --- src/io.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/io.h (limited to 'src/io.h') diff --git a/src/io.h b/src/io.h new file mode 100644 index 0000000..2f48df7 --- /dev/null +++ b/src/io.h @@ -0,0 +1,21 @@ +#ifndef _IO_H_ +#define _IO_H_ + +#include +#include + +struct cmumble_io { + GIOChannel *input_channel; + + struct termios term; +}; + +struct context; + +int +cmumble_io_init(struct context *ctx); + +int +cmumble_io_fini(struct context *ctx); + +#endif /* _IO_H_ */ -- cgit