/*
 * call-seq:
 * xc.coll_remove(name, [ns]) -> result
 *
 * Remove the collection named _name_ from the media library. The collection is
 * removed from the namespace _ns_ or all namespaces if unspecified.
 */
static VALUE
c_coll_remove (int argc, VALUE *argv, VALUE self)
{
        VALUE name, ns = Qnil;
        METHOD_HANDLER_HEADER

        rb_scan_args (argc, argv, "11", &name, &ns);

        if (NIL_P (ns))
                res = xmmsc_coll_remove (xmms->real, StringValuePtr (name),
                                         XMMS_COLLECTION_NS_ALL);
        else
                res = xmmsc_coll_remove (xmms->real, StringValuePtr (name),
                                         StringValuePtr (ns));

        METHOD_HANDLER_FOOTER
}