aboutsummaryrefslogtreecommitdiff
path: root/src/os/rstream_defs.h
blob: 62c910d04110543de5d5d1f4854833b20a21ab12 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef NEOVIM_OS_RSTREAM_DEFS_H
#define NEOVIM_OS_RSTREAM_DEFS_H

typedef struct rstream RStream;

/// 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