/* call-seq:
 * xc.coll_get(name, [ns])
 *
 * Returns a result containing an Xmms::Collection object referencing the
 * collection named _name_. The namespace _ns_ is searched or all namespaces if
 * unspecified.
 */
static VALUE
c_coll_get (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_get (xmms->real, StringValuePtr (name),
                                      XMMS_COLLECTION_NS_ALL);
        else
                res = xmmsc_coll_get (xmms->real, StringValuePtr (name),
                                      StringValuePtr (ns));

        METHOD_HANDLER_FOOTER
}