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:
Thiago de Arruda
2014-10-20 08:44:46 -03:00
parent cf6f60ce4d
commit 77cc078c41
5 changed files with 9 additions and 25 deletions

View File

@@ -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
}