diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-07 17:59:57 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-05-12 19:28:30 -0300 |
commit | f9c06e47c4c672fb5f07968dd2d536fa41c1f007 (patch) | |
tree | 5159e70c844b2679bbbe221101e3160971f9d525 /src/os/event.c | |
parent | b3268d071277c8967b3e3ecb60430718e1f36472 (diff) | |
download | rneovim-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.c | 4 |
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(); } |