aboutsummaryrefslogtreecommitdiff
path: root/src/os/event.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-05-07 17:59:57 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-05-12 19:28:30 -0300
commitf9c06e47c4c672fb5f07968dd2d536fa41c1f007 (patch)
tree5159e70c844b2679bbbe221101e3160971f9d525 /src/os/event.c
parentb3268d071277c8967b3e3ecb60430718e1f36472 (diff)
downloadrneovim-f9c06e47c4c672fb5f07968dd2d536fa41c1f007.tar.gz
rneovim-f9c06e47c4c672fb5f07968dd2d536fa41c1f007.tar.bz2
rneovim-f9c06e47c4c672fb5f07968dd2d536fa41c1f007.zip
Add channel module
- Add channel module that exposes the API over arbitrary streams - Add `xmemdup` for duplicating memory chunks - Make job exit callback optional
Diffstat (limited to 'src/os/event.c')
-rw-r--r--src/os/event.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/os/event.c b/src/os/event.c
index 9c9c9c8967..a4b9d1ac5a 100644
--- a/src/os/event.c
+++ b/src/os/event.c
@@ -7,6 +7,7 @@
#include "lib/klist.h"
#include "os/event.h"
#include "os/input.h"
+#include "os/channel.h"
#include "os/signal.h"
#include "os/rstream.h"
#include "os/job.h"
@@ -36,6 +37,8 @@ void event_init()
signal_init();
// Jobs
job_init();
+ // Channels
+ channel_init();
uv_timer_init(uv_default_loop(), &timer);
// This prepare handle that actually starts the timer
uv_prepare_init(uv_default_loop(), &timer_prepare);
@@ -43,6 +46,7 @@ void event_init()
void event_teardown()
{
+ channel_teardown();
job_teardown();
}