qemu/qobject/qdict.c
/**
 * qdict_is_equal(): Test whether the two QDicts are equal
 *
 * Here, equality means whether they contain the same keys and whether
 * the respective values are in turn equal (i.e. invoking
 * qobject_is_equal() on them yields true).
 */
Test whether the two QDicts are equal
Here, equality means whether they contain the same keys and whether
the respective values are in turn equal  on them yields true).
Test whether the two QDicts are equal Here equality means whether they contain the same keys and whether the respective values are in turn equal on them yields true ) .
bool qdict_is_equal(const QObject *x, const QObject *y)
{
    const QDict *dict_x = qobject_to(QDict, x);
    const QDict *dict_y = qobject_to(QDict, y);
    const QDictEntry *e;
    if (qdict_size(dict_x) != qdict_size(dict_y)) {
        return false;
    }
    for (e = qdict_first(dict_x); e; e = qdict_next(dict_x, e)) {
        const QObject *obj_x = qdict_entry_value(e);
        const QObject *obj_y = qdict_get(dict_y, qdict_entry_key(e));
        if (!qobject_is_equal(obj_x, obj_y)) {
            return false;
        }
    }
    return true;
}
bool qdict_is_equal ( const QObject * x , const QObject * y ) { const QDict * dict_x = qobject_to ( QDict , x ) ; const QDict * dict_y = qobject_to ( QDict , y ) ; const QDictEntry * e ; if ( qdict_size ( dict_x ) != qdict_size ( dict_y ) ) { return false ; } for ( e = qdict_first ( dict_x ) ; e ; e = qdict_next ( dict_x , e ) ) { const QObject * obj_x = qdict_entry_value ( e ) ; const QObject * obj_y = qdict_get ( dict_y , qdict_entry_key ( e ) ) ; if ( ! qobject_is_equal ( obj_x , obj_y ) ) { return false ; } } return true ; }
qdict_is_equal(): Test whether the two QDicts are equal
 Here, equality means whether they contain the same keys and whether
 the respective values are in turn equal (i.e.
qdict_is_equal () : Test whether the two QDicts are equal Here equality means whether they contain the same keys and whether the respective values are in turn equal ( i . e .