static void qmp_input_type_str(Visitor *v, char **obj, const char *name,

                               Error **errp)

{

    QmpInputVisitor *qiv = to_qiv(v);

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



    if (!qobj || qobject_type(qobj) != QTYPE_QSTRING) {

        error_setg(errp, QERR_INVALID_PARAMETER_TYPE, name ? name : "null",

                   "string");

        return;

    }



    *obj = g_strdup(qstring_get_str(qobject_to_qstring(qobj)));

}

static void qmp_input_type_str(Visitor *v, char **obj, const char *name,

                               Error **errp)

{

    QmpInputVisitor *qiv = to_qiv(v);

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



    if (!qobj || qobject_type(qobj) != QTYPE_QSTRING) {

        error_setg(errp, QERR_INVALID_PARAMETER_TYPE, name ? name : "null",

                   "string");

        return;

    }



    *obj = g_strdup(qstring_get_str(qobject_to_qstring(qobj)));

}

    QObject *qobj = qmp_input_get_object(qiv, name, true);     if (!qobj || qobject_type(qobj) != QTYPE_QSTRING) {     *obj = g_strdup(qstring_get_str(qobject_to_qstring(qobj)));
static void FUNC_0(Visitor *VAR_0, char **VAR_1, const char *VAR_2,

                               Error **VAR_3)

{

    QmpInputVisitor *qiv = to_qiv(VAR_0);

    QObject *qobj = qmp_input_get_object(qiv, VAR_2, true);



    if (!qobj || qobject_type(qobj) != QTYPE_QSTRING) {

        error_setg(VAR_3, QERR_INVALID_PARAMETER_TYPE, VAR_2 ? VAR_2 : "null",

                   "string");

        return;

    }



    *VAR_1 = g_strdup(qstring_get_str(qobject_to_qstring(qobj)));

}

static void FUNC_0(Visitor *VAR_0, char **VAR_1, const char *VAR_2,
Error **VAR_3)
{ QmpInputVisitor *qiv = to_qiv(VAR_0); QObject *qobj = qmp_input_get_object(qiv, VAR_2, true); if (!qobj || qobject_type(qobj) != QTYPE_QSTRING) { error_setg(VAR_3, QERR_INVALID_PARAMETER_TYPE, VAR_2 ? VAR_2 : "null",
"string"); return; } *VAR_1 = g_strdup(qstring_get_str(qobject_to_qstring(qobj))); }