diff options
author | ZyX <kp-pav@yandex.ru> | 2016-06-04 22:48:29 +0300 |
---|---|---|
committer | ZyX <kp-pav@yandex.ru> | 2016-06-23 21:17:51 +0300 |
commit | 516b7071cafd831ea563b73f6953232f5674cd0c (patch) | |
tree | 1b90a366a70f24fd95d76a506a1e372b0bd778d3 /src/nvim/file.h | |
parent | 11dda658d6f0c4470a54012df71be73b4e9a5f57 (diff) | |
download | rneovim-516b7071cafd831ea563b73f6953232f5674cd0c.tar.gz rneovim-516b7071cafd831ea563b73f6953232f5674cd0c.tar.bz2 rneovim-516b7071cafd831ea563b73f6953232f5674cd0c.zip |
file: Add buffered reading and writing
Still no busted tests. Not tested without HAVE_PREADV.
Diffstat (limited to 'src/nvim/file.h')
-rw-r--r-- | src/nvim/file.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/file.h b/src/nvim/file.h index 0aa98e0def..c6def673c2 100644 --- a/src/nvim/file.h +++ b/src/nvim/file.h @@ -6,10 +6,14 @@ #include <fcntl.h> #include "nvim/func_attr.h" +#include "nvim/rbuffer.h" /// Structure used to read from/write to file typedef struct { int fd; ///< File descriptor. + int _error; ///< Error code for use with RBuffer callbacks or zero. + RBuffer *rv; ///< Read or write buffer. + bool wr; ///< True if file is in write mode. bool eof; ///< True if end of file was encountered. } FileDescriptor; |