Home
last modified time | relevance | path

Searched refs:TestStruct (Results 1 – 7 of 7) sorted by relevance

/openbmc/qemu/tests/unit/
H A Dtest-vmstate.c333 typedef struct TestStruct { struct
337 } TestStruct; argument
344 VMSTATE_UINT32(a, TestStruct),
345 VMSTATE_UINT32_V(b, TestStruct, 2), /* Versioned field in the middle, so
348 VMSTATE_UINT32(c, TestStruct),
349 VMSTATE_UINT64(d, TestStruct),
350 VMSTATE_UINT32_V(e, TestStruct, 2),
351 VMSTATE_UINT64_V(f, TestStruct, 2),
367 TestStruct obj = { .b = 200, .e = 500, .f = 600 }; in test_load_v1()
393 TestStruct obj; in test_load_v2()
[all …]
H A Dtest-visitor-serialization.c185 static TestStruct *struct_create(void) in struct_create()
187 TestStruct *ts = g_malloc0(sizeof(*ts)); in struct_create()
194 static void struct_compare(TestStruct *ts1, TestStruct *ts2) in struct_compare()
203 static void struct_cleanup(TestStruct *ts) in struct_cleanup()
211 visit_type_TestStruct(v, NULL, (TestStruct **)native, errp); in visit_struct()
575 TestStruct *ts = struct_create(); in test_struct()
576 TestStruct *ts_copy = NULL; in test_struct()
H A Dtest-qobject-output-visitor.c146 TestStruct test_struct = { .integer = 42, in test_visitor_out_struct()
149 TestStruct *p = &test_struct; in test_visitor_out_struct()
224 TestStruct *value; in test_visitor_out_list()
H A Dtest-qobject-input-visitor.c402 TestStruct *p = NULL; in test_visitor_in_struct()
923 TestStruct *p = NULL; in test_visitor_in_errors()
956 TestStruct *p = NULL; in test_visitor_in_wrong_type()
1000 TestStruct *p = NULL; in test_visitor_in_fail_struct()
/openbmc/qemu/tests/qapi-schema/
H A Ddoc-interleaved-section.json4 # @TestStruct:
20 { 'struct': 'TestStruct',
H A Dqapi-schema-test.json18 { 'struct': 'TestStruct',
75 'unused3':['TestStruct'] } }
157 { 'alternate': 'AltStrObj', 'data': { 's': 'str', 'o': 'TestStruct' } }
266 'data': { 'foo': 'TestStruct',
276 'bar': { 'type': 'TestStruct', 'if': 'TEST_IF_ALT_MEMBER'} },
H A Dqapi-schema-test.out12 object TestStruct
65 array TestStructList TestStruct
159 case o: TestStruct
292 case foo: TestStruct
305 case bar: TestStruct