Module: GLib::IOChannelSource
- Defined in:
- ext/glib2/rbglib_iochannel.c
Instance Method Summary collapse
-
#set_callback ⇒ 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 ⇒ Object
Don’t need this guint g_io_add_watch_full (GIOChannel *channel,
gint priority,
GIOCondition condition,
GIOFunc func,
gpointer user_data,
GDestroyNotify notify);
543 544 545 546 547 548 549 550 551 552 553 554 555 |
# File 'ext/glib2/rbglib_iochannel.c', line 543
static VALUE
rg_io_channel_source_set_callback(VALUE self)
{
VALUE callback;
callback = rb_block_proc();
G_RELATIVE(self, callback);
g_source_set_callback(RVAL2BOXED(self, G_TYPE_SOURCE),
(GSourceFunc)io_func,
(gpointer)callback,
(GDestroyNotify)NULL);
return self;
}
|