Sha256: 3d1844e6fd4128b8633e52f07d5c2ff63da19006e98b528cfce339a677583a63
Contents?: true
Size: 1.59 KB
Versions: 1
Compression:
Stored size: 1.59 KB
Contents
#ifndef BACKEND_H #define BACKEND_H #include "ruby.h" // backend interface function signatures // VALUE LibevBackend_accept(VALUE self, VALUE sock); // VALUE LibevBackend_accept_loop(VALUE self, VALUE sock); // VALUE LibevBackend_connect(VALUE self, VALUE sock, VALUE host, VALUE port); // VALUE LibevBackend_finalize(VALUE self); // VALUE LibevBackend_post_fork(VALUE self); // VALUE LibevBackend_read(VALUE self, VALUE io, VALUE str, VALUE length, VALUE to_eof); // VALUE LibevBackend_read_loop(VALUE self, VALUE io); // VALUE LibevBackend_sleep(VALUE self, VALUE duration); // VALUE LibevBackend_wait_io(VALUE self, VALUE io, VALUE write); // VALUE LibevBackend_wait_pid(VALUE self, VALUE pid); // VALUE LibevBackend_write(int argc, VALUE *argv, VALUE self); typedef VALUE (* backend_pending_count_t)(VALUE self); typedef VALUE (*backend_poll_t)(VALUE self, VALUE nowait, VALUE current_fiber, VALUE runqueue); typedef VALUE (* backend_ref_t)(VALUE self); typedef int (* backend_ref_count_t)(VALUE self); typedef void (* backend_reset_ref_count_t)(VALUE self); typedef VALUE (* backend_unref_t)(VALUE self); typedef VALUE (* backend_wait_event_t)(VALUE self, VALUE raise_on_exception); typedef VALUE (* backend_wakeup_t)(VALUE self); typedef struct backend_interface { backend_pending_count_t pending_count; backend_poll_t poll; backend_ref_t ref; backend_ref_count_t ref_count; backend_reset_ref_count_t reset_ref_count; backend_unref_t unref; backend_wait_event_t wait_event; backend_wakeup_t wakeup; } backend_interface_t; #endif /* BACKEND_H */
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
polyphony-0.45.5 | ext/polyphony/backend.h |