Home
last modified time | relevance | path

Searched refs:qbool (Results 1 – 18 of 18) sorted by relevance

/openbmc/qemu/tests/unit/
H A Dcheck-qjson.c915 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 Dtest-qobject-output-visitor.c78 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 Dtest-qobject-input-visitor.c616 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 Dqlit.h25 bool qbool; member
41 { .type = QTYPE_QBOOL, .value.qbool = (val) }
/openbmc/qemu/qobject/
H A Dqlit.c72 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 Dqdict.c284 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 Dmeson.build2 'qlist.c', 'qbool.c', 'qlit.c', 'qjson.c', 'qobject.c',
/openbmc/qemu/tests/qapi-schema/
H A Dempty.out10 member qbool
H A Dcomments.out10 member qbool
H A Dalternate-array.out10 member qbool
H A Dinclude-simple.out10 member qbool
H A Dindented-expr.out10 member qbool
H A Dinclude-repetition.out10 member qbool
H A Ddoc-good.out10 member qbool
H A Dqapi-schema-test.out10 member qbool
/openbmc/qemu/qapi/
H A Dqobject-input-visitor.c490 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 Dobject.c1524 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 Dlibqtest.c1571 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()