/openbmc/qemu/util/ |
H A D | keyval.c | 154 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 D | qemu-option.c | 963 switch (qobject_type(obj)) { in qemu_opts_from_qdict_entry()
|
/openbmc/qemu/qapi/ |
H A D | qobject-input-visitor.c | 90 } 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 D | qobject-output-visitor.c | 93 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 D | qmp-dispatch.c | 59 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 D | check-qnum.c | 35 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 D | check-qstring.c | 31 g_assert(qobject_type(QOBJECT(qstring)) == QTYPE_QSTRING); in qstring_from_str_test()
|
H A D | check-qnull.c | 31 g_assert(qobject_type(obj) == QTYPE_QNULL); in qnull_ref_test()
|
H A D | check-block-qdict.c | 550 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 D | check-qlist.c | 30 g_assert(qobject_type(QOBJECT(qlist)) == QTYPE_QLIST); in qlist_new_test()
|
H A D | check-qlit.c | 77 g_assert(qobject_type(qdict_get(qdict, "baz")) == QTYPE_QNULL); in qobject_from_qlit_test()
|
H A D | check-qdict.c | 32 g_assert(qobject_type(QOBJECT(qdict)) == QTYPE_QDICT); in qdict_new_test()
|
H A D | test-qobject-output-visitor.c | 450 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 D | check-qjson.c | 943 g_assert(qobject_type(obj) == QTYPE_QNULL); in keyword_literal()
|
H A D | test-qobject-input-visitor.c | 674 g_assert(qobject_type(QOBJECT(null)) == QTYPE_QNULL); in test_visitor_in_null()
|
/openbmc/qemu/include/qapi/qmp/ |
H A D | qobject.h | 124 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 D | qlit.c | 66 if (!rhs || lhs->type != qobject_type(rhs)) { in qlit_equal_qobject()
|
H A D | qjson.c | 154 switch (qobject_type(obj)) { in to_json()
|
H A D | block-qdict.c | 558 switch (qobject_type(ent->value)) { in qdict_crumple_for_keyval_qiv()
|
/openbmc/qemu/block/ |
H A D | qapi.c | 780 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 D | vl.c | 1797 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 D | blockdev.c | 341 switch (qobject_type(entry->value)) { in parse_stats_intervals()
|
H A D | block.c | 4716 switch (qobject_type(value)) { in bdrv_reopen_parse_file_or_backing() 4988 if (qobject_type(new) == QTYPE_QSTRING) { in bdrv_reopen_prepare()
|