char *object_property_get_str(Object *obj, const char *name,

                              Error **errp)

{

    QObject *ret = object_property_get_qobject(obj, name, errp);

    QString *qstring;

    char *retval;



    if (!ret) {

        return NULL;

    }

    qstring = qobject_to_qstring(ret);

    if (!qstring) {

        error_setg(errp, QERR_INVALID_PARAMETER_TYPE, name, "string");

        retval = NULL;

    } else {

        retval = g_strdup(qstring_get_str(qstring));

    }



    QDECREF(qstring);

    return retval;

}

char *object_property_get_str(Object *obj, const char *name,

                              Error **errp)

{

    QObject *ret = object_property_get_qobject(obj, name, errp);

    QString *qstring;

    char *retval;



    if (!ret) {

        return NULL;

    }

    qstring = qobject_to_qstring(ret);

    if (!qstring) {

        error_setg(errp, QERR_INVALID_PARAMETER_TYPE, name, "string");

        retval = NULL;

    } else {

        retval = g_strdup(qstring_get_str(qstring));

    }



    QDECREF(qstring);

    return retval;

}

    QDECREF(qstring);
char *FUNC_0(Object *VAR_0, const char *VAR_1,

                              Error **VAR_2)

{

    QObject *ret = object_property_get_qobject(VAR_0, VAR_1, VAR_2);

    QString *qstring;

    char *VAR_3;



    if (!ret) {

        return NULL;

    }

    qstring = qobject_to_qstring(ret);

    if (!qstring) {

        error_setg(VAR_2, QERR_INVALID_PARAMETER_TYPE, VAR_1, "string");

        VAR_3 = NULL;

    } else {

        VAR_3 = g_strdup(qstring_get_str(qstring));

    }



    QDECREF(qstring);

    return VAR_3;

}

char *FUNC_0(Object *VAR_0, const char *VAR_1,
Error **VAR_2)
{ QObject *ret = object_property_get_qobject(VAR_0, VAR_1, VAR_2); QString *qstring; char *VAR_3; if (!ret) { return NULL; } qstring = qobject_to_qstring(ret); if (!qstring) { error_setg(VAR_2, QERR_INVALID_PARAMETER_TYPE, VAR_1, "string"); VAR_3 = NULL; } else { VAR_3 = g_strdup(qstring_get_str(qstring)); } QDECREF(qstring); return VAR_3; }