/*
 * call-seq:
 *  xc.plugin_list -> result
 *
 * Retrieves an array containing a hash of information for each plugin.
 */
static VALUE
c_plugin_list (int argc, VALUE *argv, VALUE self)
{
        VALUE type = Qnil;

        rb_scan_args (argc, argv, "01", &type);

        if (NIL_P (type))
                type = INT2FIX (XMMS_PLUGIN_TYPE_ALL);

        METHOD_ADD_HANDLER_UINT (plugin_list, type);
}