static void qmp_input_get_next_type(Visitor *v, int *kind, const int *qobjects,

                                    const char *name, Error **errp)

{

    QmpInputVisitor *qiv = to_qiv(v);

    QObject *qobj = qmp_input_get_object(qiv, name, false);



    if (!qobj) {

        error_setg(errp, QERR_MISSING_PARAMETER, name ? name : "null");

        return;

    }

    *kind = qobjects[qobject_type(qobj)];

}

static void qmp_input_get_next_type(Visitor *v, int *kind, const int *qobjects,

                                    const char *name, Error **errp)

{

    QmpInputVisitor *qiv = to_qiv(v);

    QObject *qobj = qmp_input_get_object(qiv, name, false);



    if (!qobj) {

        error_setg(errp, QERR_MISSING_PARAMETER, name ? name : "null");

        return;

    }

    *kind = qobjects[qobject_type(qobj)];

}

static void qmp_input_get_next_type(Visitor *v, int *kind, const int *qobjects,     *kind = qobjects[qobject_type(qobj)];
static void FUNC_0(Visitor *VAR_0, int *VAR_1, const int *VAR_2,

                                    const char *VAR_3, Error **VAR_4)

{

    QmpInputVisitor *qiv = to_qiv(VAR_0);

    QObject *qobj = qmp_input_get_object(qiv, VAR_3, false);



    if (!qobj) {

        error_setg(VAR_4, QERR_MISSING_PARAMETER, VAR_3 ? VAR_3 : "null");

        return;

    }

    *VAR_1 = VAR_2[qobject_type(qobj)];

}

static void FUNC_0(Visitor *VAR_0, int *VAR_1, const int *VAR_2,
const char *VAR_3, Error **VAR_4)
{ QmpInputVisitor *qiv = to_qiv(VAR_0); QObject *qobj = qmp_input_get_object(qiv, VAR_3, false); if (!qobj) { error_setg(VAR_4, QERR_MISSING_PARAMETER, VAR_3 ? VAR_3 : "null"); return; } *VAR_1 = VAR_2[qobject_type(qobj)]; }