/*
 * call-seq:
 *  xc.last_error -> string or nil
 *
 * Returns the last error that occured in _xc_ or +nil+, if no error
 * occured yet.
 */
static VALUE
c_last_error_get (VALUE self)
{
        RbXmmsClient *xmms = NULL;
        const char *s;

        Data_Get_Struct (self, RbXmmsClient, xmms);

        CHECK_DELETED (xmms);

        s = xmmsc_get_last_error (xmms->real);

        return s ? rb_str_new2 (s) : Qnil;
}