void error_set(Error **errp, const char *fmt, ...)

{

    Error *err;

    va_list ap;



    if (errp == NULL) {

        return;

    }

    assert(*errp == NULL);



    err = g_malloc0(sizeof(*err));



    va_start(ap, fmt);

    err->obj = qobject_to_qdict(qobject_from_jsonv(fmt, &ap));

    va_end(ap);

    err->msg = qerror_format(fmt, err->obj);



    *errp = err;

}

void error_set(Error **errp, const char *fmt, ...)

{

    Error *err;

    va_list ap;



    if (errp == NULL) {

        return;

    }

    assert(*errp == NULL);



    err = g_malloc0(sizeof(*err));



    va_start(ap, fmt);

    err->obj = qobject_to_qdict(qobject_from_jsonv(fmt, &ap));

    va_end(ap);

    err->msg = qerror_format(fmt, err->obj);



    *errp = err;

}

void FUNC_0(Error **VAR_0, const char *VAR_1, ...)

{

    Error *err;

    va_list ap;



    if (VAR_0 == NULL) {

        return;

    }

    assert(*VAR_0 == NULL);



    err = g_malloc0(sizeof(*err));



    va_start(ap, VAR_1);

    err->obj = qobject_to_qdict(qobject_from_jsonv(VAR_1, &ap));

    va_end(ap);

    err->msg = qerror_format(VAR_1, err->obj);



    *VAR_0 = err;

}

void FUNC_0(Error **VAR_0, const char *VAR_1, ...)
{ Error *err; va_list ap; if (VAR_0 == NULL) { return; } assert(*VAR_0 == NULL); err = g_malloc0(sizeof(*err)); va_start(ap, VAR_1); err->obj = qobject_to_qdict(qobject_from_jsonv(VAR_1, &ap)); va_end(ap); err->msg = qerror_format(VAR_1, err->obj); *VAR_0 = err; }