Lines Matching full:parent
63 /* Check if @parent is present in the parent chain of @type */
64 static bool qom_has_parent(QDict *index, const char *type, const char *parent) in qom_has_parent() argument
68 const char *p = d && qdict_haskey(d, "parent") ? in qom_has_parent()
69 qdict_get_str(d, "parent") : in qom_has_parent()
72 if (!strcmp(type, parent)) { in qom_has_parent()
143 * Ensure all entries returned by qom-list-types implements=<parent>
144 * have <parent> as a parent.
146 static void test_qom_list_parents(QTestState *qts, const char *parent) in test_qom_list_parents() argument
152 types = qom_list_types(qts, parent, true); in test_qom_list_parents()
159 g_assert(qom_has_parent(index, name, parent)); in test_qom_list_parents()
291 * on the parent type chain. in test_abstract_interfaces()