Home
last modified time | relevance | path

Searched refs:QBool (Results 1 – 19 of 19) sorted by relevance

/openbmc/qemu/qobject/
H A Dqbool.c23 QBool *qbool_from_bool(bool value) in qbool_from_bool()
25 QBool *qb; in qbool_from_bool()
37 bool qbool_get_bool(const QBool *qb) in qbool_get_bool()
47 return qobject_to(QBool, x)->value == qobject_to(QBool, y)->value; in qbool_is_equal()
57 g_free(qobject_to(QBool, obj)); in qbool_destroy_obj()
60 void qbool_unref(QBool *q) in qbool_unref()
H A Dqdict.c222 return qbool_get_bool(qobject_to(QBool, qdict_get(qdict, key))); in qdict_get_bool()
284 QBool *qbool = qobject_to(QBool, qdict_get(qdict, key)); in qdict_get_try_bool()
H A Dqjson.c211 QBool *val = qobject_to(QBool, obj); in to_json()
H A Dqobject.c25 offsetof(QBool, base) != 0,
H A Dqlit.c72 return lhs->value.qbool == qbool_get_bool(qobject_to(QBool, rhs)); in qlit_equal_qobject()
H A Dblock-qdict.c570 s = qbool_get_bool(qobject_to(QBool, ent->value)) in qdict_crumple_for_keyval_qiv()
/openbmc/qemu/include/qapi/qmp/
H A Dqbool.h19 struct QBool { struct
24 void qbool_unref(QBool *q); argument
26 G_DEFINE_AUTOPTR_CLEANUP_FUNC(QBool, qbool_unref)
28 QBool *qbool_from_bool(bool value);
29 bool qbool_get_bool(const QBool *qb);
/openbmc/qemu/tests/unit/
H A Dcheck-qobject.c111 g_autoptr(QBool) btrue_0 = qbool_from_bool(true); in qobject_is_equal_bool_test()
112 g_autoptr(QBool) btrue_1 = qbool_from_bool(true); in qobject_is_equal_bool_test()
113 g_autoptr(QBool) bfalse_0 = qbool_from_bool(false); in qobject_is_equal_bool_test()
114 g_autoptr(QBool) bfalse_1 = qbool_from_bool(false); in qobject_is_equal_bool_test()
251 g_autoptr(QBool) bfalse = qbool_from_bool(false); in qobject_is_equal_conversion_test()
H A Dtest-qobject-output-visitor.c78 QBool *qbool; in test_visitor_out_bool()
82 qbool = qobject_to(QBool, visitor_get(data)); in test_visitor_out_bool()
298 QBool *qbool; in test_visitor_out_any()
325 qbool = qobject_to(QBool, qdict_get(qdict, "boolean")); in test_visitor_out_any()
587 QBool *qvalue = qobject_to(QBool, qlist_entry_obj(e)); in test_visitor_out_list_struct()
H A Dcheck-qjson.c915 QBool *qbool; in keyword_literal()
920 qbool = qobject_to(QBool, obj); in keyword_literal()
931 qbool = qobject_to(QBool, obj); in keyword_literal()
965 QBool *qbool; in interpolation_valid()
972 qbool = qobject_to(QBool, qobject_from_jsonf_nofail("%i", false)); in interpolation_valid()
978 qbool = qobject_to(QBool, qobject_from_jsonf_nofail("%i", 2)); in interpolation_valid()
H A Dcheck-qlit.c87 g_assert(qbool_get_bool(qobject_to(QBool, obj))); in qobject_from_qlit_test()
H A Dtest-qobject-input-visitor.c616 QBool *qbool; in test_visitor_in_any()
642 qbool = qobject_to(QBool, qobj); in test_visitor_in_any()
/openbmc/qemu/include/qemu/
H A Dtypedefs.h89 typedef struct QBool QBool; typedef
/openbmc/qemu/tests/qtest/
H A Dtest-x86-cpuid-compat.c39 QBool *value = qobject_to(QBool, qom_get(path, prop)); in qom_get_bool()
H A Dlibqtest.c1576 QBool *qbool; in qtest_get_cpu_models()
1614 qbool = qobject_to(QBool, qobj); in qtest_get_cpu_models()
/openbmc/qemu/qapi/
H A Dqobject-input-visitor.c490 QBool *qbool; in qobject_input_type_bool()
495 qbool = qobject_to(QBool, qobj); in qobject_input_type_bool()
/openbmc/qemu/block/
H A Dqapi.c804 QBool *value = qobject_to(QBool, obj); in dump_qobject()
/openbmc/qemu/qom/
H A Dobject.c1532 QBool *qbool = qbool_from_bool(value); in object_property_set_bool()
1543 QBool *qbool; in object_property_get_bool()
1549 qbool = qobject_to(QBool, ret); in object_property_get_bool()
/openbmc/qemu/util/
H A Dqemu-option.c973 qbool_get_bool(qobject_to(QBool, obj)) ? "on" : "off"); in qemu_opts_from_qdict_entry()