aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/rstream_defs.h
blob: 1d71160963286ffdeddfca77b792a68c71d1db4d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef NVIM_OS_RSTREAM_DEFS_H
#define NVIM_OS_RSTREAM_DEFS_H

#include <stdbool.h>

typedef struct rbuffer RBuffer;
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  // NVIM_OS_RSTREAM_DEFS_H