aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/rstream.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-10-20 08:44:46 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-10-21 11:05:49 -0300
commit77cc078c41c4348a3649cc366a262e6fab43980b (patch)
tree80e6df8ed06db3388beeff54f27e2c1beef511cd /src/nvim/os/rstream.c
parentcf6f60ce4dc376570e8d71facea76299ca951604 (diff)
downloadrneovim-77cc078c41c4348a3649cc366a262e6fab43980b.tar.gz
rneovim-77cc078c41c4348a3649cc366a262e6fab43980b.tar.bz2
rneovim-77cc078c41c4348a3649cc366a262e6fab43980b.zip
event: Remove EventType enum and pass a callback to `event_push`
This approach is more flexible because we don't need to support a fixed set of "event types", any module can push events to be handled in main loop by simply passing a callback to the Event structure.
Diffstat (limited to 'src/nvim/os/rstream.c')
-rw-r--r--src/nvim/os/rstream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/os/rstream.c b/src/nvim/os/rstream.c
index 8f1c30de50..b95098cc52 100644
--- a/src/nvim/os/rstream.c
+++ b/src/nvim/os/rstream.c
@@ -430,7 +430,7 @@ static void emit_read_event(RStream *rstream, bool eof)
{
Event event = {
.source = rstream_event_source(rstream),
- .type = kEventRStreamData,
+ .handler = rstream_read_event,
.data.rstream = {
.ptr = rstream,
.eof = eof