blob: ada33d757e7e4c068f7f3e5246ec51f841802724 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#ifndef NEOVIM_OS_JOB_DEFS_H
#define NEOVIM_OS_JOB_DEFS_H
#include "os/rstream_defs.h"
typedef struct job Job;
/// Function called when the job reads data
///
/// @param id The job id
/// @param data Some data associated with the job by the caller
/// @param target The `RStream` instance containing data to be read
/// @param from_stdout This is true if data was read from the job's stdout,
/// false if it came from stderr.
typedef void (*job_read_cb)(int id,
void *data,
RStream *target,
bool from_stdout);
#endif // NEOVIM_OS_JOB_DEFS_H
|