Home
last modified time | relevance | path

Searched refs:qobject_type (Results 1 – 23 of 23) sorted by relevance

/openbmc/qemu/util/
H A Dkeyval.c154 if (qobject_type(old) != (value ? QTYPE_QSTRING : QTYPE_QDICT)) { in keyval_parse_put()
331 if (qobject_type(old_value) != qobject_type(ent->value)) { in keyval_do_merge()
335 } else if (qobject_type(ent->value) == QTYPE_QDICT) { in keyval_do_merge()
344 } else if (qobject_type(ent->value) == QTYPE_QLIST) { in keyval_do_merge()
355 assert(qobject_type(ent->value) == QTYPE_QSTRING); in keyval_do_merge()
H A Dqemu-option.c963 switch (qobject_type(obj)) { in qemu_opts_from_qdict_entry()
/openbmc/qemu/qapi/
H A Dqobject-input-visitor.c90 } else if (qobject_type(so->obj) == QTYPE_QDICT) { in full_name_nth()
138 if (qobject_type(qobj) == QTYPE_QDICT) { in qobject_input_try_get_object()
146 assert(qobject_type(qobj) == QTYPE_QLIST); in qobject_input_try_get_object()
190 switch (qobject_type(qobj)) { in qobject_input_get_keyval()
290 if (qobject_type(qobj) != QTYPE_QDICT) { in qobject_input_start_struct()
309 assert(qobject_type(tos->obj) == QTYPE_QDICT && tos->h); in qobject_input_end_struct()
328 if (qobject_type(qobj) != QTYPE_QLIST) { in qobject_input_start_list()
376 assert(qobject_type(tos->obj) == QTYPE_QLIST && !tos->h); in qobject_input_end_list()
392 (*obj)->type = qobject_type(qobj); in qobject_input_start_alternate()
625 if (qobject_type(qobj) != QTYPE_QNULL) { in qobject_input_type_null()
H A Dqobject-output-visitor.c93 switch (qobject_type(cur)) { in qobject_output_add_obj()
123 assert(qobject_type(value) == QTYPE_QDICT); in qobject_output_end_struct()
148 assert(qobject_type(value) == QTYPE_QLIST); in qobject_output_end_list()
H A Dqmp-dispatch.c59 if (qobject_type(arg_obj) != QTYPE_QSTRING) { in qmp_dispatch_check_obj()
71 if (qobject_type(arg_obj) != QTYPE_QDICT) { in qmp_dispatch_check_obj()
/openbmc/qemu/tests/unit/
H A Dcheck-qnum.c35 g_assert_cmpint(qobject_type(QOBJECT(qn)), ==, QTYPE_QNUM); in qnum_from_int_test()
50 g_assert(qobject_type(QOBJECT(qn)) == QTYPE_QNUM); in qnum_from_uint_test()
65 g_assert_cmpint(qobject_type(QOBJECT(qn)), ==, QTYPE_QNUM); in qnum_from_double_test()
H A Dcheck-qstring.c31 g_assert(qobject_type(QOBJECT(qstring)) == QTYPE_QSTRING); in qstring_from_str_test()
H A Dcheck-qnull.c31 g_assert(qobject_type(obj) == QTYPE_QNULL); in qnull_ref_test()
H A Dcheck-block-qdict.c550 g_assert(qobject_type(qdict_get(copy, "nothing")) == QTYPE_QNULL); in qdict_rename_keys_test()
577 g_assert(qobject_type(qdict_get(copy, "null")) == QTYPE_QNULL); in qdict_rename_keys_test()
599 g_assert(qobject_type(qdict_get(copy, "flag")) == QTYPE_QNULL); in qdict_rename_keys_test()
619 g_assert(qobject_type(qdict_get(copy, "nothing")) == QTYPE_QNULL); in qdict_rename_keys_test()
H A Dcheck-qlist.c30 g_assert(qobject_type(QOBJECT(qlist)) == QTYPE_QLIST); in qlist_new_test()
H A Dcheck-qlit.c77 g_assert(qobject_type(qdict_get(qdict, "baz")) == QTYPE_QNULL); in qobject_from_qlit_test()
H A Dcheck-qdict.c32 g_assert(qobject_type(QOBJECT(qdict)) == QTYPE_QDICT); in qdict_new_test()
H A Dtest-qobject-output-visitor.c450 g_assert_cmpint(qobject_type(visitor_get(data)), ==, QTYPE_QNULL); in test_visitor_out_alternate()
490 g_assert(qobject_type(nil) == QTYPE_QNULL); in test_visitor_out_null()
H A Dcheck-qjson.c943 g_assert(qobject_type(obj) == QTYPE_QNULL); in keyword_literal()
H A Dtest-qobject-input-visitor.c674 g_assert(qobject_type(QOBJECT(null)) == QTYPE_QNULL); in test_visitor_in_null()
/openbmc/qemu/include/qapi/qmp/
H A Dqobject.h124 static inline QType qobject_type(const QObject *obj) in qobject_type() function
137 if (obj && qobject_type(obj) == type) { in qobject_check_type()
/openbmc/qemu/qobject/
H A Dqlit.c66 if (!rhs || lhs->type != qobject_type(rhs)) { in qlit_equal_qobject()
H A Dqjson.c154 switch (qobject_type(obj)) { in to_json()
H A Dblock-qdict.c558 switch (qobject_type(ent->value)) { in qdict_crumple_for_keyval_qiv()
/openbmc/qemu/block/
H A Dqapi.c780 switch (qobject_type(obj)) { in dump_qobject()
819 QType type = qobject_type(entry->value); in dump_qlist()
835 QType type = qobject_type(entry->value); in dump_qdict()
861 switch (qobject_type(obj)) { in qobject_is_empty_dump()
/openbmc/qemu/system/
H A Dvl.c1797 qobject_type(prop) == QTYPE_QDICT && in qemu_apply_legacy_machine_options()
2233 switch (qobject_type(crumpled)) { in qemu_parse_config_group()
2466 if (smp && qobject_type(smp) == QTYPE_QDICT) { in qemu_process_sugar_options()
2468 if (cpus && qobject_type(cpus) == QTYPE_QSTRING) { in qemu_process_sugar_options()
/openbmc/qemu/
H A Dblockdev.c341 switch (qobject_type(entry->value)) { in parse_stats_intervals()
H A Dblock.c4716 switch (qobject_type(value)) { in bdrv_reopen_parse_file_or_backing()
4988 if (qobject_type(new) == QTYPE_QSTRING) { in bdrv_reopen_prepare()