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

                               Error **errp)

{

    QmpInputVisitor *qiv = to_qiv(v);

    QString *qstr = qobject_to_qstring(qmp_input_get_object(qiv, name, true));



    if (!qstr) {


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

                   "string");

        return;

    }



    *obj = g_strdup(qstring_get_str(qstr));

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

                               Error **errp)

{

    QmpInputVisitor *qiv = to_qiv(v);

    QString *qstr = qobject_to_qstring(qmp_input_get_object(qiv, name, true));



    if (!qstr) {


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

                   "string");

        return;

    }



    *obj = g_strdup(qstring_get_str(qstr));

}
static void FUNC_0(Visitor *VAR_0, const char *VAR_1, char **VAR_2,

                               Error **VAR_3)

{

    QmpInputVisitor *qiv = to_qiv(VAR_0);

    QString *qstr = qobject_to_qstring(qmp_input_get_object(qiv, VAR_1, true));



    if (!qstr) {


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

                   "string");

        return;

    }



    *VAR_2 = g_strdup(qstring_get_str(qstr));

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