diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-09-22 22:22:20 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-09-23 09:58:11 +0200 |
commit | 79a0a20889a553cbe5e7a23b9928e33d9354d4ee (patch) | |
tree | 89d368deb55419c4ad09165d93e9ae8e181172cb /src/io.h | |
parent | d92a0838b7d9179989bd76caac2ea96cf5c1885a (diff) | |
download | cmumble-79a0a20889a553cbe5e7a23b9928e33d9354d4ee.tar.gz cmumble-79a0a20889a553cbe5e7a23b9928e33d9354d4ee.tar.bz2 cmumble-79a0a20889a553cbe5e7a23b9928e33d9354d4ee.zip |
Add input support using readline
Diffstat (limited to 'src/io.h')
-rw-r--r-- | src/io.h | 21 |
1 files changed, 21 insertions, 0 deletions
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 <glib.h> +#include <termios.h> + +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_ */ |