Module: GLib::IOChannelSource
- Defined in:
- ext/glib2/rbglib_iochannel.c
Instance Method Summary collapse
-
#set_callback(*args) ⇒ Object
Don’t need this guint g_io_add_watch_full (GIOChannel *channel, gint priority, GIOCondition condition, GIOFunc func, gpointer user_data, GDestroyNotify notify);.
Instance Method Details
#set_callback(*args) ⇒ Object
Don’t need this guint g_io_add_watch_full (GIOChannel *channel,
gint priority,
GIOCondition condition,
GIOFunc func,
gpointer user_data,
GDestroyNotify notify);
550 551 552 553 554 555 556 557 558 559 560 561 562 |
# File 'ext/glib2/rbglib_iochannel.c', line 550
static VALUE
rg_io_channel_source_set_callback(int argc, VALUE *argv, VALUE self)
{
VALUE rb_callback;
rb_scan_args(argc, argv, "&", &rb_callback);
G_RELATIVE(self, rb_callback);
g_source_set_callback(RVAL2BOXED(self, G_TYPE_SOURCE),
(GSourceFunc)io_func,
(gpointer)rb_callback,
(GDestroyNotify)NULL);
return self;
}
|