/* * Method: index * * Gets the index from the element. * * Returns: a Gst::Index or nil when no index was set on the element. */ static VALUE rg_index(VALUE self) { GstIndex *index = gst_element_get_index(SELF(self)); return index != NULL ? RGST_INDEX_NEW(index) : Qnil; }
static gboolean __resolver (GstIndex * index, GstObject * writer, gchar ** writer_string, gpointer user_data) { VALUE block = (VALUE) user_data; return RVAL2CBOOL (rb_funcall (block, 2, RGST_INDEX_NEW (index), RGST_OBJECT_NEW (writer))); }