diff options
Diffstat (limited to 'src/nvim/os/rstream_defs.h')
-rw-r--r-- | src/nvim/os/rstream_defs.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/nvim/os/rstream_defs.h b/src/nvim/os/rstream_defs.h new file mode 100644 index 0000000000..3d1dbec34f --- /dev/null +++ b/src/nvim/os/rstream_defs.h @@ -0,0 +1,16 @@ +#ifndef NEOVIM_OS_RSTREAM_DEFS_H +#define NEOVIM_OS_RSTREAM_DEFS_H + +#include <stdbool.h> + +typedef struct rstream RStream; + +/// Type of function called when the RStream receives data +/// +/// @param rstream The RStream instance +/// @param data State associated with the RStream instance +/// @param eof If the stream reached EOF. +typedef void (*rstream_cb)(RStream *rstream, void *data, bool eof); + +#endif // NEOVIM_OS_RSTREAM_DEFS_H + |