/* call-seq:
 * xc.playlist([name]) -> p
 *
 * Shortcut for Xmms::Playlist#new(xc, [name]). Creates a new Xmms::Playlist
 * object tied to the current Xmms::Client instance. _name_ is is the name of
 * the playlist and the active playlist will be used if it is not specified.
 * Raises PlaylistError if the playlist name is invalid.
 */
static VALUE
c_playlist (int argc, VALUE *argv, VALUE self)
{
        VALUE args[2] = {self, Qnil};

        rb_scan_args (argc, argv, "01", &args[1]);

        return rb_class_new_instance (2, args, cPlaylist);
}