Home
last modified time | relevance | path

Searched refs:qobj (Results 1 – 10 of 10) sorted by relevance

/openbmc/qemu/qapi/
H A Dqobject-input-visitor.c124 QObject *qobj; in qobject_input_try_get_object() local
135 qobj = tos->obj; in qobject_input_try_get_object()
136 assert(qobj); in qobject_input_try_get_object()
138 if (qobject_type(qobj) == QTYPE_QDICT) { in qobject_input_try_get_object()
140 ret = qdict_get(qobject_to(QDict, qobj), name); in qobject_input_try_get_object()
146 assert(qobject_type(qobj) == QTYPE_QLIST); in qobject_input_try_get_object()
180 QObject *qobj; in qobject_input_get_keyval() local
183 qobj = qobject_input_get_object(qiv, name, true, errp); in qobject_input_get_keyval()
184 if (!qobj) { in qobject_input_get_keyval()
188 qstr = qobject_to(QString, qobj); in qobject_input_get_keyval()
[all …]
/openbmc/qemu/tests/unit/
H A Dcheck-qlit.c56 QObject *qobj = make_qobject(); in qlit_equal_qobject_test() local
58 g_assert(qlit_equal_qobject(&qlit, qobj)); in qlit_equal_qobject_test()
60 g_assert(!qlit_equal_qobject(&qlit_foo, qobj)); in qlit_equal_qobject_test()
62 qdict_put(qobject_to(QDict, qobj), "bee", qlist_new()); in qlit_equal_qobject_test()
63 g_assert(!qlit_equal_qobject(&qlit, qobj)); in qlit_equal_qobject_test()
65 qobject_unref(qobj); in qlit_equal_qobject_test()
70 QObject *obj, *qobj = qobject_from_qlit(&qlit); in qobject_from_qlit_test() local
74 qdict = qobject_to(QDict, qobj); in qobject_from_qlit_test()
90 qobject_unref(qobj); in qobject_from_qlit_test()
H A Dtest-qobject-output-visitor.c296 QObject *qobj; in test_visitor_out_any() local
303 qobj = QOBJECT(qnum_from_int(-42)); in test_visitor_out_any()
304 visit_type_any(data->ov, NULL, &qobj, &error_abort); in test_visitor_out_any()
309 qobject_unref(qobj); in test_visitor_out_any()
316 qobj = QOBJECT(qdict); in test_visitor_out_any()
317 visit_type_any(data->ov, NULL, &qobj, &error_abort); in test_visitor_out_any()
318 qobject_unref(qobj); in test_visitor_out_any()
H A Dtest-qobject-input-visitor.c619 QObject *qobj; in test_visitor_in_any() local
634 qobj = qdict_get(qdict, "integer"); in test_visitor_in_any()
635 g_assert(qobj); in test_visitor_in_any()
636 qnum = qobject_to(QNum, qobj); in test_visitor_in_any()
640 qobj = qdict_get(qdict, "boolean"); in test_visitor_in_any()
641 g_assert(qobj); in test_visitor_in_any()
642 qbool = qobject_to(QBool, qobj); in test_visitor_in_any()
645 qobj = qdict_get(qdict, "string"); in test_visitor_in_any()
646 g_assert(qobj); in test_visitor_in_any()
647 qstring = qobject_to(QString, qobj); in test_visitor_in_any()
H A Dcheck-qjson.c968 QObject *qobj; in interpolation_valid() local
1029 qobj = qobject_from_jsonf_nofail("%p", value_p); in interpolation_valid()
1030 g_assert(qobj == value_p); in interpolation_valid()
/openbmc/qemu/hw/uefi/
H A Dvar-service-json.c155 QObject *qobj = NULL; in uefi_vars_to_json() local
159 v = qobject_output_visitor_new(&qobj); in uefi_vars_to_json()
161 visit_complete(v, &qobj); in uefi_vars_to_json()
166 gstr = qobject_to_json_pretty(qobj, true); in uefi_vars_to_json()
167 qobject_unref(qobj); in uefi_vars_to_json()
214 QObject *qobj; in uefi_vars_json_load() local
244 qobj = qobject_from_json(str, errp); in uefi_vars_json_load()
245 v = qobject_input_visitor_new(qobj); in uefi_vars_json_load()
255 qobject_unref(qobj); in uefi_vars_json_load()
/openbmc/qemu/tests/qtest/
H A Dreadconfig-test.c184 QObject *qobj; in test_docs_config_ich9() local
190 qobj = qdict_get(resp, "return"); in test_docs_config_ich9()
191 test_object_available(qobj, "ehci", "ich9-usb-ehci1"); in test_docs_config_ich9()
192 test_object_available(qobj, "uhci-1", "ich9-usb-uhci1"); in test_docs_config_ich9()
193 test_object_available(qobj, "uhci-2", "ich9-usb-uhci2"); in test_docs_config_ich9()
194 test_object_available(qobj, "uhci-3", "ich9-usb-uhci3"); in test_docs_config_ich9()
235 QObject *qobj; in test_docs_q35() local
283 qobj = qdict_get(resp, "return"); in test_docs_q35()
287 test_object_available(qobj, devices[i].name, devices[i].type); in test_docs_q35()
H A Dlibqmp.c141 QObject *qobj; in _qmp_fd_vsend_fds() local
148 qobj = qobject_from_vjsonf_nofail(fmt, ap); in _qmp_fd_vsend_fds()
151 if (qobj) { in _qmp_fd_vsend_fds()
153 GString *str = qobject_to_json(qobj); in _qmp_fd_vsend_fds()
176 qobject_unref(qobj); in _qmp_fd_vsend_fds()
H A Dlibqtest.c1041 QObject *qobj; in qtest_qom_has_concrete_type()
1073 qobj = qdict_get(devinfo, "name"); in qtest_has_accel()
1074 g_assert(qobj); in qtest_has_accel()
1075 qstr = qobject_to(QString, qobj); in qtest_has_accel()
1666 QObject *qobj; in qtest_get_machines()
1699 qobj = qdict_get(minfo, "name"); in qtest_get_cpu_models()
1700 g_assert(qobj); in qtest_get_cpu_models() local
1701 qstr = qobject_to(QString, qobj); in qtest_get_cpu_models()
1705 qobj = qdict_get(minfo, "alias"); in qtest_get_cpu_models()
1706 if (qobj) { /* Th in qtest_get_cpu_models()
1013 QObject *qobj; qtest_qom_has_concrete_type() local
1637 QObject *qobj; qtest_get_machines() local
[all...]
/openbmc/qemu/qobject/
H A Dblock-qdict.c695 QObject *qobj; in qdict_rename_keys() local
705 qobj = qdict_get(qdict, renames->from); in qdict_rename_keys()
706 qdict_put_obj(qdict, renames->to, qobject_ref(qobj)); in qdict_rename_keys()