Sha256: a47c60cbdfeeaa7d5c44fa83445f9e5a6e7748c91a65e093bbc0dd1a05f0101d
Contents?: true
Size: 689 Bytes
Versions: 2
Compression:
Stored size: 689 Bytes
Contents
/* * Copyright (C) 2007 Tony Arcieri * You may redistribute this under the terms of the Ruby license. * See LICENSE for details */ #ifndef REV_H #define REV_H #include "ruby.h" struct Rev_Event { /* These values are used to extract events from libev callbacks */ VALUE watcher; int revents; }; struct Rev_Loop { struct ev_loop *ev_loop; int events_received; int eventbuf_size; struct Rev_Event *eventbuf; }; struct Rev_Watcher { union { struct ev_io ev_io; struct ev_timer ev_timer; } event_types; int enabled; VALUE loop; void (*dispatch_callback)(VALUE self, int revents); }; void Rev_Loop_process_event(VALUE watcher, int revents); #endif
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rev-0.1.2 | ext/rev/rev.h |
rev-0.1.3 | ext/rev/rev.h |