diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-07 14:21:42 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-07 15:03:05 -0300 |
commit | 4b063ea3adae8b47a16e229bcac53f5d86ad419d (patch) | |
tree | c4d5a55963d064bfb9e6b7bf4dd6b6d6fdd89e4b /src/os/event.c | |
parent | 39932212d8805c018a643734a7b66aedd304c45d (diff) | |
download | rneovim-4b063ea3adae8b47a16e229bcac53f5d86ad419d.tar.gz rneovim-4b063ea3adae8b47a16e229bcac53f5d86ad419d.tar.bz2 rneovim-4b063ea3adae8b47a16e229bcac53f5d86ad419d.zip |
Implement job control
- Add a job control module for spawning and controlling co-processes
- Add three vimscript functions for interfacing with the module
- Use dedicated header files for typedefs/structs in event/job modules
Diffstat (limited to 'src/os/event.c')
-rw-r--r-- | src/os/event.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/os/event.c b/src/os/event.c index a4ebdb15ff..9e95159dbc 100644 --- a/src/os/event.c +++ b/src/os/event.c @@ -8,6 +8,7 @@ #include "os/event.h" #include "os/input.h" #include "os/signal.h" +#include "os/job.h" #include "vim.h" #include "memory.h" #include "misc2.h" @@ -34,6 +35,8 @@ void event_init() // `event_poll` // Signals signal_init(); + // Jobs + job_init(); uv_timer_init(uv_default_loop(), &timer); // This prepare handle that actually starts the timer uv_prepare_init(uv_default_loop(), &timer_prepare); @@ -88,6 +91,9 @@ static void process_all_events() case kEventSignal: signal_handle(event); break; + case kEventJobActivity: + job_handle(event); + break; default: abort(); } |