mirror of
https://github.com/neovim/neovim.git
synced 2025-10-05 17:36:29 +00:00
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.
This commit is contained in:
@@ -164,7 +164,7 @@ static void signal_cb(uv_signal_t *handle, int signum)
|
||||
|
||||
Event event = {
|
||||
.source = signal_event_source(),
|
||||
.type = kEventSignal,
|
||||
.handler = signal_handle,
|
||||
.data = {
|
||||
.signum = signum
|
||||
}
|
||||
|
Reference in New Issue
Block a user