Searched refs:qbool (Results 1 – 18 of 18) sorted by relevance
/openbmc/qemu/tests/unit/ |
H A D | check-qjson.c | 915 QBool *qbool; in keyword_literal() local 920 qbool = qobject_to(QBool, obj); in keyword_literal() 921 g_assert(qbool); in keyword_literal() 922 g_assert(qbool_get_bool(qbool) == true); in keyword_literal() 928 qobject_unref(qbool); in keyword_literal() 931 qbool = qobject_to(QBool, obj); in keyword_literal() 932 g_assert(qbool); in keyword_literal() 933 g_assert(qbool_get_bool(qbool) == false); in keyword_literal() 939 qobject_unref(qbool); in keyword_literal() 965 QBool *qbool; in interpolation_valid() local [all …]
|
H A D | test-qobject-output-visitor.c | 78 QBool *qbool; in test_visitor_out_bool() local 82 qbool = qobject_to(QBool, visitor_get(data)); in test_visitor_out_bool() 83 g_assert(qbool); in test_visitor_out_bool() 84 g_assert(qbool_get_bool(qbool) == value); in test_visitor_out_bool() 298 QBool *qbool; in test_visitor_out_any() local 325 qbool = qobject_to(QBool, qdict_get(qdict, "boolean")); in test_visitor_out_any() 326 g_assert(qbool); in test_visitor_out_any() 327 g_assert(qbool_get_bool(qbool) == true); in test_visitor_out_any()
|
H A D | test-qobject-input-visitor.c | 616 QBool *qbool; in test_visitor_in_any() local 642 qbool = qobject_to(QBool, qobj); in test_visitor_in_any() 643 g_assert(qbool); in test_visitor_in_any() 644 g_assert(qbool_get_bool(qbool) == true); in test_visitor_in_any()
|
/openbmc/qemu/include/qapi/qmp/ |
H A D | qlit.h | 25 bool qbool; member 41 { .type = QTYPE_QBOOL, .value.qbool = (val) }
|
/openbmc/qemu/qobject/ |
H A D | qlit.c | 72 return lhs->value.qbool == qbool_get_bool(qobject_to(QBool, rhs)); in qlit_equal_qobject() 119 return QOBJECT(qbool_from_bool(qlit->value.qbool)); in qobject_from_qlit()
|
H A D | qdict.c | 284 QBool *qbool = qobject_to(QBool, qdict_get(qdict, key)); in qdict_get_try_bool() local 286 return qbool ? qbool_get_bool(qbool) : def_value; in qdict_get_try_bool()
|
H A D | meson.build | 2 'qlist.c', 'qbool.c', 'qlit.c', 'qjson.c', 'qobject.c',
|
/openbmc/qemu/tests/qapi-schema/ |
H A D | empty.out | 10 member qbool
|
H A D | comments.out | 10 member qbool
|
H A D | alternate-array.out | 10 member qbool
|
H A D | include-simple.out | 10 member qbool
|
H A D | indented-expr.out | 10 member qbool
|
H A D | include-repetition.out | 10 member qbool
|
H A D | doc-good.out | 10 member qbool
|
H A D | qapi-schema-test.out | 10 member qbool
|
/openbmc/qemu/qapi/ |
H A D | qobject-input-visitor.c | 490 QBool *qbool; in qobject_input_type_bool() local 495 qbool = qobject_to(QBool, qobj); in qobject_input_type_bool() 496 if (!qbool) { in qobject_input_type_bool() 502 *obj = qbool_get_bool(qbool); in qobject_input_type_bool()
|
/openbmc/qemu/qom/ |
H A D | object.c | 1524 QBool *qbool = qbool_from_bool(value); in object_property_set_bool() local 1525 bool ok = object_property_set_qobject(obj, name, QOBJECT(qbool), errp); in object_property_set_bool() 1527 qobject_unref(qbool); in object_property_set_bool() 1535 QBool *qbool; in object_property_get_bool() local 1541 qbool = qobject_to(QBool, ret); in object_property_get_bool() 1542 if (!qbool) { in object_property_get_bool() 1547 retval = qbool_get_bool(qbool); in object_property_get_bool()
|
/openbmc/qemu/tests/qtest/ |
H A D | libqtest.c | 1571 QBool *qbool; in qtest_get_cpu_models() local 1609 qbool = qobject_to(QBool, qobj); in qtest_get_cpu_models() 1610 g_assert(qbool); in qtest_get_cpu_models() 1611 cpus[idx].deprecated = qbool_get_bool(qbool); in qtest_get_cpu_models()
|